@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/librebaskerville-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/librebaskerville-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/librebaskerville-700.woff2") format("woff2"); }
@font-face { font-family: "Varta"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/varta-300-700.woff2") format("woff2"); }

:root {
  --paper: #ece9e4;        /* the misty morning the page sits in */
  --slate: #4f6b85;        /* mist slate: the headline */
  --slate-d: #3e5770;
  --ink: #1d2832;
  --ink-2: #47535e;
  --line: rgba(29, 40, 50, .14);
  --card: rgba(247, 245, 241, .9);
  --acc: #b8612f;          /* follows the season (set by hero.js) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --pad: clamp(20px, 4.4vw, 64px);
  --sx: -154px; --sy: 0px; --sw: 1594px; --sh: 900px;
  --mist-a: .55;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 "Varta", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
::selection { background: var(--slate); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, p, ul { margin: 0; }
[hidden] { display: none !important; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 10px; }

/* ---------- the stage ---------- */
.mistpine {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100dvh; min-height: 680px;
  display: grid;
  grid-template-columns: var(--pad) minmax(0, 1fr) var(--pad);
  grid-template-rows: 84px auto minmax(12px, 1fr) auto auto 40px;
  grid-template-areas: ". nav ." ". copy ." ". . ." ". seasons ." ". plan ." ". note .";
  background: var(--paper);
}
.scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.photo { position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); }
.season-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease-io); }
.season-img.on { opacity: 1; }
.season-img.now { transition-duration: 0s; }
/* mist: two soft bands drifting at their own pace, over the far hills and over the lake */
.mist { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; opacity: var(--mist-a); transition: opacity 1.2s ease; }
.mist i { position: absolute; inset: 0 auto 0 0; width: 200%; background: url("img/mist.webp") repeat-x 0 0 / 50% 100%; }
.mist--far { top: 61%; height: 22%; opacity: calc(var(--mist-a) * .85); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 20%, transparent 46%); mask-image: linear-gradient(90deg, #000 0, #000 20%, transparent 46%); }
.mist--lake { top: 80%; height: 22%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 40%, #000 70%, transparent); }
.mist--far i { animation: drift 140s linear infinite; }
.mist--lake i { animation: drift 90s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.veil { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(120% 70% at 30% 75%, rgba(244, 243, 240, .95), rgba(244, 243, 240, .6) 50%, rgba(244, 243, 240, .15)); }
.weather { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(240, 238, 234, .55) 0, rgba(240, 238, 234, 0) 140px),
    radial-gradient(ellipse 48% 54% at 19% 32%, rgba(243, 241, 237, .7) 0, rgba(243, 241, 237, .44) 55%, rgba(243, 241, 237, 0) 100%);
}

/* ---------- nav ---------- */
.nav { grid-area: nav; position: relative; z-index: 8; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
/* the mark: three stacked ridgelines in mist */
.logo__mark { position: relative; width: 34px; height: 30px; }
.logo__mark i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--slate); }
.logo__mark i:nth-child(1) { top: 6px; left: 10px; right: 6px; opacity: .55; }
.logo__mark i:nth-child(2) { top: 14px; left: 4px; right: 0; opacity: .8; }
.logo__mark i:nth-child(3) { top: 22px; left: 0; right: 10px; }
.logo__mark::before { content: ""; position: absolute; left: 13px; top: 0; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 13px solid var(--ink); }
.logo__word { display: grid; font: 400 22px/1 "Libre Baskerville", serif; letter-spacing: -.01em; color: var(--ink); }
.logo__word small { margin-top: 5px; font: 600 10px/1 "Varta", sans-serif; letter-spacing: .36em; text-transform: uppercase; color: var(--slate-d); }
.links { display: flex; gap: clamp(18px, 2.3vw, 34px); }
.links a { position: relative; padding: 6px 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--slate); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.links a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; transition: background .2s ease, transform .16s ease-out; }
.nav__cta:hover { background: var(--slate-d); }
.nav__cta:active { transform: scale(.97); }
.menu { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(247, 245, 241, .8); cursor: pointer; font-size: 20px; color: var(--ink); }
.sheet {
  position: absolute; top: 72px; right: 0; display: grid; min-width: 220px; padding: 8px; border-radius: 18px;
  background: #f7f5f1; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(20, 30, 40, .35);
  transform-origin: top right; transition: opacity .18s ease-out, transform .18s var(--ease-out);
}
@starting-style { .sheet { opacity: 0; transform: scale(.97) translateY(-4px); } }
.sheet a { padding: 11px 14px; border-radius: 11px; font-weight: 500; }
.sheet a:hover { background: rgba(79, 107, 133, .1); }

