/* Millwright C.G. — shared styles. All type is serif. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }

:root {
  --paper: #f7f6f3;
  --paper-2: #f2f1ee;
  --ink: #121212;
  --muted: #5f5d58;
  --rule: #e3e1dc;
  --brass: #a8865a;
  --display: "Instrument Serif", "Times New Roman", Times, serif;
  --text: "Source Serif 4", "Times New Roman", Times, serif;
  --mark: "Cormorant Garamond", "Times New Roman", Times, serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow { font: 400 13px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: #0e0e0e; color: #fff; border-bottom: 1px solid #0e0e0e; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { font: italic 600 28px/1 var(--mark); color: #fff; text-decoration: none; letter-spacing: .07em; white-space: nowrap; }
nav { display: flex; gap: 36px; margin: 0 auto; }
nav a { text-decoration: none; color: rgba(255,255,255,.72); font-size: 17px; padding: 6px 0; border-bottom: 1.5px solid transparent; }
nav a:hover { color: #fff; }
nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

.btn { display: inline-flex; align-items: center; border-radius: 999px; padding: 12px 24px; font: 400 16px/1 var(--text); text-decoration: none; transition: background .15s, color .15s; }
.btn-outline { border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
header .btn-outline { border-color: #fff; color: #fff; }
header .btn-outline:hover { background: #fff; color: #0e0e0e; }
.btn-solid { background: var(--ink); color: var(--paper); padding: 17px 30px; font-size: 17px; }
.btn-solid:hover { background: #2c2c2c; }
.link-arrow { text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Home: hero */
.hero { padding: 150px 0 140px; background: radial-gradient(900px 500px at 85% 0%, #efebe4 0%, transparent 70%); }
.hero h1 { font-size: clamp(50px, 7.2vw, 100px); line-height: 1.04; padding-bottom: .06em; max-width: 18ch; }
.hero .lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.7; color: var(--muted); max-width: 700px; margin: 36px 0 64px; padding-bottom: 4px; }
.cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Home: commitments strip */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 36px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strip li { position: relative; padding-left: 22px; }
.strip li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.strip strong { display: block; font-weight: 600; font-size: 17px; }
.strip span { color: var(--muted); font-size: 16px; }

/* Inner pages */
.page-head { padding: 110px 0 70px; }
.page-head h1 { font-size: clamp(46px, 5.6vw, 78px); line-height: 1.02; max-width: 18ch; }

/* What gets built */
.build { padding: 0 0 130px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; border-top: 1px solid var(--rule); padding-top: 64px; }
.cards h2 { font: 600 21px/1.3 var(--text); margin: 0 0 12px; letter-spacing: 0; }
.cards p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Where your data lives */
.pillars { margin-bottom: 130px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); }
.pillars div { padding: 40px 44px 46px; }
.pillars div + div { border-left: 1px solid var(--rule); }
.pillars .num { font: 400 15px/1 var(--text); letter-spacing: .1em; color: var(--brass); margin: 0; }
.pillars h2 { font: 600 21px/1.3 var(--text); margin: 22px 0 14px; letter-spacing: 0; }
.pillars p { margin: 0; color: var(--muted); font-size: 17px; }

/* Contact */
.contact { padding: 120px 0; }
.contact .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.12; padding-bottom: .08em; }
.mail { font-size: 20px; text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 4px; white-space: nowrap; }
.mail:hover { color: var(--brass); }

footer { border-top: 1px solid var(--rule); padding: 28px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
.foot-links { display: flex; gap: 28px; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .bar { flex-wrap: wrap; justify-content: space-between; padding-top: 14px; }
  nav { order: 3; width: 100%; margin: 0; gap: 26px; padding-bottom: 10px; overflow-x: auto; }
  nav a { font-size: 16px; white-space: nowrap; }
  .pillars { grid-template-columns: 1fr; }
  .pillars div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .brand { font-size: 22px; letter-spacing: .05em; }
  .btn-outline { padding: 10px 18px; font-size: 15px; }
  .hero { padding: 80px 0 90px; }
  .strip ul, .cards { grid-template-columns: 1fr; gap: 28px; }
  .page-head { padding: 70px 0 48px; }
  .build { padding-bottom: 80px; }
  .pillars { margin-bottom: 80px; }
  .pillars div { padding: 32px 28px; }
  .contact { padding: 80px 0; }
  .mail { font-size: 18px; }
}

/* Privacy page */
.legal { padding: 0 0 120px; }
.legal .wrap > * { max-width: 760px; }
.legal h2 { font: 600 21px/1.3 var(--text); margin: 44px 0 10px; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
