/* Commercial Vancouver — typographic directory
   Tokens: cool concrete, warehouse brick, one left rule as the signature. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e4e6e8;
  --paper: #eef0f1;
  --ink: #14161a;
  --secondary: #3e434a;
  --muted: #4a4f56;
  --line: rgba(20, 22, 26, 0.1);
  --accent: #6e3a2e;
  --accent-hover: #4f291f;
  --band: #1a1f24;
  --band-text: #eef0f1;
  --band-muted: #b8bec4;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 70rem;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--paper); }

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark span { display: block; }
.broker-line {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}
.nav a {
  color: var(--secondary);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero-copy {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  max-width: 46rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.125rem, 5.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.byline {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.lede {
  margin: 1.5rem 0 0;
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--secondary);
}

/* Photo */
.hero-figure {
  margin: 2.5rem 0 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 40% 55%;
  background: #c8ccd0;
}
.hero-figure figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 70ch;
}
.hero-figure figcaption a { color: var(--muted); }
.hero-figure figcaption a:hover { color: var(--accent); }

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.section-intro {
  margin: 0.75rem 0 0;
  max-width: 65ch;
  color: var(--secondary);
}

/* Directory */
.dir {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.dir li {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.dir-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.dir-name:hover { color: var(--accent); }
.dir-use {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}
.dir-use a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.dir-use a:hover { color: var(--accent); }
.dir-note {
  margin: 0;
  max-width: 62ch;
  color: var(--secondary);
}
.dir-note a { color: var(--accent); }
.also { margin-top: 3rem; }
.also h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
}
.dir-after {
  margin: 2rem 0 0;
  max-width: 65ch;
  color: var(--secondary);
}

/* Articles */
.arts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin: 2rem 0 0;
}
.arts h3 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.arts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arts li {
  border-top: 1px solid var(--line);
}
.arts li:first-child { border-top: 0; }
.arts a {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink);
  text-decoration: none;
}
.arts a:hover { color: var(--accent); text-decoration: underline; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  gap: 2rem 3rem;
  margin: 2rem 0 0;
  align-items: start;
}
.about-grid img {
  width: 100%;
  height: auto;
  background: #c8ccd0;
}
.about-copy { max-width: 60ch; }
.about-copy p { margin: 0 0 1rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0 0;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}
.btn:hover { background: var(--accent); color: var(--paper); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}
.foot-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}
.foot-broker { margin: 0.35rem 0 0; color: var(--secondary); }
.foot-addr { margin: 0.75rem 0 0; }
.foot-addr a { color: var(--secondary); text-decoration: none; }
.foot-addr a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { margin: 0.75rem 0 0; max-width: 58ch; }
.foot-nav { margin: 0; }
.foot-nav a { color: var(--secondary); margin-right: 1.25rem; }
.updated { margin: 1.5rem 0 0; }

/* Inner pages */
.page-main { padding: 3.5rem 0 4.5rem; }
.page-main h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.prose { max-width: 65ch; margin-top: 1.5rem; }
.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin: 0 0 0.5rem; }
.credits-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}
.credits-table th,
.credits-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-top: 1px solid var(--line);
  font-weight: 400;
}
.credits-table th { color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 44rem) {
  :root { --gutter: 1.25rem; }
  .site-header .wrap { display: flex; flex-direction: column; }
  .header-inner { display: contents; }
  .wordmark { order: 1; }
  .broker-line { order: 2; margin-top: 0.45rem; }
  .nav { order: 3; margin-top: 0.85rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-copy { padding-left: 1rem; }
  .hero h1 { font-weight: 400; font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .dir li,
  .arts,
  .about-grid,
  .foot-top {
    grid-template-columns: 1fr;
  }
  .about-grid img { max-width: 16.5rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 22.5rem) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  .wordmark { font-size: 1.25rem; }
}

#places, #articles, #about, #places-h, #articles-h, #about-h { scroll-margin-top: 1.25rem; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, .btn, .wordmark { touch-action: manipulation; }
.btn:active { background: var(--accent-hover); color: var(--paper); }
a:active { color: var(--accent-hover); }
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
