/* ēWood — tokens
   butter : the brand yellow from the current discoverewood.com
   glass  : the green of a thick glass edge, used for the dark bands
   oak    : blond oak, for rules and the ē
   ink    : walnut-dark text */
:root {
  --butter: #fbe7a2;
  --butter-deep: #f3d97f;
  --paper: #fbfaf5;
  --mist: #edf0ea;
  --ink: #211a13;
  --ink-soft: #5b5148;
  --line: #d8d1c2;
  --oak: #a97843;
  --glass: #1b2a26;
  --glass-soft: #2a3d37;
  --on-glass: #e9eee8;
  --on-glass-soft: #a9b8b0;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --band: clamp(4.5rem, 9vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { margin: 0; font-weight: 350; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.75rem); max-width: 18ch; }
h3 { font-size: 1.45rem; font-weight: 450; letter-spacing: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); }
.band { padding-block: var(--band); }
.lead { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); line-height: 1.45; color: var(--ink-soft); max-width: 54ch; margin-top: 1.4rem; }
.note { font-family: var(--sans); font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft); max-width: 72ch; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; font-family: var(--sans); }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.top {
  background: var(--butter);
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.6rem var(--gutter) 0;
}
.wordmark {
  font-family: var(--serif); font-weight: 300; font-size: 1.35rem;
  letter-spacing: 0.46em; text-decoration: none; white-space: nowrap;
}
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem clamp(0.9rem, 1.5vw, 1.6rem); font-family: var(--sans); font-size: 0.9rem; }
.top nav a { text-decoration: none; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.top nav a:hover { border-bottom-color: currentColor; }
.top nav .nav-cta { border-bottom-color: currentColor; }

/* ---------- hero ---------- */
.hero { margin-top: -1px; background: linear-gradient(var(--butter) 0, var(--butter) calc(100% - 9rem), var(--paper) calc(100% - 9rem)); }
.hero-text { padding-top: clamp(3.5rem, 9vw, 8rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); align-items: end; }
.hero h1 {
  grid-column: 1 / span 9;
  font-size: clamp(2.9rem, 8.2vw, 8.25rem);
  font-weight: 300; line-height: 0.98; letter-spacing: -0.028em;
}
.hero-lead { grid-column: 9 / -1; font-size: clamp(1.1rem, 0.7vw + 1rem, 1.35rem); line-height: 1.45; margin: 0 0 0.6rem; }
.hero-figure { margin: 0; }
.hero-frame { margin-left: var(--gutter); overflow: hidden; position: relative; background: var(--butter-deep); }
.hero-frame img { width: 100%; height: min(78vh, 56vw); min-height: 18rem; object-fit: cover; object-position: 50% 62%; }
/* One moment of motion: the photograph is uncovered sideways, the way a lift-and-slide panel travels. */
.hero-frame::after {
  content: ""; position: absolute; inset: 0; background: var(--butter-deep);
  transform: translateX(101%);
  animation: slide-open 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.15s backwards;
}
@keyframes slide-open { from { transform: translateX(0); } to { transform: translateX(101%); } }
.hero-figure figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); padding-top: 0.9rem; }

/* ---------- intro ---------- */
.intro-head { grid-column: 1 / span 5; }
.intro-body { grid-column: 7 / -1; font-size: 1.15em; line-height: 1.55; }
.facts { grid-column: 1 / -1; margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.facts > div { padding: 1.1rem 1.5rem 0 0; }
.facts dt { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); }
.facts dd { margin: 0.3rem 0 0; font-size: 1.3rem; line-height: 1.25; }

/* ---------- collections ---------- */
.collections { background: var(--mist); }
.col-nav { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 1.5rem clamp(1.5rem, 3.5vw, 3.5rem); }
.col-group { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: clamp(1rem, 1.8vw, 1.75rem); border-bottom: 1px solid var(--line); }
.col-group:last-child { flex-grow: 1; }
.col-group-name { flex-basis: 100%; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
.col-nav button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 0.3rem 0 0.9rem; cursor: pointer; color: var(--ink-soft);
  font-family: var(--serif); font-size: clamp(1.2rem, 0.9vw + 0.7rem, 1.65rem); font-weight: 350; line-height: 1.1;
}
.col-nav button:hover { color: var(--ink); }
.col-nav button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--oak); }

.col-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); padding-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.col-panel + .col-panel { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.js .col-panel + .col-panel { margin-top: 0; border-top: 0; }
.col-panel[hidden] { display: none; }
.col-panel figure { grid-column: 1 / span 6; margin: 0; }
.col-panel figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.col-panel figure.tall { grid-column: 2 / span 4; }
.col-panel figure.tall img { aspect-ratio: 4 / 5; }
.col-copy { grid-column: 8 / -1; }
.col-copy h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 350; letter-spacing: -0.012em; margin-bottom: 1.1rem; }
.mat { display: block; font-family: var(--sans); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); margin-top: 0.5rem; }

