@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* The page takes its colors from the sky over the house. site.js rewrites these
   as the sun moves. The values here are a clear Marfa afternoon. */
:root {
  --ground: #f3f5f3;
  --ink: #121a26;
  --muted: #555c65;
  --line: #cdd2d3;
  --wash: #e7eae9;
  --sky-top: #a5c8e3;
  --sky-hor: #ebf1f1;
  --sky-ink: #121a26;
  --sun: #fff6dc;
  --star: 0;
  --gap: 10px;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
:root.is-dark { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Overpass", "Helvetica Neue", Arial, sans-serif;
  transition: background-color .7s ease, color .7s ease;
  -webkit-font-smoothing: antialiased;
}
.is-scrubbing body, .is-scrubbing .btn, .is-scrubbing .dock { transition: none; }
::selection { background: var(--ink); color: var(--ground); }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -80px; background: var(--ink); color: var(--ground); padding: 12px 16px; z-index: 20; }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
h2 {
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h3 { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--ground);
  border: 0;
  border-radius: 0;
  padding: 16px 26px 13px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .7s ease, color .7s ease;
}
.btn:hover { background: var(--muted); }
.btn-wide { width: 100%; text-align: center; }
.link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.fine { font-size: .875rem; color: var(--muted); }

/* ---------- header ---------- */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 22px 0; }
.top-name { font-weight: 850; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 34px); align-items: baseline; }
.top nav a { text-decoration: none; font-weight: 600; }
.top nav a:hover { text-decoration: underline; }
.top .nav-cta { text-decoration: underline; font-weight: 800; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(10, 1fr); column-gap: var(--gap); align-items: end; padding-block: clamp(36px, 5.5vw, 84px) 0; }
.hero-text { grid-column: 1 / span 5; container-type: inline-size; padding-bottom: clamp(8px, 2vw, 28px); }
.hero-photo { grid-column: 6 / span 5; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--wash); }
/* The name stacks like the house: the top box hangs out past the bottom one. */
.mark { font-size: min(43cqw, 17rem); font-weight: 900; line-height: .76; letter-spacing: -0.045em; margin-left: -0.04em; }
.mark span { display: block; }
.mark-bottom { margin-left: .58em; }
.lead { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.22; font-weight: 600; max-width: 21ch; margin-top: clamp(22px, 3.2vw, 44px); letter-spacing: -0.01em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.deal { margin-top: 16px; color: var(--muted); max-width: 34ch; font-size: 1rem; }

/* ---------- the sky ---------- */
.sky { margin-top: clamp(28px, 5vw, 64px); }
.sky-window {
  position: relative;
  height: clamp(150px, 25vh, 250px);
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-hor));
  overflow: hidden;
  touch-action: pan-y;
}
.sky-stars, .sky-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-stars { opacity: var(--star); }
.sky-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.sky-path path { fill: none; stroke: var(--sky-ink); stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sky-sun {
  position: absolute; left: 50%; top: 40%;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--sun) 28%, transparent), 0 0 46px 14px color-mix(in srgb, var(--sun) 50%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sky-sun.is-down { background: transparent; box-shadow: inset 0 0 0 2px var(--sky-ink); width: 22px; height: 22px; }
.sky-house { position: absolute; left: 50%; bottom: 0; width: 46px; transform: translateX(-50%); fill: var(--sky-ink); pointer-events: none; }
.sky-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.sky-window:has(.sky-range:focus-visible) .sky-sun { outline: 3px solid var(--sky-ink); outline-offset: 5px; }
.sky-notes { position: relative; height: 1.9rem; font-size: .875rem; font-weight: 700; }
.sky-tick { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; }
.sky-tick::before { content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 6px; background: var(--ink); }
.sky-read { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; margin-top: 10px; }
.sky-read p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 600; max-width: 62ch; }

