/* Snowy Cabinets. Orange and grey come from the logo, the rest from the black joinery in the photos. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #17140f;
  --ink-2: #231e17;
  --ink-line: #3a3228;
  --paper: #faf7f1;
  --bone: #efe8db;
  --line: #d9cfbe;
  --text: #2a241c;
  --muted: #5e554a;
  --on-ink: #f3eee5;
  --on-ink-muted: #bdb2a3;
  --accent: #f7931e;
  --accent-hover: #ffab47;
  --accent-deep: #a85800;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 3.4vw, 56px);
  --max: 1600px;
  --section: clamp(44px, 5vw, 72px);
  --gap: clamp(20px, 2.4vw, 36px);
  --header: 78px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.99rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
picture { display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.9rem + 3.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.7vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.45vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.ink { background: var(--ink); color: var(--on-ink); }
.bone { background: var(--bone); }
.ink .lede { color: var(--on-ink-muted); }

.lede { font-size: 1.1em; line-height: 1.5; color: var(--muted); }
.head { display: grid; gap: 10px var(--gap); margin-bottom: clamp(22px, 2.6vw, 36px); align-items: end; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--accent); color: var(--ink);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  border: 1.5px solid var(--accent); border-radius: 3px;
  background: var(--accent); color: var(--ink);
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--on-ink); border-color: #6f6455; }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: white so the logo shows exactly as designed */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header);
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.32rem; line-height: 1; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo img { width: auto; height: 58px; flex: none; }

.nav { display: none; }
.nav a { text-decoration: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; margin-right: -8px; padding: 8px;
  border: 0; background: none; color: var(--text);
  font: 700 1rem var(--sans); cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before {
  display: block; width: 22px; height: 2px; background: currentColor;
  transition: transform .2s;
}
.menu-btn__bars { position: relative; transform: translateY(-3px); }
.menu-btn__bars::before { content: ""; position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-7px) rotate(-90deg); }

