:root {
  --green: #456448;
  --ink: #293c32;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --terracotta: #9f4934;
  --sand: #eee2cf;
  --line: #ded8c9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 system-ui, sans-serif; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}
.skip { position: absolute; left: 1rem; top: -100px; }
.skip:focus { top: 1rem; padding: 12px; background: var(--paper); z-index: 5; }

header { position: sticky; top: 0; z-index: 3; padding: 10px 5%; background: var(--ink); color: white; border-bottom: 3px solid #bf8865; }
header > nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 1120px; margin: auto; }
header nav a { color: white; text-decoration: none; font-size: .88rem; }
header nav a, header summary { padding: 10px; border-radius: 6px; transition: background-color .18s ease; }
header nav a:hover, header summary:hover { background: var(--green); }
header a:focus-visible, header select:focus-visible, header summary:focus-visible { outline-color: #f0c591; }
header .brand { margin-right: auto; padding-left: 0; font-size: .95rem; font-weight: 650; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: #f0c591; box-shadow: 0 0 0 4px rgb(240 197 145 / .12); }
header summary { cursor: pointer; font-size: .88rem; }
header details div { position: absolute; top: 100%; right: 0; width: max-content; max-width: 85vw; padding: 12px; display: grid; gap: 4px; background: var(--ink); border: 1px solid #647267; border-radius: 12px; box-shadow: 0 12px 28px rgb(41 60 50 / .2); }
header details div a { display: block; }
.language-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language-control[hidden] { display: none; }
.language-control img { display: block; width: 24px; height: 16px; object-fit: cover; }
.language-control select { max-width: 100%; min-height: 44px; padding: 8px; border: 1px solid #819087; border-radius: 6px; background: var(--ink); color: white; font: inherit; font-size: .88rem; cursor: pointer; }

main { max-width: 1240px; margin: auto; padding: 0 5%; }
.hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero > div { min-width: 0; }
.eyebrow { color: var(--terracotta); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; flex-shrink: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.12; margin: 20px 0 30px; letter-spacing: -.045em; }
h2 { max-width: 850px; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.18; margin: 12px 0 16px; letter-spacing: -.025em; }
h3 { display: flex; align-items: center; gap: 16px; font-size: 1.2rem; margin: 36px 0 18px; }
h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero .photo-link { position: relative; isolation: isolate; border-radius: 80px 18px 18px 18px; }
.hero .photo-link::before { content: ""; position: absolute; z-index: -1; inset: 16px -14px -16px 16px; border-radius: inherit; background: var(--sand); border: 1px solid #e2ceb2; }
.hero img { display: block; width: 100%; height: auto; border-radius: inherit; box-shadow: 0 16px 32px rgb(41 60 50 / .12); }
.button { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 13px 22px; border-radius: 8px; background: var(--green); color: white; font-size: .95rem; font-weight: 600; text-decoration: none; box-shadow: 0 4px 12px rgb(41 60 50 / .12); transition: background-color .18s ease, box-shadow .18s ease; }
.button::after { content: "\2192"; font-size: 1.25rem; }
.button:hover, .button:focus-visible { background: var(--ink); box-shadow: 0 6px 16px rgb(41 60 50 / .18); }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 12px 0 56px; }
.quick a { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .94rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.quick svg { width: 44px; height: 44px; padding: 10px; flex-shrink: 0; border-radius: 50%; background: #e7ecdf; color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick a:nth-child(even) svg { background: #f3e4d9; color: var(--terracotta); }
.quick a:hover, .quick a:focus-visible { background: #f3eddf; border-color: #a7ae96; box-shadow: 0 5px 16px rgb(41 60 50 / .07); }

.section { position: relative; padding: 52px 0 56px; border-top: 1px solid var(--line); }
.section::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--terracotta); }
.intro { max-width: 720px; margin-bottom: 28px; color: #596451; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.step { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 14px rgb(41 60 50 / .04); }
.step img { display: block; width: 100%; height: auto; }
.step figcaption { padding: 22px; font-size: .96rem; }
.step figcaption a { color: inherit; }
.step.numbered figcaption { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 14px; }
.step-number { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #cad3bd; border-radius: 50%; background: #e7ecdf; color: var(--green); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.step.caution figcaption { background: #fbf0e7; border-top: 3px solid var(--terracotta); }
.step.caution .step-number { border-color: #dfbcaa; background: #f3e4d9; color: var(--terracotta); }
.notice { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: #eaf0e2; }
.closing { display: flex; align-items: baseline; gap: 12px; margin-top: 28px; color: var(--green); font-weight: 600; }
.closing::before { content: ""; display: block; flex-shrink: 0; width: 22px; height: 2px; background: var(--terracotta); }
.photo-link { display: block; min-width: 0; cursor: zoom-in; border-radius: 12px; }
.photo-link:focus-visible { outline-offset: -5px; }
footer { padding: 32px 5%; border-top: 3px solid #bf8865; background: var(--ink); color: #e2e6da; text-align: center; font-size: .88rem; }
footer a { display: inline-block; padding: 8px 4px; color: white; }
footer a:focus-visible { outline-color: #f0c591; }

html.photo-open { overflow: hidden; }
#photo-dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 12px; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); overflow: auto; }
#photo-dialog::backdrop { background: rgb(20 30 24 / .85); }
.photo-close { display: block; min-height: 44px; margin: 0 0 12px auto; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--green); color: white; font: inherit; cursor: pointer; }
.photo-close:hover { background: var(--ink); }
.photo-full { display: block; width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100dvh - 112px); object-fit: contain; margin: auto; }
.photo-full[hidden], .photo-error[hidden] { display: none; }
.photo-error { max-width: 32rem; margin: 12px; }

@media (min-width: 701px) {
  .steps > .step:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; }
  .steps > .step:only-child .photo-link { align-self: start; }
}
@media (max-width: 1000px) {
  .hero { gap: 32px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick a { flex-direction: row; align-items: center; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 170px; }
  header > nav { gap: 4px 8px; }
  header .brand { flex-basis: 100%; margin-right: 0; }
  header .language-control { margin-left: auto; }
  header details div { left: 0; right: auto; }
  .desktop { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 40px; }
  h1 { font-size: clamp(2.25rem, 7vw, 3rem); margin: 16px 0 24px; }
  .hero .photo-link { margin-right: 10px; border-radius: 48px 14px 14px 14px; }
  .hero .photo-link::before { inset: 10px -10px -10px 10px; }
  .quick { gap: 12px; padding-bottom: 36px; }
  .quick a { padding: 16px; }
  .section { padding: 36px 0 40px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step figcaption { padding: 18px; }
}
@media (max-width: 420px) {
  .quick { grid-template-columns: 1fr; }
  .quick a { gap: 14px; padding: 12px 16px; }
  .notice { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quick a, .button, header nav a, header summary { transition: none; }
}
