/* Layout: full-bleed photo bands alternating with a narrow reading column, like a gardener's scrapbook */
:root {
  --paper: #f1f2ea;      /* pale lichen */
  --paper-2: #e4e7d9;    /* moss wash for bands */
  --ink: #1e271f;        /* deep holly */
  --ink-soft: #4d5a4c;
  --moss: #46663f;       /* hedge green */
  --bloom: #5d76ad;      /* hydrangea blue: the one accent */
  --rose: #b5636c;       /* old rose, used only for small marks */
  --stone: #8b7b66;
  --line: #c9cdb9;
  --on-photo: #fbfaf4;
  --placeholder-bg: #f4e6c4;
  --placeholder-ink: #6b4f12;
  --f-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-italic: "Libre Caslon Text", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.85rem;
  --step-0: 1.05rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4.5vw, 3.2rem);
  --step-4: clamp(2.8rem, 8vw, 6.2rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141a15; --paper-2: #1c241d; --ink: #e8eadf; --ink-soft: #b3bba9;
    --moss: #9cbf8f; --bloom: #9fb2e0; --rose: #e0959d; --stone: #c1b29c; --line: #34402f;
    --placeholder-bg: #3d3216; --placeholder-ink: #f0d79a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141a15; --paper-2: #1c241d; --ink: #e8eadf; --ink-soft: #b3bba9;
  --moss: #9cbf8f; --bloom: #9fb2e0; --rose: #e0959d; --stone: #c1b29c; --line: #34402f;
  --placeholder-bg: #3d3216; --placeholder-ink: #f0d79a; color-scheme: dark;
}

