/* Texas Listing Co. — one stylesheet for the whole site */
@font-face { font-family: "Rokkitt"; font-weight: 800; font-display: swap; src: url(/fonts/rokkitt-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --iron: #7A2E22;      /* Branding Iron */
  --stone: #ECE4D4;     /* Limestone */
  --stone-2: #E2D8C4;   /* Limestone, one step darker for panels */
  --black: #231F1C;     /* Saddle Black */
  --denim: #3E5C76;     /* Faded Denim */
  --mute: #6B6158;
  --rule: 7px;          /* matches the stroke of the mark */
  --wrap: 1180px;
  --display: "Rokkitt", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--black);
  font: 400 17px/1.55 var(--text);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--denim); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--black); color: var(--stone); padding: 8px 12px; z-index: 9; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(48px, 7.4vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
h3 { font-size: 28px; line-height: 1.05; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; max-width: 34em; }
.label {
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iron);
  margin: 0 0 18px;
}
.mute { color: var(--mute); }

/* header */
.top { border-bottom: 2px solid var(--black); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 44px; }
.brand span { font: 800 24px/1 var(--display); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a[aria-current] { box-shadow: inset 0 -3px var(--iron); }
.menu { display: none; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--iron);
  color: var(--stone);
  text-decoration: none;
  font: 600 15.5px/1 var(--text);
  padding: 15px 22px;
  border: 2px solid var(--iron);
}
.btn:hover { background: var(--black); border-color: var(--black); }
.btn.ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--stone); }
.nav .btn { padding: 11px 16px; color: var(--stone); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* sections */
section { padding: 96px 0; }
section + section { border-top: 2px solid var(--black); }
.dark { background: var(--black); color: var(--stone); }
.dark .label { color: #D08A6E; }
.dark .mute { color: #B5AA9A; }
.panel { background: var(--stone-2); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.head p { margin: 0; }

/* hero */
.hero { padding: 72px 0 0; }
.hero h1 span { color: var(--iron); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: end; }
.hero .shot { aspect-ratio: 4 / 5; }
.rail { height: var(--rule); background: var(--iron); margin-top: 72px; }

/* photo placeholders: swap each .shot for an <img> when real photos are ready */
.shot {
  position: relative;
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(160deg, rgba(236,228,212,.0) 40%, rgba(35,31,28,.35)),
    linear-gradient(135deg, #C9B9A0, #8E7A64);
  overflow: hidden;
}
.shot.sky { background: linear-gradient(180deg, #3E5C76 0%, #7E93A3 55%, #C9B9A0 56%, #8E7A64 100%); }
.shot.dusk { background: linear-gradient(180deg, #231F1C 0%, #3E5C76 45%, #B5643F 60%, #4A3B30 61%, #231F1C 100%); }
.shot.wide { aspect-ratio: 16 / 9; }
.shot figcaption, .shot span {
  position: absolute; left: 14px; bottom: 12px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* stats strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--black); }
.facts div { padding: 26px 24px; border-left: 2px solid var(--black); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 800 40px/1 var(--display); }
.facts small { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* services grid */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--black); }
.svc article { padding: 28px 28px 32px 0; border-bottom: 2px solid var(--black); }
.svc article:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 2px solid var(--black); }
.svc h3 { margin: 10px 0 10px; }
.svc p { margin: 0; color: var(--mute); }
.num { font: 500 12.5px/1 var(--mono); color: var(--iron); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { list-style: none; border-top: var(--rule) solid var(--iron); padding-top: 20px; }
.steps ol, ol.steps { padding: 0; margin: 0; }
.steps h3 { margin-bottom: 10px; }

/* packages */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg { background: var(--stone); border: 2px solid var(--black); padding: 28px; display: flex; flex-direction: column; }
.panel .pkg { background: var(--stone); }
.pkg.pick { border-color: var(--iron); box-shadow: 8px 8px 0 var(--iron); }
.pkg h3 { margin-bottom: 6px; }
.price { font: 800 52px/1 var(--display); margin: 16px 0 4px; }
.price small { font: 500 13px var(--mono); color: var(--mute); letter-spacing: .06em; }
.pkg ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.pkg li { padding: 9px 0; border-top: 1px solid rgba(35,31,28,.18); font-size: 15.5px; }
.pkg .btn { text-align: center; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--iron); color: var(--stone); padding: 6px 8px; align-self: flex-start; margin-bottom: 14px; }

/* add-on table */
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 16px 0; border-bottom: 1px solid rgba(35,31,28,.22); vertical-align: top; }
th { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--black); }
td:last-child, th:last-child { text-align: right; font: 600 17px var(--mono); white-space: nowrap; padding-left: 24px; }
th:last-child { font: 500 12px var(--mono); }
td small { display: block; color: var(--mute); font-size: 14.5px; margin-top: 2px; }

/* portfolio */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* areas */
.areas { columns: 4; column-gap: 32px; padding: 0; margin: 0; list-style: none; font: 500 15px/2.1 var(--mono); }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about .shot { aspect-ratio: 4 / 5; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact a { display: block; border-top: var(--rule) solid var(--iron); padding-top: 18px; text-decoration: none; }
.contact b { display: block; font: 800 30px/1.1 var(--display); margin-top: 6px; overflow-wrap: anywhere; }

/* closing call to action */
.cta { text-align: left; }
.cta h2 { max-width: 13em; }

/* footer */
footer { background: var(--black); color: var(--stone); padding: 56px 0 40px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer a { text-decoration: none; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid #4A4238; padding-top: 22px; font: 500 12px var(--mono); letter-spacing: .08em; color: #B5AA9A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer .brand span { font-size: 26px; }

/* small screens */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero-grid, .head, .about { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 2px solid var(--black); }
  .svc, .pkgs, .steps, .contact { grid-template-columns: 1fr; }
  .svc article, .svc article:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .areas { columns: 2; }
  footer .wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; border: 2px solid var(--black); padding: 10px 14px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 52px; background: var(--stone); border: 2px solid var(--black); display: grid; min-width: 220px; z-index: 5; }
  .menu nav a { padding: 14px 18px; text-decoration: none; border-top: 1px solid rgba(35,31,28,.18); }
  .menu nav a:first-child { border-top: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand span { font-size: 20px; }
  .grid { grid-template-columns: 1fr; }
  .grid .big { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
  .price { font-size: 44px; }
}
