/* AIDA – pokoje gościnne w Łebie – arkusz stylów */

/* Fraunces normal latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.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;
}
/* Fraunces normal latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.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;
}
/* Source Sans 3 italic latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin-ext.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;
}
/* Source Sans 3 italic latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin.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;
}
/* Source Sans 3 normal latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin-ext.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;
}
/* Source Sans 3 normal latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin.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 {
  --cream: #faf5ea;
  --paper: #fffdf8;
  --sand: #f2e9d8;
  --green: #2f5a43;
  --green-700: #264a37;
  --green-900: #1b3527;
  --green-100: #e3ece4;
  --sun: #e2a93a;
  --sun-100: #fbefd2;
  --rose: #b4435c;
  --ink: #2a2622;
  --muted: #6a6258;
  --line: #e6dccb;
  --danger: #b3261e;
  --success: #2f6b45;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgb(27 53 39 / .45);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--rose); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--green-900); font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { display: none; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -.2em; }
.icon--xl { width: 2.5rem; height: 2.5rem; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: .6em 1em; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-family: var(--sans); font-size: .9rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: .7em; display: flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .75em 1.35em; border-radius: var(--radius); border: 2px solid transparent; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .9em 1.6em; font-size: 1.12rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--line { border-color: var(--green); color: var(--green); background: transparent; }
.btn--line:hover { background: var(--green); color: #fff; }
.btn--sun { background: var(--sun); color: var(--green-900); }
.btn--sun:hover { background: #f0bd55; color: var(--green-900); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 245 234 / .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand__mark { display: grid; place-content: center; width: 48px; height: 48px; background: #111; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: .95; letter-spacing: .28em; text-indent: .28em; text-align: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .22em; }
.brand__tag { font-size: .92rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.3rem; list-style: none; }
.site-nav ul a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .3em 0; background: linear-gradient(var(--sun), var(--sun)) no-repeat left bottom / 0 2px; transition: background-size .25s; }
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--green); background-size: 100% 2px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 26px; height: 2px; background: var(--green-900); position: relative; transition: transform .25s, background-color .25s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; } .nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 1rem; background: var(--paper); padding: .5rem var(--gutter) 1.5rem; box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85em 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; background: none; }
}
@media (max-width: 480px) {
  :root { --header-h: 66px; }
  .brand__mark { width: 42px; height: 42px; font-size: .9rem; }
  .brand__name { font-size: 1.35rem; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) 0; background: radial-gradient(1200px 500px at 85% 0%, var(--sun-100), transparent 70%); }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--green); letter-spacing: .08em; }
.hero__lead { font-size: clamp(1.2rem, 2vw, 1.4rem); color: #4a443d; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__note { margin-top: .8rem; color: var(--muted); font-style: italic; }
.hero__media { position: relative; padding-bottom: 12%; }
.arch { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.arch img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.hero__media .arch { width: 82%; margin-left: auto; border: 8px solid var(--paper); }
.hero__badge-img { position: absolute; left: 0; bottom: 0; width: 42%; margin: 0; border-radius: 50%; overflow: hidden; border: 8px solid var(--paper); box-shadow: var(--shadow); }
.hero__badge-img img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-block: 1.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: flex; align-items: center; gap: .9rem; }
.stats .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--green-100); color: var(--green); }
.stats strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green-900); line-height: 1.1; }
.stats span { color: var(--muted); line-height: 1.3; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3rem); max-width: 680px; }
.section__head p:last-child { color: var(--muted); }

/* Offer */
.offer { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.offer__head p { color: #4a443d; font-size: 1.15rem; }
.offer__photo { margin: 2rem 0 0; }
.offer__photo img { border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-2deg); border: 8px solid var(--paper); }
.offer__list { list-style: none; display: grid; gap: .9rem; counter-reset: offer; }
.offer__list li { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.offer__list p { margin: 0; }
.offer__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun-100); color: var(--green); flex: none; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } .offer__photo { max-width: 420px; } }

/* Rooms */
.room { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: 2rem; border-top: 1px solid var(--line); }
.room:last-child { border-bottom: 1px solid var(--line); }
.room__no { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--sun); margin: 0 0 .3rem; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { display: inline-flex; align-items: center; gap: .4em; background: var(--green-100); color: var(--green-900); border-radius: 999px; padding: .3em .85em; font-size: .98rem; font-weight: 600; }
.chips .icon { width: 1.05em; height: 1.05em; color: var(--green); }
.room__photos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.room__photos a, .masonry a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand); }
.room__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.room__photos a:hover img, .masonry a:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .room { grid-template-columns: 1fr; }
  .room__info { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
  .room__no { font-size: 2.6rem; }
  .room__info h3 { margin: 0; }
  .room__info .chips { flex-basis: 100%; }
  .room__photos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Gallery (masonry) */
.masonry { list-style: none; columns: 3 260px; column-gap: 12px; }
.masonry li { break-inside: avoid; margin-bottom: 12px; }
.masonry img { width: 100%; transition: transform .5s ease; }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 8px; } .masonry li { margin-bottom: 8px; } }

