:root {
  --forest: #294b3e;
  --forest-dark: #1e382f;
  --sage: #e7ede6;
  --cream: #f7f5ef;
  --paper: #fffefa;
  --ink: #26332d;
  --muted: #6d786f;
  --line: #dce3da;
  --gold: #b18b50;
  --pdf: #9b5143;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
a { color: inherit; }
.hero { min-height: 440px; position: relative; display: grid; place-items: center; padding: 76px 24px; color: white; text-align: center; background: var(--forest) url("../img/herencseny_4.jpg") center 48%/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,43,34,.76), rgba(25,48,37,.43)), linear-gradient(0deg, rgba(20,43,34,.3), rgba(20,43,34,.12)); }
.hero-content { position: relative; max-width: 820px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: #d9c69f; text-transform: uppercase; letter-spacing: .19em; font: 600  .76rem/1.4 Arial, sans-serif; }
h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.subtitle { margin: 12px 0 0; font-size: clamp(1.1rem, 2.5vw, 1.55rem); }
.intro { max-width: 620px; margin: 22px auto 22px; color: #f0f2ec; font: 1rem/1.7 Arial, sans-serif; }
.hero-featured { max-width: 680px; margin: 0 auto 22px; padding: 17px 22px 19px; border: 1px solid rgba(232,223,201,.72); border-radius: 5px; background: rgba(20,43,34,.58); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.hero-featured-label { margin: 0 0 5px; color: #e4d2ad; text-transform: uppercase; letter-spacing: .16em; font: 700 .7rem/1.4 Arial, sans-serif; }
.hero-featured h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.25rem, 2.7vw, 1.8rem); line-height: 1.2; font-weight: 500; }
.hero-featured-link { display: inline-block; padding: 9px 15px; border-radius: 3px; color: var(--forest-dark); background: #e8dfc9; text-decoration: none; font: 700 .82rem Arial, sans-serif; transition: background .2s, transform .2s; }
.hero-featured-link:hover { background: white; transform: translateY(-1px); }
.hero-link { display: inline-block; padding: 10px 17px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; color: white; text-decoration: none; font: 600 .84rem Arial, sans-serif; transition: background .2s, color .2s; }
.hero-link:hover { color: var(--forest-dark); background: white; }
.page-wrap { width: min(100% - 40px, 1000px); margin: 0 auto; padding: 64px 0 76px; }
.welcome { max-width: 730px; margin: 0 auto 56px; text-align: center; }
.welcome .section-kicker, .feature-copy .section-kicker { color: var(--gold); }
h2 { margin: 0; color: var(--forest); font-size: clamp(1.65rem, 3.2vw, 2.25rem); line-height: 1.2; font-weight: 500; }
.welcome p:last-child { margin: 16px 0 0; color: var(--muted); font: .98rem/1.75 Arial, sans-serif; }
.document-section { margin: 0 0 55px; }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-number { color: var(--gold); font: 600 .82rem Arial, sans-serif; letter-spacing: .12em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font: .88rem Arial, sans-serif; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc-card { min-height: 122px; display: flex; flex-direction: column; align-items: flex-start; padding: 17px 18px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.doc-card:hover, .doc-row[href]:hover { border-color: #9cac9b; box-shadow: 0 5px 18px rgba(34,59,45,.07); transform: translateY(-2px); }
.doc-year, .row-year { color: var(--gold); font: 700 .78rem Arial, sans-serif; letter-spacing: .08em; }
.doc-title { margin-top: 7px; font-size: 1.03rem; }
.pdf-mark { margin-top: auto; padding-top: 12px; color: var(--pdf); font: 700 .72rem Arial, sans-serif; letter-spacing: .06em; }
.document-list { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.doc-row { min-height: 72px; display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .18s, transform .18s, border-color .18s; }
.doc-row:last-child { border-bottom: 0; }
.row-title { font-size: 1rem; }
.row-title small { display: block; margin-top: 2px; color: var(--muted); font: .78rem Arial, sans-serif; }
.doc-row .pdf-mark { margin: 0; padding: 0; white-space: nowrap; }
.unavailable { color: #929a91; background: #f4f5f1; }
.unavailable .row-year { color: #a6aaa1; }
.status { color: #929a91; font: .76rem Arial, sans-serif; white-space: nowrap; }
.featured-publication { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 230px; margin: 68px 0 35px; padding: 38px 44px; border-radius: 6px; color: #f8f6ef; background: linear-gradient(115deg, #294b3e, #3d6552); }
.feature-copy { position: relative; z-index: 1; max-width: 620px; }
.feature-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.feature-copy p:not(.section-kicker) { margin: 12px 0 22px; color: #e0e8df; font: .95rem/1.6 Arial, sans-serif; }
.feature-button { display: inline-block; padding: 11px 17px; border-radius: 3px; color: var(--forest-dark); background: #e8dfc9; text-decoration: none; font: 700 .84rem Arial, sans-serif; }
.feature-button:hover { background: white; }
.feature-symbol { position: absolute; right: 35px; top: -100px; color: rgba(255,255,255,.08); font: 27rem/1 Georgia, serif; }
.document-note { max-width: 780px; margin: 30px auto 0; color: var(--muted); text-align: center; font: .82rem/1.7 Arial, sans-serif; }
.site-footer { padding: 27px 20px; color: #e5eae3; background: var(--forest-dark); text-align: center; font: .82rem/1.5 Arial, sans-serif; }
.site-footer p { margin: 3px 0; }
@media (max-width: 720px) {
  .hero { min-height: 430px; padding: 48px 20px; }
  .hero-featured { padding: 15px 16px 17px; }
  .page-wrap { width: min(100% - 28px, 1000px); padding: 48px 0 58px; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-row { grid-template-columns: 48px 1fr; gap: 9px; padding: 13px 12px; }
  .doc-row .pdf-mark, .status { grid-column: 2; justify-self: start; margin-top: 2px; }
  .featured-publication { min-height: 220px; padding: 30px 24px; }
  .feature-symbol { right: 4px; font-size: 20rem; }
}
@media (max-width: 420px) {
  .document-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 105px; }
  .section-heading { gap: 12px; }
  .featured-publication { margin-top: 48px; }
}
