/* J. Parker & Company — jparkerco.com
   Plain CSS. Fonts are self-hosted (no third-party requests). */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  --ground: #F1F0EC;
  --paper: #FAF9F6;
  --ink: #1F2430;
  --ink-2: #4E525B;
  --rule: #D6D3CB;
  --gutter: clamp(16px, 2.6vw, 36px);
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6B2B2B; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.amp { font-style: italic; font-weight: 400; }
.sc { text-transform: uppercase; letter-spacing: .16em; font-size: .72em; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
}
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark img { width: 28px; height: 35px; }
.mark span { font-size: 22px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-size: clamp(19px, 2.1vw, 28px); }
.nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero-mark { width: clamp(140px, 19vw, 280px); height: auto; }
.hero h1 {
  margin: 0; font-weight: 400;
  font-size: clamp(38px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.01em;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  margin: clamp(28px, 4vw, 48px) 0 0; max-width: 40ch;
  font-size: clamp(19px, 1.7vw, 23px); color: var(--ink-2);
}

/* ---------- Section headings ---------- */
.band {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 0 var(--gutter); margin: 0 0 18px;
  border-top: 1px solid var(--rule); padding-top: 14px;
}
.band h2 { margin: 0; font-weight: 400; font-size: clamp(26px, 3vw, 40px); }
.band p { margin: 0; color: var(--ink-2); }

/* ---------- Work cards ---------- */
.work { padding: 0 0 clamp(56px, 8vw, 110px); }
.cards { display: grid; gap: clamp(36px, 5vw, 72px); padding: 0 var(--gutter); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { margin: 0; }
.panel {
  aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  display: grid; place-items: center; position: relative;
}
.cards.two .panel { aspect-ratio: 4 / 3; }
.cards:not(.two) .panel { aspect-ratio: 21 / 8; }
.cards:not(.two) .cap p { max-width: 70ch; }
.panel img.photo { width: 100%; height: 100%; object-fit: cover; }
.panel img.logo { width: min(62%, 560px); height: auto; }
.cap {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding-top: 12px;
}
.cap h3 { margin: 0; font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; }
.cap h3 .amp { margin-right: .18em; }
.cap .when { color: var(--ink-2); white-space: nowrap; }
.cap p { grid-column: 1 / -1; margin: 6px 0 0; max-width: 62ch; color: var(--ink-2); }

/* Typographic panels (no photo) */
.t-panel { padding: 8%; text-align: center; }
.t-panel .big { font-size: clamp(34px, 6vw, 88px); line-height: 1; margin: 0; font-weight: 400; }
.t-panel .small { margin: 18px 0 0; }

.p-bridge { background: #1F2430; color: #F7F5F0; }
.p-bridge .big { font-style: italic; }
.p-forge  { background: #2B2A27; color: #EFE7DA; }
.p-dottie { background: #1A2333; }
.p-ntm    { background: #EFE9DC; }
.p-buzd   { background: #161616; }
.p-daves  { background: #6B2B2B; color: #F7F2EA; }
.p-daves .big { font-weight: 500; }
.p-local  { background: #E7DDC8; }
.p-ahw    { background: #247A3B; }

/* ---------- Press ---------- */
.clips { list-style: none; margin: 0; padding: 0 var(--gutter); }
.clips li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.clips a { font-size: clamp(19px, 1.7vw, 23px); text-decoration: none; }
.clips a:hover { text-decoration: underline; }
.clips span { color: var(--ink-2); white-space: nowrap; font-size: 16px; }
@media (max-width: 600px) { .clips li { flex-direction: column; gap: 2px; } }

/* ---------- About ---------- */
.about { padding: 0 0 clamp(56px, 8vw, 110px); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px);
  padding: 0 var(--gutter);
}
.about-lead { margin: 0; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; }
.about-body p { margin: 0 0 1em; max-width: 60ch; }
.facts { list-style: none; margin: 1.6em 0 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts li span:last-child { color: var(--ink-2); text-align: right; }

.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; }
.social a { font-size: 19px; }
.about-body strong { font-weight: 500; }

/* ---------- Contact ---------- */
.contact { padding: 0 0 clamp(56px, 8vw, 110px); }
.contact-in { padding: 0 var(--gutter); }
.contact .mail { font-size: clamp(30px, 5.4vw, 80px); line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover { text-decoration: underline; }
.contact p { color: var(--ink-2); margin: 18px 0 0; }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 18px var(--gutter) 28px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 16px;
}
.foot a { color: var(--ink-2); }

/* ---------- Rotating seal ---------- */
.seal {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 15;
  width: 118px; height: 118px; display: block; color: var(--ink);
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .disc { fill: var(--ground); opacity: .92; }
.seal .ring { transform-origin: 60px 60px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal .ring { animation: none; } }

/* ---------- Legal page ---------- */
.legal { padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px); }
.legal-in { max-width: 68ch; }
.legal h1 { font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; margin: 0 0 8px; }
.legal h2 { font-weight: 500; font-size: 24px; margin: 1.8em 0 .4em; }
.legal .updated { color: var(--ink-2); margin: 0 0 2em; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .cards.two { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .mark span { font-size: 19px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { width: 120px; }
  .panel, .cards.two .panel { aspect-ratio: 4 / 3; }
.cards:not(.two) .panel { aspect-ratio: 21 / 8; }
.cards:not(.two) .cap p { max-width: 70ch; }
  .cap { grid-template-columns: 1fr; }
  .cap .when { order: -1; font-size: 16px; }
  .band { flex-direction: column; gap: 4px; }
  .seal { width: 84px; height: 84px; bottom: 14px; }
  .nav .hide-sm { display: none; }
}
