/* Soveth shopfront.
   Visual system from ../design/visual-direction.md and layouts/*.html
   Section 1C: logo 2 monogram public primary; logo 3 reverse in footer. No logo 1. */

:root {
  --navy: #0B1F3A;
  --gold: #C4A35A;
  --white: #FFFFFF;
  --ink-88: rgba(11, 31, 58, 0.88);
  --ink-68: rgba(11, 31, 58, 0.68);
  --hairline: rgba(11, 31, 58, 0.12);
  --wash: rgba(11, 31, 58, 0.04);
  --white-88: rgba(255, 255, 255, 0.88);
  --white-64: rgba(255, 255, 255, 0.64);
  --display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "Nimbus Roman", "Times New Roman", Times, serif;
  --body: "Helvetica Neue", Helvetica, "Liberation Sans", "Nimbus Sans", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--gold); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 40px;
  top: -48px;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  z-index: 20;
  font-size: 13px;
  line-height: 1.40;
  letter-spacing: 0.04em;
}
.skip:focus { top: 16px; color: var(--white); }

/* Content 1200px, 40px side margins. At 1200px, 12 × 78px + 11 × 24px gutters. */
.wrap,
.grid,
.footer-top,
.footer-bottom {
  width: min(1200px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
}

.start { grid-column-start: 1; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

.site-header {
  height: 96px;
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
}
.header-inner {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 72px;
  width: auto;
}
.brand-reverse img {
  height: 48px;
}

.wordmark {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.00;
  letter-spacing: 0.06em;
  font-weight: 400;
  text-decoration: none;
  color: var(--navy);
}
.wordmark:hover { color: var(--navy); }
.wordmark[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
  padding-bottom: 4px;
}

.nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font-size: 13px;
  line-height: 1.40;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy);
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
  padding-bottom: 4px;
}

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 128px 0 112px;
}
.hero .rule { background: var(--gold); }
.hero h1 { color: var(--white); }
.hero .lead,
.hero .lead p { color: var(--white-88); }
.hero a { color: var(--white); }
.hero a:hover { color: var(--gold); }

.rule {
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 0 32px;
  background: var(--gold);
  border: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 20px;
  line-height: 1.30;
  letter-spacing: 0;
}

.lead {
  font-size: 20px;
  line-height: 1.50;
  color: var(--ink-88);
}
.lead p { margin: 0 0 16px; }
.lead p:last-child { margin-bottom: 0; }

h1 + .lead { margin-top: 32px; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.measure { max-width: 40em; }

.section { padding-top: 112px; }
.section-close {
  padding-top: 112px;
  padding-bottom: 128px;
}

.section h2,
.section-close h2 { margin-bottom: 24px; }

.col h2,
.col h3 { margin-bottom: 16px; }
.col .rule { margin-bottom: 24px; }

.body-muted { color: var(--ink-68); }

.slot {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--hairline);
  background: var(--wash);
  display: flex;
  flex-direction: column;
}
.slot-index {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.40;
  letter-spacing: 0.10em;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.slot h3 { margin-bottom: 8px; }
.slot p {
  margin: 0;
  font-size: 15px;
  line-height: 1.50;
  color: var(--ink-68);
}
.slot-space { margin-top: auto; padding-top: 32px; }

.work-link { margin-top: 32px; }

.mail {
  font-size: 20px;
  line-height: 1.50;
  text-decoration: none;
}
.mail-block { margin-top: 32px; }
.mail-lead { margin-top: 24px; }

.location {
  margin-top: 48px;
  font-size: 15px;
  line-height: 1.50;
  color: var(--ink-68);
}

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

.legal-body h2 {
  margin: 64px 0 24px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul {
  margin: 0 0 16px;
  padding: 0 0 0 24px;
}
.legal-body li + li { margin-top: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.50;
  font-weight: 400;
}
th {
  font-size: 13px;
  line-height: 1.40;
  letter-spacing: 0.04em;
  color: var(--ink-68);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 48px;
  border-top: 1px solid var(--gold);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark:hover { color: var(--white); }
.site-footer a:focus-visible { outline-color: var(--gold); }

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
}
.footer-word { grid-column: span 3; }
.footer-primary { grid-column: span 6; }
.footer-legal { grid-column: span 3; justify-self: end; }

.footer-nav,
.footer-legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal-list { justify-content: flex-end; }

.site-footer .footer-nav a,
.site-footer .footer-legal-list a {
  font-size: 13px;
  line-height: 1.40;
  letter-spacing: 0.04em;
}
.site-footer .footer-legal-list a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
  padding-bottom: 4px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white-64);
  font-size: 13px;
  line-height: 1.40;
  letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--white-64); }
