/* CCR concept: a field guide to the houses of Dallas. Spec work by Pina Studios. */
:root {
  --paper: #FAFAF7;
  --paper-2: #F1F0EA;
  --ink: #1E1C19;
  --ink-2: #4F4A43;
  --cloth: #191714;
  --cloth-2: #24211D;
  --on-cloth: #F4F1E8;
  --on-cloth-2: #C9C2B3;
  --gold: #C79F3C;
  --gold-deep: #8A6A1E;
  --line: rgba(30, 28, 25, .16);
  --line-strong: rgba(30, 28, 25, .38);
  --font-book: 'Brygada 1918', Georgia, 'Times New Roman', serif;
  --font-label: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-2) var(--paper-2); }
.reduce { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--font-book); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--ink); }
::selection { background: #EAD9A8; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--font-book); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 2.2vw + 1rem, 3.1rem); }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.concept-ribbon { background: var(--cloth); color: var(--on-cloth-2); font: 500 .8125rem/1.4 var(--font-label); text-align: center; padding: 8px var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px; font: 700 1rem/1 var(--font-label); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--cloth); }
.btn-gold:hover { background: #D6B055; color: var(--cloth); }
.btn-wide { width: 100%; }
.plate-no { font: 600 .75rem/1 var(--font-label); letter-spacing: .02em; color: var(--ink-2); }

/* Header: the title strip */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head-inner { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand img { width: 168px; height: auto; mix-blend-mode: multiply; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; justify-content: center; flex-wrap: wrap; }
.nav a, .head-phone { font: 600 1rem/1.2 var(--font-label); text-decoration: none; color: var(--ink); }
.nav a:hover, .head-phone:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.head-actions { display: flex; align-items: center; gap: 18px; }

/* The spread */
.spread { background: var(--cloth); padding: clamp(20px, 3vw, 40px) clamp(12px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.book { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) 26px minmax(0, 1.08fr); background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .04); border-radius: 3px; }
.page { padding: clamp(28px, 4vw, 64px); min-width: 0; }
.page-left { display: flex; flex-direction: column; justify-content: center; }
.gutter { background: linear-gradient(90deg, rgba(30, 28, 25, 0) 0%, rgba(30, 28, 25, .1) 42%, rgba(30, 28, 25, .18) 50%, rgba(30, 28, 25, .1) 58%, rgba(30, 28, 25, 0) 100%); }
.spread h1 { font-size: clamp(2.4rem, 3.2vw + .8rem, 4.1rem); max-width: 12ch; }
.byline { font-size: 1.1875rem; color: var(--ink-2); margin: 22px 0 26px; max-width: 32em; }
.their-words { margin: 0 0 30px; padding: 18px 0 0; border-top: 1px solid var(--line-strong); max-width: 30em; }
.their-words p { font-style: italic; font-size: 1.375rem; line-height: 1.4; margin: 0 0 6px; }
.their-words footer { font: 500 .875rem/1.4 var(--font-label); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.phone-link { font: 600 1rem/1.2 var(--font-label); }

.key { border: 0; margin: 0; padding: 0; min-width: 0; }
.key legend { padding: 0; margin-bottom: 16px; }
.key-title { display: block; font-size: clamp(1.6rem, 1.2vw + 1rem, 2.1rem); line-height: 1.1; }
.key-hint { display: block; font: 500 .9375rem/1.4 var(--font-label); color: var(--ink-2); margin-top: 6px; }
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plate { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; padding: 8px 8px 10px; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s; }
.plate input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.plate:hover { border-color: var(--line-strong); }
.plate-art { display: block; aspect-ratio: 200 / 140; }
.house { width: 100%; height: 100%; color: var(--ink); overflow: visible; transition: color .4s var(--ease); }
.house * { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.house .tone { fill: url(#hatch); fill-opacity: .55; }
.house .solid { fill: #fff; }
.plate-label { display: block; margin-top: 6px; font: 600 .875rem/1.25 var(--font-label); }
.plate-label .plate-no { display: block; margin-bottom: 2px; }
.plate:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 24px -14px rgba(138, 106, 30, .6); }
.plate:has(input:checked) .house { color: var(--gold-deep); }
.plate:has(input:focus-visible) { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.js .house.is-drawing * { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .house.is-drawn * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0s), fill-opacity .6s ease calc(var(--d, 0s) + 1s); }
.js .house.is-drawn .tone { fill-opacity: .55; }

.verdict { margin-top: 16px; border-top: 1px solid var(--line-strong); padding-top: 16px; min-height: 9.5rem; }
.verdict-empty { color: var(--ink-2); font-style: italic; margin: 0; }
.verdict h3 { font: 400 1.6rem/1.15 var(--font-book); margin: 0 0 10px; }
.verdict dl { margin: 0 0 14px; display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 14px; }
.verdict dt { font: 600 .875rem/1.5 var(--font-label); color: var(--ink-2); }
.verdict dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.verdict .approach { font-style: italic; }

/* Work plates */
.work { padding: clamp(80px, 11vh, 130px) 0; }
.section-lede { color: var(--ink-2); max-width: 40em; margin: 14px 0 36px; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.specimen { margin: 0; grid-column: span 4; }
.specimen.s-wide { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px; align-items: end; }
.specimen img { width: 100%; border: 1px solid var(--line); padding: 6px; background: #fff; }
.specimen figcaption { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.specimen figcaption .plate-no { display: block; margin-bottom: 4px; }
.s-wide figcaption { margin: 0 0 8px; font-size: 1.125rem; }

/* Range */
.range { background: var(--paper-2); padding: clamp(80px, 11vh, 130px) 0; }
.range-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 5vw, 80px); align-items: start; }
.range-notes { margin: 0; border-top: 1px solid var(--line-strong); }
.range-notes div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: 14px; }
.range-notes dt { font: 700 .9375rem/1.5 var(--font-label); }
.range-notes dd { margin: 0; font-style: italic; font-size: 1.0625rem; }
.range-more { margin-top: 18px; color: var(--ink-2); }
.map-plate { margin: 0; background: #fff; border: 1px solid var(--line); padding: 14px; }
.range-map { width: 100%; height: auto; font-family: var(--font-label); }
.graticule line { stroke: var(--line); stroke-width: .6; }
.town { fill: var(--ink); }
.office rect { fill: var(--gold); stroke: var(--cloth); stroke-width: 1; }
.labels text { font-size: 14px; font-weight: 600; fill: var(--ink); }
.labels .office-label { fill: var(--gold-deep); font-weight: 700; }
.leader { stroke: var(--ink-2); stroke-width: .8; }
.scale line, .north line { stroke: var(--ink); stroke-width: 1.2; }
.scale text, .north text { font-size: 13px; font-weight: 700; fill: var(--ink); }
.north polygon { fill: var(--ink); }
.map-plate figcaption { margin-top: 10px; font-size: 1rem; }
.map-plate figcaption .plate-no { margin-right: 6px; }

/* Barry */
.barry { background: var(--cloth); color: var(--on-cloth); padding: clamp(80px, 11vh, 130px) 0; }
.barry a { color: #fff; }
.barry :focus-visible { outline-color: var(--gold); }
.barry-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(40px, 6vw, 96px); }
.barry h2 { color: var(--on-cloth); max-width: 12ch; }
.barry-copy > p { color: var(--on-cloth-2); max-width: 36em; }
.barry-facts { margin: 26px 0 0; border-top: 1px solid rgba(244, 241, 232, .22); }
.barry-facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(244, 241, 232, .22); }
.barry-facts dt { font: 700 .9375rem/1.5 var(--font-label); color: var(--gold); }
.barry-facts dd { margin: 0; color: var(--on-cloth); }

/* Field notes */
.notes { padding: clamp(80px, 11vh, 130px) 0; }
.notes h2 { margin-bottom: 36px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.notes blockquote { margin: 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.notes blockquote p { font-size: 1.3125rem; line-height: 1.5; font-style: italic; }
.notes footer { font: 700 .9375rem/1.4 var(--font-label); }

/* Estimate */
.estimate { background: var(--paper-2); padding: clamp(80px, 11vh, 130px) 0 clamp(96px, 12vh, 150px); }
.estimate-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.estimate-copy p { color: var(--ink-2); max-width: 30em; }
.estimate-copy h2 { margin-bottom: 18px; max-width: 12ch; }
.estimate-phone a { font-weight: 600; color: var(--ink); }
.estimate-form { background: #fff; border: 1px solid var(--line-strong); padding: clamp(20px, 3vw, 36px); border-radius: 2px; }
.estimate-form label { display: block; font: 700 .9375rem/1.3 var(--font-label); margin: 0 0 6px; }
.estimate-form .opt { font-weight: 500; color: var(--ink-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--font-label); }
textarea { resize: vertical; margin-bottom: 16px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E1C19' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field-error { color: #8B1E1E; font: 600 1rem/1.4 var(--font-label); }
.sent { margin-top: 16px; border: 1px solid var(--gold); background: #FBF5E4; padding: 14px 16px; }
.sent-title { font: 700 1rem/1.4 var(--font-label); margin-bottom: 4px; }
.sent p:last-child { margin: 0; }

/* Footer: the back cover */
.site-foot { background: var(--cloth); color: var(--on-cloth-2); padding: 64px 0 120px; }
.site-foot a { color: var(--on-cloth); text-decoration-color: var(--gold); }
.site-foot :focus-visible { outline-color: var(--gold); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.foot-title { font-size: 2rem; color: var(--gold); margin-bottom: 6px; }
.foot-sub { max-width: 40em; }
.foot-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.foot-facts dt { font: 700 .875rem/1.4 var(--font-label); color: var(--on-cloth); }
.foot-facts dd { margin: 4px 0 0; }
.foot-note { max-width: var(--wrap); margin: 40px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(244, 241, 232, .18); font: 500 .875rem/1.5 var(--font-label); }

.lost { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 160px; }
.lost-plate { font: 600 .875rem/1.4 var(--font-label); color: var(--ink-2); margin-bottom: 14px; }
.lost h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); margin-bottom: 18px; }

.mobile-cta { display: none; }

@media (max-width: 1100px) {
  .head-phone { display: none; }
  .book { grid-template-columns: 1fr; }
  .gutter { display: none; }
  .page-left { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .head-inner { flex-wrap: wrap; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; -webkit-mask-image: linear-gradient(to right, #000 84%, transparent); mask-image: linear-gradient(to right, #000 84%, transparent); }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .head-actions { margin-left: auto; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .specimen, .specimen.s-wide { grid-column: span 1; }
  .specimen.s-wide { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .range-grid, .barry-grid, .notes-grid, .estimate-grid { grid-template-columns: 1fr; }
  .foot-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .brand img { width: 128px; }
  .head-inner { padding-top: 8px; padding-bottom: 4px; }
  .spread { padding: 12px 10px 24px; }
  .page { padding: 26px 22px; }
  .spread h1 { font-size: 2.15rem; }
  .byline { font-size: 1.0625rem; margin: 16px 0 20px; }
  .their-words { margin-bottom: 0; }
  .their-words p { font-size: 1.1875rem; }
  .page-left .actions { display: none; }
  .labels text { font-size: 20px; }
  .scale text, .north text { font-size: 17px; }
  .town { r: 5; }
  .head-actions .btn { display: none; }
  .plates { grid-template-columns: 1fr 1fr; }
  .verdict dl { grid-template-columns: 1fr; gap: 2px; }
  .verdict dd { margin-bottom: 8px; }
  .work-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .range-notes div, .barry-facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot-facts { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--cloth); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid rgba(244, 241, 232, .4); color: var(--on-cloth); text-decoration: none; font: 700 .9375rem/1 var(--font-label); border-radius: 2px; }
  .mobile-cta a.is-primary { background: var(--gold); border-color: var(--gold); color: var(--cloth); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