.spec { margin: 1.75rem 0 0; font-family: var(--sans); font-size: 0.93rem; line-height: 1.5; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- craft: the ē list ---------- */
.craft-head h2 { grid-column: 1 / span 6; }
.craft-head .lead { grid-column: 8 / -1; align-self: end; margin: 0; }
.e-list { list-style: none; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.e-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); align-items: baseline; padding: clamp(1.1rem, 2.2vw, 1.9rem) 0; border-bottom: 1px solid var(--line); }
.e-list h3 { grid-column: 1 / span 7; font-size: clamp(2rem, 4.6vw, 4.5rem); font-weight: 300; line-height: 1; letter-spacing: -0.025em; white-space: nowrap; }
.e-list .e { color: var(--oak); }
.e-list p { grid-column: 8 / -1; margin: 0; }
.craft-figure { margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); align-items: end; }
.craft-figure img { grid-column: 1 / span 8; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.craft-figure figcaption { grid-column: 9 / -1; font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- finishes ---------- */
.finishes { background: var(--butter); }
.finishes .lead, .finishes .note, .finishes .species figcaption { color: #4d4433; }
.species { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.species figure { margin: 0; }
.species img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.species figcaption { font-family: var(--sans); font-size: 0.9rem; line-height: 1.5; padding-top: 0.9rem; }
.species strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.45rem; line-height: 1.2; color: var(--ink); margin-bottom: 0.35rem; }

.finish-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.finish-text { grid-column: 1 / span 4; }
.finish-text h3 { margin-bottom: 0.6rem; }
.finish-text p { font-size: 1rem; margin: 0; }
.swatches { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 1.1rem 0.9rem; font-family: var(--sans); font-size: 0.78rem; line-height: 1.3; }
.swatches img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 0.45rem; box-shadow: 0 0 0 1px rgb(33 26 19 / 0.14); }
.finish-block .finish-text + .finish-text { grid-row: 2; }
.finish-block .finish-text + .finish-text + .swatches { grid-row: 2; }
.finishes > .wrap > .note { margin-top: 2.5rem; }

/* ---------- hardware ---------- */
.hw-grid { margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.hw-photos { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.hw-photos img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hw-photos img:last-child { margin-top: 3.5rem; }
.hw-copy { grid-column: 8 / -1; }
.hw-copy h3 { margin-bottom: 0.6rem; }

table.data { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.93rem; line-height: 1.45; margin: 1.5rem 0 1.25rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.7rem 1.25rem 0.7rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
table.data thead th { color: var(--ink-soft); font-size: 0.82rem; border-bottom-color: var(--ink); padding-bottom: 0.5rem; }
table.data tbody th { font-weight: 600; }
table.data tr > :last-child { padding-right: 0; }

.options { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); border-top: 1px solid var(--ink); padding-top: 2rem; }
.options h3 { margin-bottom: 0.5rem; }
.options p { font-size: 1rem; margin: 0; }

/* ---------- coastal ---------- */
.coastal { background: var(--glass); color: var(--on-glass); }
.coastal .lead { color: var(--on-glass-soft); }
.coastal h2 { max-width: 14ch; }
.coastal-copy { grid-column: 1 / span 6; }
.coastal-side { grid-column: 8 / -1; }
.coastal-side img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plain { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--glass-soft); }
.plain li { padding: 1rem 0; border-bottom: 1px solid var(--glass-soft); font-size: 1rem; line-height: 1.5; color: var(--on-glass-soft); display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; }
.plain strong { font-weight: 450; color: var(--on-glass); }
.spec.on-dark { border-top-color: var(--on-glass-soft); }
.spec.on-dark > div { border-bottom-color: var(--glass-soft); }
.spec.on-dark dt { color: var(--on-glass-soft); }
.approval { margin-top: 1.75rem; font-family: var(--sans); font-size: 0.9rem; line-height: 1.55; color: var(--on-glass-soft); border-left: 2px solid var(--butter); padding-left: 1rem; }
.approval strong { color: var(--butter); font-weight: 600; }

/* ---------- sizes ---------- */
.table-scroll { overflow-x: auto; margin-top: clamp(2rem, 4vw, 3rem); }
table.wide { min-width: 46rem; margin-top: 0; }
table.wide td:nth-child(2) { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
table.wide td:nth-child(3), table.wide td:nth-child(4) { white-space: nowrap; }

.sizes-figure { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.sizes-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 58%; }
.sizes-figure figcaption, .work-grid figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); padding-top: 0.7rem; }

/* ---------- built work ---------- */
.work { padding-top: 0; }
.work-grid { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.4vw, 2.5rem); align-items: start; }
.work-grid figure { margin: 0; }
.work-grid img { width: 100%; object-fit: cover; }
.w-a { grid-column: 1 / span 7; } .w-a img { aspect-ratio: 4 / 3; }
.work-grid .w-b { grid-column: 9 / span 4; margin-top: clamp(2rem, 6vw, 6rem); } .w-b img { aspect-ratio: 3 / 4; }
.w-c { grid-column: 1 / span 4; } .w-c img { aspect-ratio: 1; }
.work-grid .w-d { grid-column: 5 / span 4; margin-top: clamp(1rem, 3vw, 3rem); } .w-d img { aspect-ratio: 1; }
.w-e { grid-column: 9 / span 4; } .w-e img { aspect-ratio: 1; }

/* ---------- company ---------- */
.company { background: var(--mist); }
.company-head { grid-column: 1 / span 6; }
.company-lead { grid-column: 8 / -1; align-self: end; margin: 0; }
.timeline { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.timeline li { padding: 1.1rem 1.5rem 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }
.timeline .year { display: block; font-size: clamp(1.8rem, 3vw, 2.75rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.timeline p { font-family: var(--sans); font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); margin: 0.6rem 0 0; }
.company-foot { margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.company-figure { grid-column: 1 / span 6; margin: 0; }
.company-figure img { width: 100%; }
.company-copy { grid-column: 8 / -1; }
.company-copy h3 { margin-bottom: 0.6rem; }
.company-copy h3:not(:first-child) { margin-top: 2.5rem; }
.company-copy p { font-size: 1rem; }

/* ---------- contact ---------- */
.contact { background: var(--butter); }
.contact h2 { font-size: clamp(2.5rem, 6.5vw, 6rem); font-weight: 300; letter-spacing: -0.025em; max-width: 12ch; line-height: 1; }
.contact .lead { color: #4d4433; }
.contact-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; max-width: none; }
.btn { font-family: var(--sans); font-size: 0.98rem; font-weight: 500; line-height: 1; padding: 1.05rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--butter); text-decoration: none; cursor: pointer; }
.btn:hover { background: #3a2f24; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgb(33 26 19 / 0.08); }
.copied { font-family: var(--sans); font-size: 0.9rem; }
.contact-main { grid-column: 1 / span 7; }
.florida { grid-column: 9 / -1; align-self: end; border-top: 1px solid var(--ink); padding-top: 1.25rem; font-size: 1rem; }
.florida h3 { margin-bottom: 0.6rem; }
.florida p { color: #4d4433; }
.florida address { font-style: normal; font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; }
.florida-links { list-style: none; margin: 0.9rem 0 0; padding: 0; font-family: var(--sans); font-size: 0.95rem; line-height: 1.9; }
.approval a { color: var(--on-glass); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #cfc6b8; font-family: var(--sans); font-size: 0.9rem; line-height: 1.6; padding-block: 3.5rem; }
.foot .wordmark { color: var(--butter); display: block; margin-bottom: 1rem; }
.foot p { margin: 0; }
.foot address { font-style: normal; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.credits { color: #9a9083; font-size: 0.82rem; }

/* ---------- narrower screens ---------- */
@media (max-width: 62rem) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-lead { grid-column: 1 / span 9; margin-top: 1.5rem; }
  .intro-head, .intro-body, .craft-head h2, .craft-head .lead, .company-head, .company-lead,
  .coastal-copy, .coastal-side, .hw-photos, .hw-copy, .company-figure, .company-copy,
  .col-panel figure, .col-panel figure.tall, .col-copy { grid-column: 1 / -1; }
  .intro-body, .craft-head .lead, .company-lead, .col-copy, .hw-copy, .company-copy, .coastal-side { margin-top: 2rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .e-list h3, .e-list p { grid-column: 1 / -1; }
  .e-list p { margin-top: 0.75rem; }
  .craft-figure img, .craft-figure figcaption { grid-column: 1 / -1; }
  .craft-figure figcaption { margin-top: 0.9rem; }
  .species { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish-text, .swatches { grid-column: 1 / -1; }
  .finish-block .finish-text + .finish-text, .finish-block .finish-text + .finish-text + .swatches { grid-row: auto; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; border-top: 0; }
  .timeline li { border-top: 1px solid var(--ink); }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-main, .florida { grid-column: 1 / -1; }
  .florida { margin-top: 3rem; max-width: 34rem; }
  .w-a { grid-column: 1 / -1; }
  .work-grid .w-b, .w-c, .work-grid .w-d, .w-e { grid-column: span 6; margin-top: 0; }
  .w-b img { aspect-ratio: 1; }
  .col-panel figure.tall img { aspect-ratio: 4 / 3; }
}
@media (max-width: 40rem) {
  .top { flex-direction: column; gap: 1rem; }
  .top nav { justify-content: flex-start; gap: 0.25rem 1.1rem; }
  .hero-lead { grid-column: 1 / -1; }
  .hero-frame img { height: 62vw; }
  .species, .options { grid-template-columns: 1fr; }
  .species figure { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start; }
  .species figcaption { padding-top: 0; }
  .spec > div, .plain li { grid-template-columns: 1fr; gap: 0.15rem; }
  .hw-photos img:last-child { margin-top: 2rem; }
  .e-list h3 { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame::after { animation: none; }
}
@media print {
  .top nav, .col-nav, .contact-actions .ghost { display: none; }
  .col-panel[hidden] { display: grid; }
  .hero-frame::after { display: none; }
}
