/* ==========================================================================
   Tallow Creek Construction
   Hand-authored stylesheet. No framework, no reset library, no build step.

     1. Font
     2. Tokens
     3. Base
     4. Layout primitives
     5. Masthead + footer
     6. Type
     7. Components
     8. Responsive
   ========================================================================== */

/* -- 1. Font --------------------------------------------------------------
   Archivo, self-hosted (SIL OFL 1.1, see fonts/Archivo-OFL.txt). The
   variable width axis is the one typographic move on this site: headings
   are set slightly wide, body text stays at normal width. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* -- 2. Tokens ----------------------------------------------------------- */

:root {
  --navy: #15263c;
  --navy-deep: #0d1a2b;
  --slate: #56677a;
  --slate-dim: #8c9aa8;
  --rule: #d7dee1;
  --rule-firm: #b7c3c8;
  --rule-reverse: #35465c;
  --paper: #f4f6f6;
  --mist: #e3ebe9;
  --teal: #1e6b66;
  --teal-lit: #58a8a0;
  --white: #ffffff;
  --flag: #a8392b;

  --shell: 1180px;
  --gutter: 1.5rem;
  --band-pad: clamp(3.5rem, 7vw, 6.5rem);

  --t-display-1: clamp(2.45rem, 6.1vw, 4.25rem);
  --t-display-2: clamp(1.7rem, 3.3vw, 2.45rem);
  --t-display-3: clamp(1.2rem, 1.8vw, 1.45rem);
  --t-lede: clamp(1.1rem, 1.45vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-micro: 0.8125rem;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* -- 3. Base ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: var(--mist);
  color: var(--navy);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* -- 4. Layout primitives ------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Bands own all vertical rhythm between sections. No component sets
   section-level padding, which keeps the two from cancelling out. */
.band {
  padding-block: var(--band-pad);
}

.band--tight {
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

.band--paper {
  background: var(--paper);
}

.band--mist {
  background: var(--mist);
}

.band--navy {
  background: var(--navy);
  color: var(--white);
}

.band--navy a {
  color: var(--teal-lit);
}

.band--navy a:hover {
  color: var(--white);
}

.measure {
  max-width: 62ch;
}

.measure--wide {
  max-width: 76ch;
}

/* A narrow label rail with content beside it. The recurring arrangement
   on this site, borrowed from the title block on a drawing set. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.rail {
  color: var(--slate);
  font-size: var(--t-small);
  line-height: 1.45;
}

.band--navy .rail {
  color: var(--slate-dim);
}

.rail__heading {
  color: var(--navy);
  font-size: var(--t-small);
  font-weight: 600;
}

.band--navy .rail__heading {
  color: var(--white);
}

.standalone {
  min-height: 68vh;
  display: flex;
  align-items: center;
}

/* -- 5. Masthead + footer ------------------------------------------------ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--navy);
  text-decoration: none;
}

.wordmark__name {
  font-size: 1.22rem;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.018em;
}

.wordmark__kind {
  color: var(--slate);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.wordmark:hover .wordmark__name {
  color: var(--teal);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}

.nav a {
  display: inline-block;
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
  color: var(--navy);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  border-bottom-color: var(--rule-firm);
  color: var(--teal);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

.footer {
  background: var(--navy-deep);
  color: var(--slate-dim);
  font-size: var(--t-small);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  color: var(--teal-lit);
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}

.footer__name {
  color: var(--white);
  font-weight: 600;
  font-stretch: 106%;
  margin-bottom: 0.3rem;
}

.footer__label {
  margin-bottom: 0.35rem;
}

.footer ul {
  display: grid;
  gap: 0.35rem;
}

.footer__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-reverse);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--t-micro);
}

/* -- 6. Type ------------------------------------------------------------- */

.display-1,
.display-2,
.display-3 {
  font-weight: 600;
  text-wrap: balance;
}

.display-1 {
  font-size: var(--t-display-1);
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.display-2 {
  font-size: var(--t-display-2);
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.display-3 {
  font-size: var(--t-display-3);
  font-stretch: 105%;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--slate);
}

.band--navy .lede {
  color: var(--slate-dim);
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h3 {
  margin-top: 2.2rem;
}

.note {
  color: var(--slate);
  font-size: var(--t-small);
}

.band--navy .note {
  color: var(--slate-dim);
}

.stack-sm > * + * {
  margin-top: 0.75rem;
}

.stack-md > * + * {
  margin-top: 1.5rem;
}

.stack-lg > * + * {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* A short set of spacing and measure utilities, so page markup never
   needs a style attribute. */
.measure-head {
  max-width: 26ch;
}

.measure-lede {
  max-width: 52ch;
}

.mt-md {
  margin-top: 1.25rem;
}

.mt-lg {
  margin-top: 2rem;
}

/* -- 7. Components ------------------------------------------------------- */

.hero__heading {
  max-width: 24ch;
}

.hero__lede {
  max-width: 54ch;
  margin-top: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

/* The three things a tenant rep checks first. Ruled, not boxed: these
   are facts about one company, not three products. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.75rem, 5vw, 4rem);
  border-top: 2px solid var(--navy);
}

.facts__item {
  padding: 1.25rem 1.5rem 0 0;
  border-right: 1px solid var(--rule);
}

.facts__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.facts__item + .facts__item {
  padding-left: 1.5rem;
}

.facts__label {
  color: var(--slate);
  font-size: var(--t-micro);
  margin-bottom: 0.3rem;
}

.facts__value {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Ruled rows with the term hanging left. Fit-out types, trade scope,
   anything that is a set of named things rather than a sequence. */
.rows {
  border-top: 1px solid var(--rule);
}

.rows > li {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: baseline;
}

.row__term {
  font-size: var(--t-display-3);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.012em;
  line-height: 1.22;
}

.row__index {
  display: block;
  color: var(--teal);
  font-size: var(--t-small);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.3rem;
}

.row__body {
  color: var(--slate);
  max-width: 58ch;
}

.band--navy .rows,
.band--navy .rows > li {
  border-color: var(--rule-reverse);
}

.band--navy .row__body {
  color: var(--slate-dim);
}

/* A short list of plain links, ruled like the rows but without their
   generous row padding. */
.linklist {
  border-top: 1px solid var(--rule);
  max-width: 28rem;
}

.linklist li {
  border-bottom: 1px solid var(--rule);
  padding-block: 0.8rem;
}

.detail {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: var(--t-small);
}

.detail li {
  padding-left: 1rem;
  position: relative;
}

.detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.4rem;
  height: 1px;
  background: var(--rule-firm);
}

.band--navy .detail {
  color: var(--slate-dim);
}

.band--navy .detail li::before {
  background: var(--teal-lit);
}

/* Bid, build, hand-over. Numbered because it genuinely is a sequence,
   and numbered nowhere else on the site. */
.sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 2px solid var(--teal-lit);
}

.sequence__step {
  padding: 1.5rem 1.75rem 0 0;
  border-right: 1px solid var(--rule-reverse);
}

.sequence__step:last-child {
  border-right: 0;
  padding-right: 0;
}

.sequence__step + .sequence__step {
  padding-left: 1.75rem;
}

.sequence__index {
  color: var(--teal-lit);
  font-size: var(--t-small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sequence__name {
  font-size: var(--t-display-3);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.012em;
  margin-block: 0.4rem 0.6rem;
}

.sequence__body {
  color: var(--slate-dim);
  font-size: var(--t-small);
  max-width: 34ch;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  border-radius: 2px;
  padding: 0.7rem 1.4rem;
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.band--navy .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.band--navy .btn:hover {
  background: var(--teal-lit);
  border-color: var(--teal-lit);
  color: var(--navy-deep);
}

.textlink {
  color: var(--navy);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration-color: var(--rule-firm);
}

.textlink:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.band--navy .textlink {
  color: var(--teal-lit);
  text-decoration-color: var(--rule-reverse);
}

.band--navy .textlink:hover {
  color: var(--white);
  text-decoration-color: currentColor;
}

.contact-card__name {
  font-weight: 600;
  font-stretch: 105%;
}

.contact-card dl {
  display: grid;
  grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
  gap: 0.4rem 1rem;
  margin-top: 1.1rem;
}

.contact-card dt {
  color: var(--slate);
  font-size: var(--t-small);
}

.band--navy .contact-card dt {
  color: var(--slate-dim);
}

.contact-card dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* The email address is wider than a narrow column can hold beside its
   label, so in the contact-page rail and on phones the label sits above
   the value instead of next to it. */
.rail .contact-card dl {
  display: block;
}

.rail .contact-card dt {
  margin-top: 0.7rem;
}

.rail .contact-card dt:first-of-type {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 1.35rem;
  max-width: 34rem;
}

/* Spam trap. Removed from the layout and from the accessibility tree, so
   no person meets it; a bot filling in forms by field name will. */
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--t-small);
  font-weight: 600;
}

.field__hint {
  color: var(--slate);
  font-size: var(--t-micro);
}

/* A hint sitting inside the label must not pick up the label weight. */
.field label .field__hint {
  font-weight: 400;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: var(--t-body);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule-firm);
  border-radius: 2px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}

.form__status {
  border-left: 3px solid var(--teal);
  background: var(--white);
  padding: 0.9rem 1rem;
  font-size: var(--t-small);
}

.form__status[data-state="error"] {
  border-left-color: var(--flag);
}

.form__status:empty {
  display: none;
}

.form__submit {
  justify-self: start;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* -- 8. Responsive ------------------------------------------------------- */

@media (max-width: 60rem) {
  .split,
  .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts,
  .sequence {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts__item,
  .sequence__step {
    border-right: 0;
    padding: 1.1rem 0 0;
  }

  .facts__item + .facts__item,
  .sequence__step + .sequence__step {
    padding-left: 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
  }

  .sequence__step + .sequence__step {
    border-top-color: var(--rule-reverse);
  }
}

@media (max-width: 36rem) {
  :root {
    --gutter: 1.25rem;
  }

  .masthead__inner {
    display: grid;
    justify-items: start;
    gap: 0.85rem;
  }

  .nav ul {
    gap: 0.25rem 1.1rem;
  }

  .contact-card dl {
    display: block;
  }

  .contact-card dt {
    margin-top: 0.7rem;
  }

  .contact-card dt:first-of-type {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
