/* Key Strategy Realty
   Palette comes from the KSR logo: graphite ground, slate lettering.
   Brass is used once per page, on the key. */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("fonts/libre-caslon-display-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f2f4f3;
  --graphite: #232323;
  --ink: #2b2e2d;
  --slate: #5c6569;
  --line: #d9dddc;
  --brass: #a9812f;
  --display: "Libre Caslon Display", "Big Caslon", "Book Antiqua", Georgia, serif;
  --text: "Albert Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--graphite);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.03; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; margin: 0; color: var(--graphite); }
p { margin: 0; max-width: 62ch; }
p + p { margin-top: 1em; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--graphite); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { top: 0.75rem; z-index: 10; }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.75rem;
}
.wordmark {
  font-family: var(--display); font-size: 1.55rem; line-height: 1;
  color: var(--graphite); text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.9rem; font-size: 1rem; }
.site-nav a { text-decoration: none; padding-block: 0.35rem; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--graphite); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.button {
  display: inline-block; background: var(--graphite); color: #fff; text-decoration: none;
  font-weight: 550; font-size: 1.0625rem; padding: 0.95rem 1.5rem; border-radius: 3px;
  transition: background-color 0.15s ease;
}
.button:hover { background: #000; }
.button.light { background: #fff; color: var(--graphite); }
.button.light:hover { background: var(--mist); }

/* Hero */
.hero { padding-top: clamp(24px, 5vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px); align-items: end;
}
.hero .lede { margin-top: 1.75rem; font-size: 1.25rem; line-height: 1.5; color: var(--slate); max-width: 34ch; }
.hero-copy { padding-bottom: clamp(0px, 3vw, 40px); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* The key: bow, shaft and bit, borrowed from the logo. */
.key { display: flex; align-items: center; margin-top: clamp(40px, 7vw, 88px); color: var(--brass); }
.key svg { flex: none; display: block; height: 44px; width: auto; }
.key .shaft {
  flex: 1; height: 6px; background: currentColor; margin-inline: -1px;
  transform-origin: left center; animation: draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.key .bit { animation: appear 0.3s ease 1.1s both; }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes appear { from { opacity: 0; } }

/* Sections */
.section { padding-block: var(--section); }
.section.tight { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 1.1rem; color: var(--slate); }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.columns > div { border-top: 1px solid var(--graphite); padding-top: 1.25rem; }
.columns p { margin-top: 0.6rem; color: var(--slate); font-size: 1.0625rem; }

.text-link { font-weight: 550; }
.more { margin-top: clamp(32px, 4vw, 48px); }

/* Graphite band */
.band { background: var(--graphite); color: #e9ebea; }
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: #c4c9c8; }
.band .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px); align-items: start;
}

/* Page intro (inner pages) */
.intro { padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.intro h1 { max-width: 14ch; }
.intro .lede { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; color: var(--slate); max-width: 50ch; }

.split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: 2rem; }

/* Service list */
.services { list-style: none; margin: 0; padding: 0; }
.services li { border-top: 1px solid var(--line); padding-block: 1.4rem; }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services p { margin-top: 0.35rem; color: var(--slate); font-size: 1.0625rem; }

/* Record (about page) */
.record { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem clamp(24px, 5vw, 72px); border-top: 1px solid var(--graphite); padding-block: clamp(28px, 4vw, 44px); }
.record h2 { font-size: 1.75rem; }
.record dl { margin: 0; }
.record .row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 0.7rem; }
.record .row + .row { border-top: 1px solid var(--line); }
.record dt { color: var(--slate); font-variant-numeric: tabular-nums; }
.record dd { margin: 0; }
.record dd span { display: block; color: var(--slate); font-size: 1.0625rem; }
.plain-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.plain-list li { padding-block: 0.45rem; break-inside: avoid; }

/* Contact */
.contact-card { border-top: 1px solid var(--graphite); padding-top: 1.5rem; margin-top: 2.5rem; }
.contact-card address { font-style: normal; color: var(--slate); margin-top: 0.4rem; }
.email { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; overflow-wrap: anywhere; }
.checklist { margin: 1.25rem 0 0; padding-left: 1.2rem; color: var(--slate); max-width: 56ch; }
.checklist li { padding-block: 0.2rem; }

/* Closing call to action */
.closing { background: var(--mist); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem 4rem; }
.closing h2 { max-width: 18ch; }
.closing p { margin-top: 1rem; color: var(--slate); max-width: 44ch; }

/* Footer */
.site-footer { background: var(--graphite); color: #c4c9c8; font-size: 1rem; padding-block: clamp(48px, 7vw, 80px) 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr)); gap: 2.5rem clamp(24px, 5vw, 72px); }
.site-footer img { width: 210px; }
.site-footer h2 { font-family: var(--text); font-size: 1rem; font-weight: 650; color: #fff; margin-bottom: 0.6rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.15rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #3d3f3f; padding-top: 1.5rem; font-size: 0.9375rem; color: #a3a9a8; max-width: none; }

@media (max-width: 860px) {
  .hero-grid, .band .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-photo img { aspect-ratio: 3 / 2; }
  .split img { aspect-ratio: 3 / 2; position: static; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .record { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .record .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .plain-list { columns: 1; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .key svg { height: 34px; }
  .key .shaft { height: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .key .shaft, .key .bit { animation: none; }
  .button { transition: none; }
}
