/* Anderson Watts Ltd. — andersonwatts.com */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dd;
  --ink: #121212;
  --muted: #5c5852;
  --line: #d9d2c6;
  --red: #d9002b;
  --red-dark: #b00023;
  --slant: -22deg;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

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

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: clamp(10px, 2.5vw, 14px); text-decoration: none; }
.brand-mark { width: clamp(40px, 10vw, 52px); height: auto; fill: var(--ink); }
.brand-name {
  white-space: nowrap;
  font-weight: 800; font-size: clamp(0.92rem, 3.7vw, 1.15rem); letter-spacing: -0.01em; text-transform: uppercase;
  font-variation-settings: 'wdth' 112;
}
.brand-ltd { margin-left: 0.35em; font-weight: 500; color: var(--muted); }
.head-link {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 8px 0; border-bottom: 2px solid var(--red);
}
.head-link:hover { color: var(--red); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 112px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.slash { display: inline-block; width: 10px; height: 20px; background: var(--red); transform: skewX(var(--slant)); }

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  font-variation-settings: 'wdth' 92;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 13ch;
}
.lede { font-size: clamp(1.15rem, 1.8vw, 1.32rem); line-height: 1.5; font-weight: 500; max-width: 36em; }
.hero-copy p:not(.eyebrow):not(.lede):not(.cta) { color: var(--muted); max-width: 36em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  border: 2px solid var(--ink); transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--red); border-color: var(--red); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.hero-art {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: end;
  background: var(--ink);
  display: grid; place-items: center;
}
.stripe {
  position: absolute; top: -20%; bottom: -20%; left: 76%; width: 10%;
  background: var(--red); transform: skewX(var(--slant));
}
.hero-mark { position: relative; width: 66%; margin-right: 8%; height: auto; fill: var(--paper); }
@media (max-width: 899px) { .hero-art { justify-self: start; max-width: 520px; aspect-ratio: 16 / 9; } .hero-mark { width: 52%; } }

/* Contact cards */
.contact { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 104px) 0; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); font-variation-settings: 'wdth' 92; margin-bottom: clamp(28px, 4vw, 44px); }
.cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #1c1c1c; border: 1px solid #2c2c2c;
  padding: clamp(24px, 3.5vw, 40px);
}
.card::before {
  content: ''; position: absolute; left: clamp(24px, 3.5vw, 40px); top: 0;
  width: 44px; height: 4px; background: var(--red);
}
.card-tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #a8a29a; margin: 6px 0 14px;
}
.card h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-variation-settings: 'wdth' 95; margin-bottom: 14px; max-width: 18ch; }
.card p { color: #c9c3ba; }
.email {
  margin-top: auto; padding-top: 18px;
  font-weight: 700; font-size: clamp(0.95rem, 3.9vw, 1.25rem); white-space: nowrap;
  color: var(--paper); text-decoration: none;
  align-self: flex-start; border-bottom: 2px solid var(--red);
}
.email:hover { color: #ff5a6f; }

.card-noodles .noodles {
  width: 190px; height: auto; margin: 4px 0 22px;
  background: #fff; padding: 10px 14px; border-radius: 999px;
}
@media (min-width: 600px) {
  .card-tag { min-height: 54px; display: flex; align-items: center; margin: 0 0 14px; }
  .card-noodles .noodles { position: absolute; top: clamp(24px, 3.5vw, 40px); right: clamp(24px, 3.5vw, 40px); width: 150px; margin: 0; }
}

/* Office */
.visit { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.visit-row { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .visit-row { grid-template-columns: 1fr 1fr 1fr; } }
.visit h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-variation-settings: 'wdth' 92; }
address { font-style: normal; display: flex; flex-direction: column; font-size: 1.1rem; line-height: 1.55; }
address span:first-child { font-weight: 700; }
.visit-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.phone { font-size: 1.35rem; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.phone:hover, .arrow:hover { color: var(--red); }
.arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.arrow::after { content: ' \2192'; }

/* Footer */
.site-foot { padding: 28px 0 36px; font-size: 0.9rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-row p { margin: 0; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* 404 */
.nf .hero { min-height: 52vh; }
