/* True Designs studio site: step into a misty valley; the forest closes in and the page turns green. */
@font-face { font-family: "Jost"; src: url("fonts/jost-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }

:root {
  --ivory: #f3eee3;
  --ivory-2: #ebe4d5;
  --ink: #222a24;
  --ink-2: #4b554d;
  --ink-3: #5a6259;
  --rule: #cfc6b4;
  --forest: #2c3b31;
  --forest-2: #3d5143;
  --sage: #8f9c86;
  --sage-pale: #c3c9b5;
  --timber: #a8652d;
  --timber-pale: #d9a873;
  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  --pad: clamp(16px, 5vw, 88px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--sage) var(--ivory); }
body {
  margin: 0; color: var(--ink); background: var(--ivory);
  font: 400 1.0625rem/1.65 var(--sans); font-kerning: normal;
}
::selection { background: var(--timber-pale); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--timber); outline-offset: 3px; }
h1, h2 { font-family: var(--sans); font-weight: 300; letter-spacing: .1em; text-transform: uppercase; text-wrap: balance; margin: 0; }
.skip { position: absolute; left: var(--pad); top: -4rem; z-index: 20; background: var(--ivory); padding: .5rem 1rem; }
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ the valley */
.valley { position: relative; height: 100svh; min-height: 34rem; }
.valley__stage { position: absolute; inset: 0; overflow: hidden; background: var(--forest); }
.sky { position: absolute; inset: 0; background: linear-gradient(#ece6d8 0%, #f3eee3 46%, #f1ebde 100%); }
.layers { position: absolute; inset: 0; }
.ridge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ridge--far { z-index: 1; } .ridge--high { z-index: 2; } .ridge--mid { z-index: 3; }
.ridge--near { z-index: 5; } .ridge--fore { z-index: 6; }

.topnav { position: absolute; z-index: 9; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(14px, 2.4vw, 30px) var(--pad); }
.topnav__mark img { width: clamp(104px, 10vw, 150px); }
.topnav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem clamp(1rem, 2.4vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
.topnav a { text-decoration: none; font-size: 1rem; color: var(--ink); }
.topnav a:hover { text-decoration: underline; }

.intro { position: absolute; z-index: 8; left: var(--pad); top: clamp(112px, 17vh, 190px); max-width: min(46rem, 52vw); }
.intro h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.04; color: var(--forest); }
.intro__lede { margin: 1.1rem 0 0; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.intro__contact { margin: 1.2rem 0 0; font-size: 1rem; color: var(--ink-2); }
.intro__contact a { color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------------ the offer */
main { background: var(--ivory); position: relative; z-index: 2; }
.offer { position: relative; background: var(--forest); color: var(--ivory); padding: clamp(2rem, 5vw, 4.5rem) var(--pad) clamp(6rem, 12vw, 11rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.edge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(50px, 7vw, 120px); }
.edge path { fill: var(--ivory); }
.offer__statement { grid-column: 1 / 8; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.25; letter-spacing: .02em; text-transform: none; color: var(--ivory); }
.offer__list { grid-column: 6 / 13; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(243, 238, 227, .28); }
.offer__list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: .4rem 2rem; padding: 1.35rem 0 1.4rem; border-bottom: 1px solid rgba(243, 238, 227, .28); text-decoration: none; transition: color .4s var(--ease); }
.offer__list span { font: 400 clamp(1.05rem, 1.4vw, 1.25rem)/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.offer__list em { font-style: normal; color: var(--sage-pale); font-size: 1rem; line-height: 1.5; }
.offer__list a:hover span { color: var(--timber-pale); }
.offer :focus-visible { outline-color: var(--timber-pale); }

/* ------------------------------------------------------------------ the work */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding: clamp(3rem, 8vw, 7rem) var(--pad); align-items: start; }
.work h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.1; color: var(--forest); margin-bottom: 1.4rem; }
.work__text p { margin: 0 0 1rem; max-width: 38ch; color: var(--ink-2); }
.work__go { margin-top: 1.8rem !important; }
.work__go a { font: 500 1.1rem/1.3 var(--sans); color: var(--ink); text-decoration-color: var(--timber); text-decoration-thickness: 2px; }
.work__go a:hover { color: var(--timber); }

.work--listing { overflow-x: clip; position: relative; }
.work--listing .work__text { grid-column: 1 / 5; grid-row: 1; padding-top: clamp(1rem, 6vw, 6rem); position: relative; z-index: 2; }
.model-stage { grid-column: 5 / 13; grid-row: 1; position: relative; margin: 0; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.model-stage__slab { position: absolute; left: 6%; right: -100vw; top: 34%; bottom: 0; background: var(--forest); }
.model-stage__house { position: relative; width: 100%; filter: drop-shadow(0 18px 22px rgba(20, 28, 22, .28)); }
.model-stage figcaption { position: relative; margin: 1rem 0 0 6%; padding: 0 0 1.1rem 1.4rem; color: var(--sage-pale); font-size: .95rem; }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ivory) 45%, transparent); flex: none; translate: -50% 0; }
.pin b { font-weight: 500; padding: .3rem .6rem; background: color-mix(in srgb, var(--ivory) 90%, transparent); margin-left: .5rem; }

.sheets { grid-column: 2 / 13; grid-row: 2; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); align-items: end; margin-top: clamp(3rem, 7vw, 6rem); position: relative; }
.sheets__painting { grid-column: 1 / 7; grid-row: 1; mix-blend-mode: multiply; }
.sheets__page { grid-row: 1; box-shadow: 0 2px 3px rgba(34, 42, 36, .12), 0 18px 34px -12px rgba(34, 42, 36, .3); }
.sheets__page--1 { grid-column: 7 / 10; margin-bottom: 8%; }
.sheets__page--2 { grid-column: 9 / 12; margin-bottom: -6%; position: relative; }
.sheets__note { grid-column: 1 / 7; grid-row: 2; margin: 1.2rem 0 0; color: var(--ink-3); font-size: .95rem; }

.work--plans { background: var(--ivory-2); padding-top: clamp(4rem, 9vw, 8rem); position: relative; }
.work--plans .edge path { fill: var(--ivory-2); }
.plan-sheet { grid-column: 1 / 8; margin: 0; }
.plan-sheet img { border: 1px solid var(--rule); background: var(--ivory); }
.plan-sheet figcaption, .rafter figcaption { margin-top: .8rem; color: var(--ink-3); font-size: .95rem; }
.work--plans .work__text { grid-column: 9 / 13; padding-top: clamp(1rem, 4vw, 4rem); }
.rafter { grid-column: 3 / 13; margin: clamp(3rem, 6vw, 5rem) 0 0; }
.rafter img { mix-blend-mode: multiply; }

.custom { padding: clamp(4rem, 10vw, 9rem) var(--pad) clamp(5rem, 11vw, 10rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.custom h2 { grid-column: 3 / 11; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.1; color: var(--forest); }
.custom p { grid-column: 3 / 9; margin: 1.6rem 0 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }

/* ------------------------------------------------------------------ contact */
.contact { position: relative; background: var(--forest); color: var(--ivory); }
.contact .band { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(70px, 10vw, 160px); }
.contact__body { padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(2.5rem, 5vw, 4rem); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.05; }
.contact__lines { display: flex; flex-wrap: wrap; gap: .4rem clamp(1.5rem, 5vw, 4.5rem); margin: 1.6rem 0 0; font: 400 clamp(1.3rem, 2.6vw, 2.2rem)/1.25 var(--sans); }
.contact__lines a { text-decoration-color: var(--timber-pale); text-decoration-thickness: 2px; text-underline-offset: .22em; overflow-wrap: anywhere; }
.contact__lines a:hover { color: var(--timber-pale); }
.contact__small { margin: clamp(3rem, 7vw, 5rem) 0 0; color: var(--sage-pale); font-size: .95rem; }
.contact :focus-visible { outline-color: var(--timber-pale); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 860px) {
  .layers { top: 24%; }
  .intro { top: 92px; max-width: none; right: var(--pad); }
  .intro h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .intro__lede { max-width: none; font-size: .95rem; line-height: 1.5; margin-top: .9rem; }
  .intro__contact { margin-top: .8rem; font-size: .95rem; }
  .topnav { align-items: flex-start; }
  .topnav ul { max-width: 15rem; gap: .1rem 1rem; }
  .topnav a { font-size: .95rem; }
  .offer__statement, .offer__list { grid-column: 1 / -1; }
  .offer__list a { grid-template-columns: 1fr; }
  .work--listing .work__text, .model-stage, .sheets, .plan-sheet, .work--plans .work__text, .rafter { grid-column: 1 / -1; grid-row: auto; }
  .work--listing { overflow-x: clip; position: relative; }
.work--listing .work__text { padding-top: 0; }
  .model-stage { margin-top: 2.5rem; }
  .model-stage__slab { left: -10vw; }
  .pin { font-size: .82rem; }
  .pin--main { --x: 44% !important; }
  .sheets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sheets__painting { grid-column: 1 / -1; }
  .sheets__page--1 { grid-column: 1 / 4; grid-row: 2; margin: 1.5rem 0 0; }
  .sheets__page--2 { grid-column: 4 / 7; grid-row: 2; margin: 3rem 0 0 -8%; }
  .sheets__note { grid-row: 3; grid-column: 1 / -1; }
  .work--plans .work__text { order: -1; padding-top: 0; margin-bottom: 2rem; }
  .custom h2, .custom p { grid-column: 1 / -1; }
}

@media (max-width: 480px) { .topnav__wide { display: none; } }

/* ------------------------------------------------------------------ buttons and catalog pages */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 2rem 0 0 !important; max-width: none !important; }
.btn { display: inline-block; padding: .85rem 1.4rem .8rem; background: var(--forest); color: var(--ivory); font: 500 1rem/1.2 var(--sans); text-decoration: none; transition: background .3s var(--ease); }
.btn:hover { background: var(--forest-2); }
.btn--light { background: var(--ivory); color: var(--forest); }
.btn--light:hover { background: var(--timber-pale); }
.textlink { font: 500 1rem/1.3 var(--sans); color: var(--ink); text-decoration-color: var(--timber); text-decoration-thickness: 2px; }
.textlink:hover { color: var(--timber); }

.pagebar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(14px, 2.4vw, 30px) var(--pad); border-bottom: 1px solid var(--rule); }
.pagebar img { width: clamp(96px, 9vw, 132px); }
.pagebar ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem clamp(1rem, 2.4vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
.pagebar a { text-decoration: none; }
.pagebar a:hover, .pagebar a[aria-current] { text-decoration: underline; }
.catalog { padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(6rem, 12vw, 10rem); }
.catalog h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; color: var(--forest); }
.catalog__intro { margin: 1.2rem 0 0; max-width: 46ch; color: var(--ink-2); font-size: 1.1rem; }
.catalog__list { list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.catalog__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--rule); }
.catalog__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; mix-blend-mode: multiply; }
.catalog__item h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.15; color: var(--forest); }
.catalog__meta { margin: .4rem 0 0; color: var(--ink-3); }
.catalog__desc { margin: 1rem 0 0; color: var(--ink-2); max-width: 44ch; }
.catalog__empty { margin: 2rem 0 0; color: var(--ink-2); }
.catalog__custom { margin: clamp(2rem, 5vw, 3rem) 0 0; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.catalog__custom a { color: var(--forest); }
@media (max-width: 860px) { .catalog__item { grid-template-columns: 1fr; } }