.nav-open { overflow: hidden; }
.nav-open .nav {
  display: flex; flex-direction: column;
  position: fixed; inset: calc(var(--header) + 1px) 0 0 0; z-index: 49;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; background: #fff;
}
.nav-open .nav li { border-bottom: 1px solid var(--line); }
.nav-open .nav li a { display: block; padding: 17px 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.nav__call, .nav__call:hover { margin-top: 26px; align-self: stretch; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.nav__call:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
html:not(.js) .nav { display: block; padding-bottom: 14px; }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .header__in { flex-wrap: wrap; height: auto; padding-top: 10px; }
html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Hero */
.hero { display: flex; flex-direction: column; background: var(--ink); color: var(--on-ink); }
.hero__media { order: -1; aspect-ratio: 4 / 3; overflow: hidden; }
.hero__media picture { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
.hero__text { padding: 28px var(--gutter) 40px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { color: var(--on-ink-muted); margin-bottom: 1.4em; max-width: 30em; }
.hero .btn--ghost { display: none; }
.hero__area { margin-top: 1.3em; color: var(--on-ink-muted); font-size: 0.94em; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
  padding-block: 26px 30px; border-top: 1px solid var(--ink-line);
}
.facts strong { display: block; font-size: 1.2rem; line-height: 1.2; color: var(--accent); margin-bottom: 3px; }
.facts span { display: block; font-size: 0.9em; line-height: 1.4; color: var(--on-ink-muted); }

/* Photos */
.ph { overflow: hidden; background: var(--bone); }
.ph picture { height: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ink .ph { background: var(--ink-2); }
.ratio-wide { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-kitchen { aspect-ratio: 2048 / 1166; }

/* Services */
.services { display: grid; gap: 0 var(--gap); margin-top: clamp(20px, 2.4vw, 32px); }
.services li { padding: 14px 0; border-top: 1px solid var(--line); }
.services h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.services p { color: var(--muted); }

/* Photo with words under it */
.two { display: grid; gap: 34px var(--gap); margin-top: clamp(26px, 3vw, 44px); }
.item .ph { margin-bottom: 14px; }
.item h3 { margin-bottom: 0.3em; }
.item p { color: var(--muted); }
.ink .item p { color: var(--on-ink-muted); }

/* Bar and kitchen */
.fit { display: grid; gap: 26px var(--gap); }
.fit__side { display: flex; flex-direction: column; gap: 24px; }
.fit h2 { margin-bottom: 0.45em; }
.fit p { color: var(--on-ink-muted); }

/* Library and ski room */
.pair { display: grid; gap: 34px var(--gap); }
.pair .ph { margin-bottom: 14px; }
.pair h3 { margin-bottom: 0.3em; }
.pair p { color: var(--muted); }

/* Box */
.detail { display: grid; background: var(--ink); color: var(--on-ink); }
.detail__img { aspect-ratio: 4 / 3; overflow: hidden; }
.detail__img picture { height: 100%; }
.detail__img img { width: 100%; height: 100%; object-fit: cover; }
.detail__text { padding: 30px var(--gutter) 40px; align-self: center; }
.detail__text h2 { margin-bottom: 0.4em; }
.detail__text p { color: var(--on-ink-muted); max-width: 30em; }

/* About, in its own warmer type */
.story { display: grid; gap: 16px var(--gap); font-family: "Lora", Georgia, "Times New Roman", serif; }
.story h2 { font-family: inherit; font-weight: 600; letter-spacing: 0; }
.story__text { font-size: clamp(1.15rem, 1.08rem + 0.35vw, 1.32rem); line-height: 1.7; }
.story__text p { max-width: 36em; }
.sign { margin-top: 1em; font-size: 1.5rem; font-style: italic; font-weight: 500; color: var(--accent-deep); }

/* Steps */
.steps { display: grid; gap: 24px var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how { margin-bottom: clamp(20px, 2.4vw, 32px); }
.step { position: relative; padding-left: 50px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: -5px;
  font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--accent-deep);
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.step p { color: var(--muted); }

/* Contact */
.contact { display: grid; gap: 36px; }
.contact h2 { margin-bottom: 0.35em; }
.contact .lede { margin-bottom: 1.2em; }
.lines { margin: 0; }
.lines div { padding: 11px 0; border-top: 1px solid var(--ink-line); }
.lines div:last-child { border-bottom: 1px solid var(--ink-line); }
.lines dt { color: var(--on-ink-muted); font-size: 0.9em; }
.lines dd { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.lines a { display: inline-block; padding-block: 9px; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lines a:hover { color: var(--accent); }
.lines small { display: block; font-size: 1rem; font-weight: 400; line-height: 1.4; color: var(--on-ink-muted); }

.form { display: grid; gap: 14px; padding: clamp(20px, 2.6vw, 34px); background: var(--paper); color: var(--text); }
.form h3 { margin-bottom: -2px; }
.field label { display: block; margin-bottom: 5px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #b4a896; border-radius: 3px;
  background: #fff; color: var(--text);
  font: 400 1.0625rem/1.4 var(--sans);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-deep); outline-offset: 0; border-color: var(--accent-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }

/* Small pages: terms, thank you */
.pagehead { padding-block: clamp(36px, 5vw, 64px) clamp(30px, 4vw, 48px); }
.pagehead h1 { font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); margin-bottom: 0.35em; }
.pagehead .lede { color: var(--on-ink-muted); }
.terms { max-width: 46em; }
.terms h2 { font-size: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem); margin: 1.5em 0 0.45em; }
.terms h2:first-child { margin-top: 0; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 18px; font-size: 0.92em; border-top: 1px solid var(--ink-line); }
.footer__in { display: flex; flex-wrap: wrap; gap: 4px 26px; justify-content: space-between; }
.footer a { display: inline-block; padding-block: 11px; text-underline-offset: 3px; }
.footer a:hover { color: var(--accent); }
.footer p { margin: 0; padding-block: 11px; }

/* Call bar on phones */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.35fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); border-top: 1px solid var(--ink-line);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--on-ink);
}
.callbar a:first-child { background: var(--accent); color: var(--ink); }
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.nav-open .callbar { display: none; }

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratio-wide { aspect-ratio: 2.16 / 1; }
}

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .hero .btn--ghost { display: inline-flex; }
  .head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .fit > .ph { aspect-ratio: auto; position: relative; }
  .fit > .ph picture { position: absolute; inset: 0; }
  /* widths set so the upright and the wide photo finish at the same height */
  .pair { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); }
  .story { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form h3, .field--full, .form .btn { grid-column: 1 / -1; }
  .form .btn { width: auto; justify-self: start; }

  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .detail__img { aspect-ratio: 4 / 3; width: 100%; }
  .detail__text { padding: 36px var(--gutter) 36px clamp(28px, 4vw, 64px); }
}

@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav ul { display: flex; gap: 26px; }
  .nav li a { display: block; padding: 8px 0; font-size: 1.02rem; font-weight: 600; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
  .nav li a:hover { color: var(--accent-deep); }
  .nav li a.is-here { border-color: var(--accent); }
  .nav__call.btn { margin-top: 0; min-height: 46px; padding: 8px 18px; font-size: 0.98rem; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding-left: 0; padding-top: 48px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: min(calc(100vh - var(--header) - 96px), 700px);
  }
  .hero__media { order: 2; aspect-ratio: auto; position: relative; min-height: 460px; }
  .hero__media picture { position: absolute; inset: 0; }
  .hero__media img { object-position: 42% 50%; }
  .hero h1 { font-size: clamp(2.7rem, 4.1vw, 4.5rem); }
  .hero__text {
    align-self: center;
    padding: 36px clamp(24px, 3vw, 52px) 36px max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
}

@media (max-width: 359px) {
  .logo { font-size: 1.14rem; gap: 9px; }
  .logo img { height: 48px; }
  .btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .header, .callbar, .footer { display: none; }
  body { padding: 0; }
}
