/* Fonturi găzduite local (fără cereri către servicii externe) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-ext-opsz-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-opsz-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/hanken-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --taupe: #89796a;
  --taupe-deep: #5f5347;
  --taupe-dark: #4a4037;
  --taupe-line: rgb(255 255 255 / 0.2);
  --accent: #6e5f51;
  --ink: #2a241f;
  --ink-soft: #665b51;
  --paper: #fbf8f2;
  --sand: #f1e9db;
  --line: #ded3bf;
  --gold: #ceb98e;
  --gold-soft: #e0c9a0;
  --cream: #fff9ee;
  --pattern: url('/img/romburi.svg');
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--taupe-deep);
  color: var(--cream);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

/* Logo-ul rotund depășește puțin banda de sus, ca un sigiliu. */
.brand {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  align-self: flex-start;
  margin-block: 0.45rem -2.4rem;
}
.brand img { width: 6.75rem; height: 6.75rem; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}
.main-nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2rem); }
.main-nav a {
  padding-block: 0.4rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.25s ease;
}
.main-nav a:hover,
.main-nav a[aria-current] { background-size: 100% 1.5px; }

.lang-select { position: relative; }
.lang-select summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--taupe-line);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-select summary::-webkit-details-marker { display: none; }
.lang-select summary::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  margin: -0.2rem 0.1rem 0 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.lang-select[open] summary::after { margin-top: 0.15rem; transform: rotate(-135deg); }
.lang-select summary:hover,
.lang-select[open] summary { border-color: var(--gold); }
.lang-select img {
  width: 1.25rem;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(28 22 20 / 0.14);
}

.langs {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 60;
  min-width: 100%;
  padding-block: 0.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px -16px rgb(28 22 20 / 0.45);
}
.langs a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
}
.langs a:hover { background: var(--sand); color: var(--accent); }
.langs a[aria-current] { color: var(--accent); font-weight: 700; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.header-call:hover { background: var(--gold-soft); }
.header-call svg { width: 1.1rem; height: 1.1rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.2rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 1.3rem;
  height: 1.5px;
  background: currentColor;
}
.menu-toggle__bars { position: relative; top: -3px; }
.menu-toggle__bars::before { content: ''; position: relative; top: 6px; }

@media (max-width: 62rem) {
  .menu-toggle { display: inline-flex; }
  .site-header__inner { min-height: 4.5rem; }
  .brand { margin-block: 0.25rem; align-self: center; }
  .brand img { width: 4rem; height: 4rem; }
  .nav-panel {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--taupe-deep);
    border-top: 1px solid var(--taupe-line);
    box-shadow: 0 18px 30px -22px rgb(28 22 20 / 0.5);
  }
  .nav-panel.is-open {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
  }
  .main-nav ul { display: grid; gap: 0.35rem; }
  .main-nav a { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
  .langs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .langs a { padding: 0.5rem 0.6rem; font-size: 0.95rem; color: var(--cream); }
  .langs a:hover { background: rgb(255 255 255 / 0.1); color: var(--gold-soft); }
  .langs a[aria-current] { color: var(--gold-soft); }
}
@media (max-width: 62rem) and (scripting: none) {
  .menu-toggle { display: none; }
  .site-header { position: static; }
  .site-header__inner { flex-wrap: wrap; }
  .nav-panel { display: grid; position: static; padding: 0 0 1rem; border: 0; box-shadow: none; }
}
/* Butoane și link-uri */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: var(--taupe-deep); color: var(--cream); }
.btn--ghost:hover { background: var(--taupe-dark); }
.btn--dark { background: var(--taupe-deep); color: var(--cream); }
.btn--dark:hover { background: var(--taupe-dark); }
.btn--line { border-color: var(--taupe-deep); color: var(--taupe-deep); }
.btn--line:hover { background: var(--taupe-deep); color: var(--cream); }