/* Sea band */
.sea { position: relative; isolation: isolate; color: #fff; padding-block: clamp(5rem, 12vw, 8rem); overflow: hidden; }
.sea__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sea::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(27 53 39 / .88) 0%, rgb(27 53 39 / .55) 60%, rgb(27 53 39 / .25) 100%); }
.sea__big { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; max-width: 18ch; margin-bottom: 1.6rem; }

/* Booking */
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.checkin { display: flex; gap: 1rem; align-items: flex-start; background: var(--sun-100); border-left: 4px solid var(--sun); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.checkin .icon { width: 2rem; height: 2rem; color: var(--green); margin-top: .1rem; }
.checkin p { margin: 0; }
.checkin strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.8rem 4.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.4rem; top: 3rem; bottom: .2rem; width: 2px; background: var(--line); transform: translateX(-1px); }
.steps h3 { font-size: 1.3rem; margin-bottom: .2em; padding-top: .35rem; }
.steps p { margin: 0; color: #4a443d; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }

/* Directions */
.directions { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.address-card { font-style: normal; font-size: 1.25rem; line-height: 1.5; padding: 1.4rem 1.6rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.address-card strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--green-900); }
.directions__links { display: flex; flex-wrap: wrap; gap: .7rem; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem; padding: 1.5rem; color: var(--muted); background: repeating-linear-gradient(45deg, transparent 0 14px, rgb(47 90 67 / .04) 14px 28px); }
.map__placeholder .icon { color: var(--rose); }
.map__placeholder p { max-width: 36ch; margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .directions { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { list-style: none; display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: .95rem; }
.contact__list a { font-weight: 700; font-size: 1.22rem; text-decoration: none; word-break: break-word; }
.contact__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }
.arch--small { max-width: 320px; }
.arch--small img { aspect-ratio: 4 / 4.4; }
.contact__form { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--sun); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.contact__form > p { color: var(--muted); }
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .35rem; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field-row--3 { grid-template-columns: 1fr 1fr .8fr; }
.field label { font-weight: 700; color: var(--green-900); }
.field input:not([type="checkbox"]), .field textarea { width: 100%; min-width: 0; padding: .7em .85em; border: 1.5px solid #d6cbb6; border-radius: var(--radius); background: #fff; font-size: 1.08rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(47 90 67 / .18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .95rem; margin: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.field--check input { width: 22px; height: 22px; margin-top: .2em; accent-color: var(--green); }
.field--check label { font-weight: 400; color: #4a443d; line-height: 1.45; }
.field--check .field__error { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { color: var(--muted); font-size: .95rem; margin: 0; text-align: center; }
.form-status { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.form-status.is-success { background: #e4f1e7; color: var(--success); border: 1px solid #bcdcc5; }
.form-status.is-error { background: #fbe9e7; color: var(--danger); border: 1px solid #f2c4bf; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .arch--small { display: none; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .field-row--3 .field:last-child { grid-column: 1 / -1; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(20 28 22 / .95); display: grid; grid-template-columns: auto 1fr auto; align-items: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 56px 8px 24px; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 4px; }
.lightbox__caption { color: #eae3d4; margin-top: .8rem; text-align: center; font-size: 1rem; }
.lightbox__btn { background: rgb(255 255 255 / .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin: 0 12px; }
.lightbox__btn:hover { background: rgb(255 255 255 / .25); }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 0; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
  .lightbox__figure { padding-bottom: 80px; }
  .lightbox__img { max-height: calc(100dvh - 170px); }
}

/* Footer */
.site-footer { background: var(--green-900); color: #c9d6cc; padding-block: 3rem 1.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { background: #fff; color: #111; }
.brand--footer .brand__tag { color: #a9bcad; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #f1e9d6; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer__links { display: flex; flex-direction: column; gap: .3rem; }
.footer__copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .95rem; color: #a9bcad; }

/* Mobile bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--paper); box-shadow: 0 -4px 20px -8px rgb(27 53 39 / .35); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; text-decoration: none; color: var(--green-900); font-weight: 700; font-size: .95rem; }
  .mobile-bar__primary { background: var(--green); color: #fff !important; }
  .site-nav__cta { display: none; }
}

/* Subpages */
.page { padding-block: clamp(3rem, 7vw, 5rem); }
.page .container { max-width: calc(820px + 2 * var(--gutter)); }
.page h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.page ol, .page ul { padding-left: 1.5rem; margin-bottom: 1em; }
.page li { margin-bottom: .5em; }
.page li::marker { color: var(--green); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: .4em; margin-bottom: 1.5rem; font-weight: 700; text-decoration: none; }
.back-link .icon { transform: rotate(180deg); }
.signature { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; color: var(--muted); }

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