/* language switch */
:root[data-lang="fr"] body [lang="en"], :root[data-lang="en"] body [lang="fr"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bloom); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
em { font-family: var(--f-italic); font-style: italic; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.col { max-width: 40rem; margin-inline: auto; }
.wide { max-width: 78rem; margin-inline: auto; }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.16em; color: var(--moss); font-weight: 600; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 1rem; padding-block: 0.7rem; }
.brand { font-family: var(--f-display); font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 1.2rem; margin-left: auto; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { font: inherit; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: var(--on-photo); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,10,0) 35%, rgba(10,20,10,0.62) 100%); }
.hero-in { position: relative; z-index: 1; padding-block: 3rem 3.2rem; }
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.hero p { font-size: var(--step-1); max-width: 34rem; margin-top: 1rem; opacity: 0.95; }
.hero .place { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.hero .cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-block; padding: 0.75rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.btn-light { background: var(--on-photo); color: #1e271f; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.7); color: var(--on-photo); }

/* intro + facts */
.intro { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } }
.intro h2 { margin-bottom: 1.2rem; }
.facts { border-top: 1px solid var(--ink); display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.todo { background: var(--placeholder-bg); color: var(--placeholder-ink); font-weight: 500; font-size: 0.85em; padding: 0.05rem 0.45rem; border-radius: 4px; }
.facts-note { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.8rem; }

/* section heads */
.sec { padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.band { background: var(--paper-2); }

/* garden chapters */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.chapter:nth-of-type(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.chapter:nth-of-type(even) .chapter-text { order: 2; }
@media (max-width: 820px) { .chapter, .chapter:nth-of-type(even) { grid-template-columns: 1fr; } .chapter:nth-of-type(even) .chapter-text { order: 0; } }
.chapter-text { position: sticky; top: 5.5rem; display: grid; gap: 0.9rem; }
@media (max-width: 820px) { .chapter-text { position: static; } }
.chapter-text .tag { font-family: var(--f-italic); font-style: italic; color: var(--rose); font-size: var(--step-1); }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: 3px; background: var(--line); cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic .a { grid-column: span 4; grid-row: span 2; aspect-ratio: 4 / 5; }
.mosaic .b { grid-column: span 2; aspect-ratio: 4 / 5; }
.mosaic .c { grid-column: span 3; aspect-ratio: 1 / 1; }
.mosaic .d { grid-column: span 6; aspect-ratio: 16 / 9; }
@media (max-width: 560px) { .mosaic .a, .mosaic .d { grid-column: span 6; } .mosaic .b, .mosaic .c { grid-column: span 3; } .mosaic .a { aspect-ratio: 4 / 5; grid-row: auto; } }

/* quote band */
.quote { position: relative; color: var(--on-photo); min-height: 70vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote::after { content: ""; position: absolute; inset: 0; background: rgba(15, 25, 15, 0.42); }
.quote blockquote { position: relative; z-index: 1; margin: 0; font-family: var(--f-italic); font-style: italic; font-size: var(--step-3); line-height: 1.2; max-width: 22ch; text-wrap: balance; }

/* a day here: a real sequence of hours */
.day { display: grid; gap: 0; }
.hour { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.hour:last-child { border-bottom: 1px solid var(--line); }
.hour time { font-family: var(--f-display); font-size: var(--step-2); color: var(--moss); font-variant-numeric: tabular-nums; }
.hour h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 600; margin-bottom: 0.35rem; }
.hour p { color: var(--ink-soft); }
.hour figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.hour img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .hour { grid-template-columns: 4rem minmax(0, 1fr); } .hour figure { grid-column: 1 / -1; } }

/* house */
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.6rem; }
.rooms figure { margin: 0; position: relative; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.rooms img { width: 100%; height: 100%; object-fit: cover; }
.rooms figcaption { position: absolute; left: 0.7rem; bottom: 0.6rem; color: var(--on-photo); font-size: 0.85rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.r-l { grid-column: span 7; aspect-ratio: 4 / 3; }
.r-m { grid-column: span 5; aspect-ratio: 4 / 3; }
.r-s { grid-column: span 4; aspect-ratio: 3 / 4; }
@media (max-width: 680px) { .r-l, .r-m { grid-column: span 12; } .r-s { grid-column: span 6; } }
.house-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2.5rem; margin-top: 2.5rem; }
.house-notes h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.house-notes p { color: var(--ink-soft); }

/* garden calendar */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.4rem 1rem; }
.month { display: grid; gap: 0.6rem; align-content: start; }
.month figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.month img { width: 100%; height: 100%; object-fit: cover; }
.month b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1; }
.month p { font-size: 0.95rem; color: var(--ink-soft); }

/* aerial */
.aerial { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.6rem; }
.aerial figure { margin: 0; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.aerial img { width: 100%; height: 100%; object-fit: cover; }
.aerial .tall { grid-row: span 2; aspect-ratio: 4 / 3.4; }
.aerial .flat { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .aerial { grid-template-columns: 1fr; } .aerial .tall { grid-row: auto; } }

/* surroundings */
.around { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .around { grid-template-columns: 1fr; } }
.dist { display: grid; border-top: 1px solid var(--ink); }
.dist div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.dist span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.dist .uk { color: var(--bloom); font-weight: 600; }
.small { font-size: var(--step--1); color: var(--ink-soft); }
.around-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.around-pics figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.around-pics figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.around-pics img { width: 100%; height: 100%; object-fit: cover; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filters button { font: inherit; font-size: 0.9rem; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.filters .n { opacity: 0.65; font-variant-numeric: tabular-nums; margin-left: 0.3rem; }
.grid { columns: 4 14rem; column-gap: 0.6rem; }
.grid button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 0.6rem; background: var(--line); border-radius: 3px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.grid img { width: 100%; height: auto; }
.more { margin-top: 1.5rem; display: flex; justify-content: center; }
.more button { font: inherit; font-weight: 600; padding: 0.75rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }

/* contact */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: var(--moss); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: var(--step-3); }
.contact p { opacity: 0.85; }
.card { border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 6px; padding: 1.5rem; display: grid; gap: 0.9rem; }
.card .todo { justify-self: start; }
.contact figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.contact figure img { width: 100%; height: 100%; object-fit: cover; }
footer { padding-block: 2rem; font-size: var(--step--1); color: var(--ink-soft); }
footer .wide { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* lightbox */
[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 8, 0.94); display: grid; grid-template-rows: 1fr auto; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lb img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; align-self: center; justify-self: center; min-height: 0; }
.lb-stage { display: grid; min-height: 0; padding: 3.2rem 0.5rem 0.5rem; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #e9ece0; padding: 0.6rem 1rem 1rem; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lb button { font: inherit; background: rgba(255,255,255,0.1); color: #f4f5ee; border: 0; border-radius: 999px; padding: 0.55rem 1rem; cursor: pointer; }
.lb .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 0.7rem); right: calc(env(safe-area-inset-right, 0px) + 0.8rem); }

/* answers-driven additions */
.reassure { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--ink); padding-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; }
.reassure h3 { font-size: var(--step-2); }
.reassure h3 + h3 { margin: 0; }
.reassure p { color: var(--ink-soft); grid-column: 2; grid-row: 1; }
@media (max-width: 820px) { .reassure { grid-template-columns: 1fr; } .reassure p { grid-column: auto; grid-row: auto; } }
.floors, .practical { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.6rem 2.5rem; margin-top: 2.5rem; }
.floors > div, .practical > div { border-top: 1px solid var(--ink); padding-top: 0.9rem; display: grid; gap: 0.4rem; align-content: start; }
.floors h3, .practical h3 { font-size: var(--step-1); }
.floors p, .practical p { color: var(--ink-soft); }
.practical { margin-top: 0; }
.gite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .gite { grid-template-columns: 1fr; } }
.gite-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gite-pics figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.gite-pics figure:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gite-pics img { width: 100%; height: 100%; object-fit: cover; }
.uk-box { border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem 1.4rem; display: grid; gap: 0.6rem; background: var(--paper); }
.uk-box h3 { font-size: var(--step-1); color: var(--bloom); }
.uk-box p { color: var(--ink-soft); }
.reach { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.contact .btn-ghost { border-color: color-mix(in srgb, var(--paper) 55%, transparent); color: var(--paper); }
.contact .btn-light { background: var(--paper); color: var(--ink); border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.mails { font-size: 1rem; }
.mails a { color: var(--paper); }
.small-light { font-size: var(--step--1); opacity: 0.7; }
.form .field { display: grid; gap: 0.3rem; }
.form label { font-size: 0.88rem; opacity: 0.85; }
.form input, .form textarea { font: inherit; color: var(--paper); background: color-mix(in srgb, var(--paper) 8%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 4px; padding: 0.6rem 0.75rem; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--bloom); outline-offset: 1px; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.92rem; min-height: 1.2em; }
.form-status.err { color: var(--rose); }