.text-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link--light { color: var(--gold-soft); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--taupe) var(--pattern) 0 0 / 130px 144px;
  color: var(--cream);
}
.hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}
@media (min-width: 62.01rem) {
  .hero h1 { max-width: 60%; }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero h1 .w { white-space: nowrap; }

/* Titlul e ascuns până îl scrie penița; dacă pen.js nu rulează, apare singur după 1,5 s. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero h1:not(.is-ready) {
    opacity: 0;
    animation: title-fallback 0.01s 1.5s forwards;
  }
}
@keyframes title-fallback { to { opacity: 1; } }

.pen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.pen.is-on { visibility: visible; }
.pen__line {
  fill: none;
  stroke: var(--gold-soft);
  stroke-opacity: 0.7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.hero__facts { position: relative; background: var(--taupe-deep); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 1.4rem 1.5rem 1.6rem 0;
}
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--taupe-line); }
.facts dd { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; color: var(--gold-soft); }
.facts dt { color: var(--cream); font-size: 0.95rem; line-height: 1.35; }

@media (max-width: 62rem) {
  .hero h1 { padding-bottom: 0.75em; }
  .pen__line { stroke-width: 1.5; }
  .hero__actions { margin-top: 1rem; }
}
@media (max-width: 40rem) {
  .hero__actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts > div {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
  }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--taupe-line); }
  .facts dd { min-width: 4.25rem; font-size: 1.75rem; }
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--taupe) var(--pattern) 0 0 / 130px 144px;
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100vw - 76rem) / 2 + var(--gutter)));
  width: min(21rem, 34vw);
  aspect-ratio: 200 / 228;
  background: url('/img/emblema-filigran.svg') center / contain no-repeat;
  opacity: 0.2;
  transform: translateY(-50%);
  pointer-events: none;
}
.page-hero__lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
}
@media (max-width: 48rem) { .page-hero::after { display: none; } }

/* Secțiuni */
.section { padding-block: var(--section); }
.section--tight { padding-block: 0 var(--section); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--taupe-deep) var(--pattern) 0 0 / 130px 144px; color: var(--cream); }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p { margin-top: 1rem; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.split__aside p { margin-top: 1rem; color: var(--ink-soft); }
.split__aside .text-link { margin-top: 1.5rem; }
.split__aside .emblem { width: min(14rem, 100%); height: auto; }
@media (min-width: 56.01rem) {
  .split__aside { position: sticky; top: 9.5rem; }
}
@media (max-width: 56rem) {
  .split { grid-template-columns: 1fr; }
}

.prose { max-width: 42rem; }
.prose p + p { margin-top: 1.25rem; }
.prose--narrow h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose--narrow h2:first-child { margin-top: 0; }
.prose--narrow h2 + p { margin-top: 0.6rem; }

/* Registrul de servicii */
.register { border-top: 1px solid var(--ink); }
.register li { border-bottom: 1px solid var(--line); }
.register a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 1.5rem;
  gap: 0.5rem;
  align-items: baseline;
  padding-block: 1.15rem;
  text-decoration: none;
  transition: padding-left 0.2s ease;
}
.register a:hover { padding-left: 0.6rem; }
.register__no { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.register__body { display: grid; gap: 0.1rem; }
.register__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; }
.register__text { color: var(--ink-soft); font-size: 0.98rem; }
.register__arrow { width: 1.4rem; align-self: center; color: var(--accent); opacity: 0.45; transition: opacity 0.2s ease; }
.register a:hover .register__arrow { opacity: 1; }

/* Pași */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.steps li { padding-top: 1rem; border-top: 1px solid var(--ink); }
.steps__no {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}
.steps p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 62rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