/* ---------- copy on the misty sky ---------- */
.copy { grid-area: copy; position: relative; z-index: 4; width: min(600px, 44vw); margin-top: clamp(20px, 6vh, 70px); }
h1 { font: 400 clamp(40px, min(4.5vw, 7.4vh), 70px)/1.1 "Libre Baskerville", serif; letter-spacing: -.025em; color: var(--slate); text-wrap: balance; }
h1 .l { display: block; }
.lede { max-width: 27em; margin-top: clamp(14px, 2.4vh, 22px); font-size: 19px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(18px, 3vh, 28px); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 24px; border-radius: 999px;
  background: var(--slate); color: #fff; font-size: 16.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgba(40, 60, 80, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: background .2s ease, transform .16s ease-out;
}
.btn .ic { font-size: 18px; transition: transform .3s var(--ease-out); }
.btn:hover { background: var(--slate-d); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.ghost { position: relative; padding: 6px 0; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.ghost::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: rgba(29, 40, 50, .4); transition: background .2s ease; }
.ghost:hover::after { background: var(--slate); }

/* ---------- the season control ---------- */
.seasons {
  grid-area: seasons; position: relative; z-index: 6; justify-self: start; align-self: end;
  display: grid; grid-template-columns: repeat(4, 1fr); width: 440px; padding: 5px; margin-bottom: 10px; border-radius: 999px;
  background: rgba(247, 245, 241, .82); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 40px -22px rgba(20, 30, 40, .55);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
}
.seasons button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 10px; border: 0; border-radius: 999px;
  background: none; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--ink-2); transition: color .25s ease, transform .16s ease-out;
}
.seasons button .ic { font-size: 18px; }
.seasons button:hover { color: var(--ink); }
.seasons button:active { transform: scale(.96); }
.seasons button[aria-checked="true"] { color: var(--ink); }
.seasons button[aria-checked="true"] .ic { color: var(--acc); }
.seasons button:focus-visible { outline-offset: -2px; }
.seasons__thumb {
  position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px) / 4); border-radius: 999px; background: #fff;
  box-shadow: 0 6px 16px -8px rgba(20, 30, 40, .45), 0 0 0 1px rgba(29, 40, 50, .05);
  transform: translateX(calc(var(--i, 2) * 100%)); transition: transform .42s var(--ease-io);
}