.footer-bottom a:hover { color: var(--gold); }
.fb-mail { grid-column: span 5; }
.fb-place { grid-column: span 4; }
.fb-copy { grid-column: span 3; text-align: right; }
.footer-bottom p { margin: 0; }


.section ul,
.section-close ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
.section ul li + li,
.section-close ul li + li {
  margin-top: 8px;
}

.steps {
  margin: 0 0 16px;
  padding-left: 24px;
}
.steps > li {
  margin-bottom: 16px;
}
.steps h3 {
  margin-bottom: 8px;
}

.contact-block {
  margin-top: 32px;
  margin-bottom: 24px;
}
h2 + .contact-block {
  margin-top: 0;
}
.contact-block p {
  margin: 0 0 16px;
}
.contact-block p:last-child {
  margin-bottom: 0;
}
.contact-block .address {
  font-size: 15px;
  line-height: 1.50;
  color: var(--ink-68);
  font-style: normal;
}

/* Mobile — type, spacing and stack from design/layouts/home-mobile.html (390 artboard). */
@media (max-width: 799px) {
  body {
    font-size: 16px;
    line-height: 1.60;
  }

  .skip { left: 24px; }

  .wrap,
  .grid,
  .footer-top,
  .footer-bottom {
    width: calc(100% - 48px);
  }

  .grid {
    display: block;
    row-gap: 0;
  }
  .start,
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-10, .span-12 {
    display: block;
    grid-column: auto;
  }

  .site-header {
    height: auto;
    padding: 24px 0 16px;
  }
  .header-inner {
    height: auto;
    display: block;
  }

  .wordmark { font-size: 18px; line-height: 1.00; }

  .nav { margin-top: 16px; }
  .nav ul {
    flex-wrap: wrap;
    gap: 16px;
  }
  .nav a {
    font-size: 12px;
    line-height: 1.40;
  }

  .hero { padding: 80px 0 64px; }
  .hero h1 { margin-bottom: 0; }
  .hero .lead { margin-top: 24px; }

  .rule { margin: 0 0 24px; }

  h1 { font-size: 36px; line-height: 1.16; }
  h2 { font-size: 24px; line-height: 1.25; }
  h3 { font-size: 18px; line-height: 1.30; }
  .lead { font-size: 17px; line-height: 1.50; }

  h1 + .lead { margin-top: 24px; }

  .section { padding-top: 64px; }
  .section-close {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .section h2,
  .section-close h2 { margin-bottom: 16px; }

  .col { margin-top: 32px; }
  .col:first-child { margin-top: 24px; }

  .slot {
    min-height: 160px;
    margin: 16px 0 0;
  }
  .slot-index { margin: 0 0 16px; }

  .work-link { margin-top: 24px; }

  /* Home “We work with companies…” sits in .span-8.start after the two cols. */
  .section .start:not(.slot) { margin-top: 16px; }

  .mail { font-size: 17px; }
  .location { margin-top: 32px; }

  .legal-body h2 {
    margin: 40px 0 16px;
    font-size: 24px;
  }
  .legal-body h2:first-child { margin-top: 0; }

  .site-footer { padding: 48px 0 40px; }
  .site-footer .wordmark {
    box-shadow: none;
    padding-bottom: 0;
  }

  .footer-top,
  .footer-bottom {
    display: block;
  }
  .footer-word,
  .footer-primary,
  .footer-legal,
  .fb-mail, .fb-place, .fb-copy {
    display: block;
    grid-column: auto;
    justify-self: auto;
    text-align: left;
  }

  .footer-nav,
  .footer-legal-list {
    gap: 16px;
    margin: 24px 0 0;
    justify-content: flex-start;
  }
  .site-footer .footer-nav a,
  .site-footer .footer-legal-list a {
    font-size: 12px;
  }

  .footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    font-size: 12px;
  }
  .footer-bottom p + p { margin-top: 8px; }
}