/* ---------- the house ---------- */
.house { padding-top: clamp(56px, 9vw, 128px); }
.statement { font-size: clamp(1.6rem, 3.5vw, 3.05rem); line-height: 1.14; font-weight: 750; letter-spacing: -0.02em; max-width: 27ch; text-wrap: pretty; }
.statement-quiet { font-weight: 300; margin-top: .7em; }
.record { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap) 40px; margin-top: clamp(40px, 6vw, 80px); }
.record > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.record h3 { margin-bottom: 8px; }
.plain { list-style: none; }
.yr { display: inline-block; width: 3.3em; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- the tour: a grid ten squares wide ---------- */
.tour { padding-top: clamp(64px, 10vw, 140px); }
.floor { margin-top: clamp(36px, 6vw, 72px); container-type: inline-size; }
.floor-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.floor-head h3 { font-size: 1.5rem; line-height: 1; letter-spacing: -0.01em; }
.pict { width: 40px; height: 34px; overflow: visible; }
.pict .on { fill: var(--ink); }
.pict .off { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.pict .on-line { fill: none; stroke: var(--ink); stroke-width: 3; }
.cells { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; }
.cell { display: block; padding: 0; border: 0; border-radius: 0; background: var(--wash); cursor: zoom-in; overflow: hidden; grid-column: 1 / -1; }
.cell picture, .cell img { width: 100%; height: 100%; object-fit: cover; }
.c-sink, .c-shower { grid-column: auto; }
.cell-text { grid-column: 1 / -1; border: 1.5px solid var(--ink); padding: 20px; display: flex; align-items: flex-end; }
.cell-text p { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; text-wrap: pretty; }

@media (min-width: 1000px) {
  .cells {
    --w: calc((100cqw - 9 * var(--gap)) / 10);
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: var(--w);
  }
  .cell-text { padding: calc(var(--w) * .2); }
  .cell-text p { font-size: calc(var(--w) * .205); }
  .c-stairs  { grid-column: 1 / span 4; grid-row: 1 / span 6; }
  .c-down    { grid-column: 5 / span 6; grid-row: 1 / span 4; }
  .c-flap    { grid-column: 5 / span 3; grid-row: 5 / span 2; }
  .c-shelves { grid-column: 8 / span 3; grid-row: 5 / span 2; }
  .c-sink    { grid-column: 1 / span 2; grid-row: 7 / span 3; }
  .c-shower  { grid-column: 3 / span 2; grid-row: 7 / span 3; }
  .c-oak     { grid-column: 5 / span 6; grid-row: 7 / span 3; }
  .c-oak p   { font-size: calc(var(--w) * .26); max-width: 30ch; }

  .c-bed     { grid-column: 1 / span 6; grid-row: 1 / span 4; }
  .c-east    { grid-column: 7 / span 4; grid-row: 1 / span 6; }
  .c-loft    { grid-column: 1 / span 3; grid-row: 5 / span 2; }
  .c-bedtext { grid-column: 4 / span 3; grid-row: 5 / span 2; }
  .c-bedtext p { font-size: calc(var(--w) * .185); }

  .c-patio   { grid-column: 1 / span 4; grid-row: 1 / span 6; }
  .c-side    { grid-column: 5 / span 3; grid-row: 1 / span 4; }
  .c-outtext { grid-column: 8 / span 3; grid-row: 1 / span 4; }
  .c-walk    { grid-column: 5 / span 6; grid-row: 5 / span 2; }
  .c-outtext p, .c-walk p { font-size: calc(var(--w) * .235); }
  .c-walk p { max-width: 30ch; }
}

/* ---------- sunrise and the film ---------- */
.sunrise { padding-top: clamp(64px, 10vw, 140px); display: grid; grid-template-columns: repeat(10, 1fr); gap: 32px var(--gap); align-items: end; }
.sunrise-text { grid-column: 1 / span 5; padding-right: clamp(0px, 3vw, 48px); }
.sunrise-text p { margin-top: 1em; max-width: 44ch; }
.sunrise-text .fact { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.film { grid-column: 6 / span 5; }
.film-play { position: relative; display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; background: var(--wash); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.film-play img, .film iframe { width: 100%; height: 100%; object-fit: cover; }
.film iframe { aspect-ratio: 16 / 9; border: 0; height: auto; }
.film-badge { position: absolute; left: 0; bottom: 0; background: var(--ground); color: var(--ink); padding: 13px 20px 10px; font-weight: 800; transition: background-color .7s ease, color .7s ease; }
.film-note { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* ---------- dates ---------- */
.dates { padding-top: clamp(64px, 10vw, 140px); }
.dates-head p { margin-top: 18px; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.3; font-weight: 600; max-width: 40ch; }
.dates-body { display: grid; grid-template-columns: repeat(10, 1fr); gap: 40px var(--gap); margin-top: clamp(28px, 4vw, 52px); align-items: start; }
.cal { grid-column: 1 / span 6; padding-right: clamp(0px, 3vw, 44px); }
.req, .req-done { grid-column: 7 / span 4; }
.cal-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px solid var(--ink); padding-top: 12px; }
.cal-nav { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cal-nav[disabled] { opacity: .3; cursor: default; text-decoration: none; }
.cal-status { font-size: .9375rem; color: var(--muted); text-align: center; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; margin-top: 20px; }
.month h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow span { font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 4px; }
.day {
  aspect-ratio: 1; display: grid; place-items: center; padding: 3px 0 0;
  border: 1.5px solid var(--line); border-radius: 0; background: transparent; color: inherit;
  font: inherit; font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.day:hover:not([disabled]) { border-color: var(--ink); }
.day[disabled] { cursor: default; border-color: transparent; color: var(--muted); font-weight: 400; }
.day.is-past { opacity: .38; }
.day.is-booked { text-decoration: line-through; opacity: .62; }
.day.is-booked.can-out { opacity: 1; border: 1.5px dashed var(--ink); text-decoration: none; font-weight: 700; color: inherit; }
.day.in-range { background: var(--wash); border-color: var(--wash); }
.day.is-end, .day.is-end.in-range { background: var(--ink); border-color: var(--ink); color: var(--ground); text-decoration: none; opacity: 1; }
.day.is-wait { border-color: transparent; color: var(--muted); }
.day-blank { aspect-ratio: 1; }
.cal-key { margin-top: 16px; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.key { display: inline-block; width: 14px; height: 14px; margin-left: 12px; border: 1.5px solid var(--line); }
.key:first-child { margin-left: 0; }
.key-booked { border-color: transparent; background: linear-gradient(to top right, transparent 46%, var(--muted) 46%, var(--muted) 54%, transparent 54%); }
.key-pick { background: var(--ink); border-color: var(--ink); }

.req { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 12px; }
.req-summary { font-size: 1.3125rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; min-height: 2.5em; }
.req label { display: grid; gap: 5px; font-size: .9375rem; font-weight: 700; }
.req input, .req select, .req textarea {
  width: 100%; padding: 13px 12px 10px; border: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: inherit; font: inherit; font-weight: 400; font-size: 1rem; min-height: 48px;
}
.req textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req-error { border-left: 5px solid var(--ink); padding: 4px 0 2px 12px; font-weight: 800; }
.steps { margin: 4px 0 0 1.3em; color: var(--muted); font-size: .9375rem; }
.steps li { padding-left: 4px; }
.req-done { border: 2px solid var(--ink); padding: 26px; }
.req-done:focus { outline: none; }
.req-done h3 { font-size: 1.75rem; letter-spacing: -0.015em; }
.req-done p { margin-top: 10px; }

/* ---------- good to know ---------- */
.know { padding-top: clamp(64px, 10vw, 140px); }
.know-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: clamp(28px, 4vw, 52px); }
.know-list > div { border-top: 1.5px solid var(--line); padding: 16px 0 20px; display: grid; grid-template-columns: 11.5em 1fr; gap: 6px 20px; }
.know-list dt { font-weight: 800; }

/* ---------- town ---------- */
.town { padding-top: clamp(64px, 10vw, 140px); display: grid; grid-template-columns: repeat(10, 1fr); gap: 28px var(--gap); align-items: start; }
.town-head { grid-column: 1 / span 4; padding-right: clamp(0px, 3vw, 44px); }
.town-head p { margin-top: 18px; max-width: 34ch; }
.signs { grid-column: 5 / span 6; width: 100%; border-collapse: collapse; font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.3; }
.signs th, .signs td { text-align: left; vertical-align: top; padding: 13px 0 10px; border-top: 1.5px solid var(--line); }
.signs tr:first-child th, .signs tr:first-child td { border-top: 2px solid var(--ink); }
.signs th { font-weight: 800; width: 8.6em; padding-right: 16px; white-space: nowrap; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(72px, 11vw, 150px); padding-block: 0 110px; display: grid; gap: 8px; }
.foot::before { content: ""; border-top: 2px solid var(--ink); margin-bottom: 20px; }
.foot-mark { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.foot a { margin-right: 20px; font-weight: 700; }

/* ---------- phone dock ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  background: var(--ink); color: var(--ground); text-align: center; text-decoration: none; font-weight: 800;
  padding: 16px 16px 13px; transition: transform .25s ease, background-color .7s ease, color .7s ease;
}
.dock.is-away { transform: translateY(160%); }

/* ---------- photo viewer ---------- */
.viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 14px; border: 0; background: #0a0e17; color: #f2efe6; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.viewer::backdrop { background: #0a0e17; }
.viewer figure { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; justify-items: center; }
.viewer img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.viewer figcaption { font-weight: 600; text-align: center; max-width: 60ch; }
.viewer button { background: none; border: 0; color: inherit; font: inherit; font-weight: 800; padding: 10px 6px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.viewer button:focus-visible { outline-color: #f2efe6; }
.viewer-x { justify-self: end; }
.viewer-nav { display: flex; justify-content: center; align-items: baseline; gap: 26px; font-variant-numeric: tabular-nums; }

/* ---------- smaller screens ---------- */
@media (min-width: 900px) { .dock { display: none; } }
@media (max-width: 899px) {
  .top nav a:not(.nav-cta) { display: none; }
  .hero { display: block; }
  .hero-text { padding-bottom: 28px; }
  .mark { font-size: min(41cqw, 12rem); }
  .lead { max-width: 24ch; }
  .record { grid-template-columns: 1fr; gap: 22px; }
  .sunrise, .town, .dates-body { display: block; }
  .film { margin-top: 32px; }
  .cal { padding-right: 0; }
  .req, .req-done { margin-top: 40px; }
  .know-list { grid-template-columns: 1fr; }
  .signs { margin-top: 28px; }
  .foot { padding-bottom: 120px; }
}
@media (max-width: 640px) {
  .cal-months { grid-template-columns: 1fr; }
  .cal-months .month + .month { display: none; }
  .know-list > div { grid-template-columns: 1fr; }
  .signs th { width: 6.6em; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .btn, .dock, .film-badge { transition: none; }
}
