﻿:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #56645e;
  --line: #d8ded9;
  --panel: #f7f8f5;
  --accent: #2d6a4f;
  --accent-ink: #ffffff;
  --warm: #8a5a34;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #ffffff; line-height: 1.55; }
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px clamp(18px, 5vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); position: sticky; top: 0; z-index: 10; }
.brand { color: var(--ink); font-weight: 750; text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
nav a[aria-current="page"] { color: var(--accent); }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.hero { min-height: 54vh; display: grid; align-content: center; padding: 36px 0 56px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--warm); font-weight: 750; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
h1 { font-size: clamp(2.2rem, 7vw, 5.2rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: 0; }
h2 { font-size: 1.2rem; margin: 0 0 10px; }
.lede { max-width: 760px; font-size: 1.25rem; color: var(--muted); margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 700; background: #fff; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 30px; }
.band p, .page-heading p { color: var(--muted); margin: 0; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 220px auto; align-items: end; gap: 14px; margin-bottom: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
input, select, textarea { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 132px; resize: vertical; }
.compact { min-height: 42px; cursor: pointer; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tag-chip { min-height: 30px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 4px 9px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.tag-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #eef6f1; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.entry-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; min-height: 180px; display: grid; align-content: start; gap: 10px; box-shadow: 0 1px 0 rgba(23, 32, 27, 0.04); }
.entry-card h2 { margin: 0; }
.entry-card p { margin: 0; color: var(--muted); }
.tags, .relations { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .relation { display: inline-flex; align-items: center; min-height: 24px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 0.8rem; color: var(--muted); background: var(--panel); }
.unresolved-term { border-bottom: 1px dotted var(--warm); color: #604126; }
.entry-page { max-width: 860px; }
.entry-title { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.entry-title h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.summary { font-size: 1.18rem; color: var(--muted); }
.section { margin: 32px 0; }
.section h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.dictionary-resource { background: #f3f7f4; border: 1px solid #d9e5dd; border-radius: 8px; padding: 16px; }
.dictionary-resource h2 { border-bottom: 0; padding-bottom: 0; }
.dictionary-resource p { margin: 0; }
.feedback-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.feedback-panel h2 { border-bottom: 0; padding-bottom: 0; }
.feedback-note, .field-help, .privacy-note, .feedback-status { color: var(--muted); margin: 0; }
.feedback-form { display: grid; gap: 14px; margin-top: 16px; }
.form-row { display: grid; gap: 6px; }
.field-error { display: none; margin: 0; color: #8a1f11; font-size: 0.9rem; }
.field-error--visible { display: block; }
.input-invalid { border-color: #b33a2c; box-shadow: 0 0 0 2px rgba(179, 58, 44, 0.12); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-actions .button:disabled { opacity: 0.62; cursor: wait; }
.prose p { margin: 0 0 1em; }
.notice { border-left: 4px solid var(--warm); background: #fbf7f1; padding: 12px 14px; color: #553718; }
.source { color: var(--muted); font-size: 0.9rem; }
.relation-list { display: grid; gap: 22px; }
.relation-group { border-top: 1px solid var(--line); padding-top: 18px; }
.relation-rows { display: grid; gap: 8px; }
.relation-rows p { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; }
.relation-rows span { color: var(--muted); font-size: 0.85rem; font-weight: 750; }
.relation-rows a:last-child { text-align: right; }
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .band, .toolbar { grid-template-columns: 1fr; }
  .relation-rows p { grid-template-columns: 1fr; gap: 2px; }
  .relation-rows a:last-child { text-align: left; }
}