/* Tradiție */
.heritage {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) minmax(0, 18rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.heritage p { margin-top: 1rem; }
.heritage .text-link { margin-top: 1.5rem; }
.heritage__seal img { width: 100%; height: auto; }
.heritage__dates li { padding-block: 0.85rem; border-top: 1px solid rgb(255 255 255 / 0.16); }
.heritage__dates li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.16); }
.heritage__dates span { display: block; color: var(--gold-soft); font-size: 0.9rem; }
@media (max-width: 62rem) {
  .heritage { grid-template-columns: 9rem minmax(0, 1fr); align-items: start; }
  .heritage__dates { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .heritage { grid-template-columns: 1fr; }
  .heritage__seal { width: 9rem; }
}

/* Apel la acțiune */
.cta { background: var(--gold); color: var(--ink); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.cta__inner > div:first-child { flex: 1 1 26rem; }
.cta p { margin-top: 0.6rem; max-width: 34rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 34rem) { .cta__actions, .cta__actions .btn { width: 100%; } }

/* Despre */
.timeline { border-left: 1px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 2.25rem 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: -0.3rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}
.timeline__date { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.timeline h3 { margin-top: 0.15rem; }
.timeline h3 + p { margin-top: 0.4rem; color: var(--ink-soft); }

.notaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.notaries li { padding-top: 1rem; border-top: 1px solid var(--ink); }
.notaries h3 { font-size: 1.6rem; }
.notaries__role { margin-block: 0.25rem 0.75rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.notaries li p:last-child { color: var(--ink-soft); }
@media (max-width: 40rem) { .notaries { grid-template-columns: 1fr; } }

.legal { border-top: 1px solid var(--ink); }
.legal > div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.legal dt { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 40rem) { .legal > div { grid-template-columns: 1fr; } }

/* Servicii */
.service {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 8.5rem;
}
.service:first-child { padding-top: 0; border-top: 0; }
.service__no { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent); line-height: 1.6; }
.service__head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.service__head p { margin-top: 0.6rem; color: var(--ink-soft); }
.service__items li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.service__items li:last-child { border-bottom: 0; }
.service__items li::before {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 0.7rem;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 52rem) {
  .service { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .service__items { grid-column: 2; margin-top: 0.5rem; }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.contact__details { display: grid; gap: 2rem; }
.contact__block h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.contact__block .text-link { margin-top: 0.6rem; }
.contact__list { border-top: 1px solid var(--ink); }
.contact__list > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.contact__list dt { color: var(--ink-soft); }
.contact__list dd { display: grid; gap: 0.15rem; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--accent); text-decoration: underline; }

.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact__map { min-height: 26rem; }
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  border: 0;
}

@media (max-width: 56rem) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 34rem) {
  .contact__actions .btn { width: 100%; }
  .contact__list > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Glume */
.jokes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem;
}
.joke {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--line);
}
.joke__stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.4;
  transform: rotate(-12deg);
}
.joke__no {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.joke h2 { margin: 0.35rem 3.5rem 1rem 0; font-size: clamp(1.5rem, 2.4vw, 1.85rem); }
.joke p:not(.joke__no) { color: var(--ink-soft); }
.joke p + p { margin-top: 0.6rem; }
.joke .joke__line { color: var(--ink); padding-left: 1.1rem; text-indent: -1.1rem; }

/* Footer */
.site-footer { background: var(--taupe-dark); color: #e9dfce; font-size: 0.98rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.site-footer h2 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer__name { margin-bottom: 0.5rem; color: #fff; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.site-footer__contact { display: grid; gap: 0.4rem; }
.site-footer__contact li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.6rem;
}
.site-footer__contact svg { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; }
.site-footer__line { display: block; }
.site-footer__social { display: flex; gap: 0.5rem; margin: 0.9rem 0 0 -0.45rem; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: color 0.2s ease;
}
.site-footer__social svg { width: 1.35rem; height: 1.35rem; }
.site-footer__links { display: grid; gap: 0.5rem; line-height: 1.35; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  position: relative;
  padding-block: 1.25rem;
  font-size: 0.9rem;
}
.site-footer__legal::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  height: 1px;
  background: rgb(255 255 255 / 0.14);
}
@media (max-width: 62rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