/* ---------- the planting card ---------- */
.plan {
  grid-area: plan; position: relative; z-index: 6; justify-self: start;
  width: 440px; padding: 20px 22px 18px; border-radius: 22px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 28px 60px -30px rgba(20, 30, 40, .55), 0 2px 8px -4px rgba(20, 30, 40, .2);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.plan__in { transition: opacity .2s ease-out, translate .25s var(--ease-out); }
.plan__in.out { opacity: 0; translate: 0 6px; }
.plan h2 { font: 400 21px/1.25 "Libre Baskerville", serif; letter-spacing: -.01em; color: var(--ink); }
.plants { list-style: none; display: grid; gap: 2px; margin-top: 10px; padding: 0; }
.plants li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 0 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.plants li:first-child { border-top: 0; }
.sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.plants b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.plants i { display: block; font: italic 400 13.5px/1.35 "Libre Baskerville", serif; color: var(--ink-2); }
.plants em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.care { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.care__price { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.care__price b { font: 400 28px/1 "Libre Baskerville", serif; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.care__per { margin-left: 0; }
.care__tasks { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.care__tasks .ic { flex: none; margin-top: 2px; font-size: 16px; color: var(--acc); }

.note { grid-area: note; position: relative; z-index: 4; align-self: center; justify-self: end; padding: 3px 11px; border-radius: 999px; background: rgba(247, 245, 241, .82); font-size: 12px; font-weight: 500; color: var(--ink); }

/* ---------- entrance: the mist lifts off the lake, the words come into focus as it clears ---------- */
.veil.lift { animation: lift 2.2s var(--ease-out) both; }
@keyframes lift { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(6%); } }
.js:not(.in):not(.shot) .veil { opacity: 1; }
h1 .l { transition: opacity 1.2s var(--ease-out), filter 1.4s var(--ease-out), translate 1.2s var(--ease-out); }
.js:not(.in):not(.shot) h1 .l { opacity: 0; filter: blur(10px); translate: 0 6px; }
h1 .l:nth-child(1) { transition-delay: .35s; }
h1 .l:nth-child(2) { transition-delay: .55s; }
.nav, .lede, .cta, .note, .seasons, .plan { transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
.js:not(.in):not(.shot) :is(.nav, .lede, .cta, .note) { opacity: 0; translate: 0 8px; }
.js:not(.in):not(.shot) :is(.seasons, .plan) { opacity: 0; translate: 0 16px; }
.lede { transition-delay: .8s; }
.cta { transition-delay: .9s; }
.seasons { transition-delay: 1s; }
.plan { transition-delay: 1.1s; }
.note { transition-delay: 1.4s; }
.done :is(.nav, .lede, .cta, .note, .seasons, .plan, h1 .l) { transition-delay: 0s; }

/* ---------- smaller landscape screens ---------- */
@media (max-width: 1280px) { .links a:nth-child(4) { display: none; } }
@media (max-height: 820px) and (min-aspect-ratio: 1/1) {
  .mistpine { grid-template-rows: 76px auto minmax(10px, 1fr) auto auto 36px; }
  .copy { margin-top: clamp(8px, 3vh, 30px); }
  .lede { font-size: 17px; }
  .btn { height: 48px; }
  .plan { padding: 16px 18px 14px; }
  .plants li { padding: 5px 0; }
  .care { margin-top: 6px; padding-top: 10px; }
  .care__price b { font-size: 25px; }
}
@media (max-height: 760px) and (min-aspect-ratio: 1/1) {
  .ghost { display: none; }
  .plants em { display: none; }
  .care__tasks { display: none; }
  .lede { max-width: 30em; }
}
@media (max-width: 1100px) {
  .links { display: none; }
  .menu { display: inline-grid; }
}
@media (max-width: 1100px) and (min-aspect-ratio: 1/1) {
  .copy { width: min(470px, 48vw); }
  h1 { font-size: clamp(38px, min(5vw, 7vh), 54px); }
  .lede { font-size: 17px; }
  .seasons, .plan { width: 400px; }
  .shade { background:
    linear-gradient(180deg, rgba(240, 238, 234, .6) 0, rgba(240, 238, 234, 0) 140px),
    radial-gradient(ellipse 62% 58% at 22% 33%, rgba(243, 241, 237, .8) 0, rgba(243, 241, 237, .55) 55%, rgba(243, 241, 237, 0) 100%); }
}

/* ---------- portrait: the lake house first with the seasons on the water, then the words, then the plan ---------- */
@media (max-width: 760px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .mistpine {
    height: auto; min-height: 100svh;
    grid-template-rows: 76px var(--band-h, 420px) auto auto auto auto;
    grid-template-areas: ". nav ." "scene scene scene" ". seasons ." ". copy ." ". plan ." ". note .";
    padding-bottom: 22px;
    background: linear-gradient(180deg, #e7e6e3 0, var(--paper) 40%);
  }
  .scene { position: relative; inset: auto; grid-area: scene; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60px); mask-image: linear-gradient(180deg, transparent 0, #000 60px); }
  .weather { position: absolute; }
  .shade { display: none; }
  .seasons { justify-self: center; width: min(520px, 100%); margin: -30px 0 0; }
  .copy { width: auto; max-width: 620px; margin-top: 26px; }
  h1 { font-size: clamp(36px, 6.6vw, 56px); }
  .lede { font-size: 17.5px; }
  .plan { justify-self: stretch; width: auto; max-width: 620px; margin-top: 26px; }
  .note { justify-self: start; margin-top: 18px; padding: 0; background: none; }
}
@media (max-width: 760px) {
  .mistpine { grid-template-rows: 68px var(--band-h, 300px) auto auto auto auto; }
  .nav { gap: 10px; }
  .nav__cta { height: 40px; padding: 0 15px; font-size: 14px; }
  .menu { width: 40px; height: 40px; }
  .logo__word { font-size: 20px; }
  .logo__mark { width: 28px; }
  h1 { font-size: clamp(31px, 8.8vw, 40px); }
  .lede { font-size: 16.5px; }
  .btn { height: 50px; }
  .seasons { margin-top: -26px; }
  .seasons button { flex-direction: column; gap: 1px; height: 52px; font-size: 13.5px; }
  .seasons__thumb { border-radius: 26px; }
  .seasons { border-radius: 30px; }
  .plan { padding: 18px 16px 16px; }
  .plan h2 { font-size: 19px; }
  .note { justify-self: center; text-align: center; font-size: 11.5px; }
}
@media (max-width: 400px) { .nav__cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .season-img, h1 .l, .nav, .lede, .cta, .note, .seasons, .plan, .plan__in, .seasons__thumb, .sheet, .mist { transition: none !important; }
  .mist i, .veil.lift { animation: none !important; }
}
