/* theziromedia.com: one stylesheet, no framework.
   Colours mirror ../../brand/tokens.json (near-black, off-white). Brass appears ONLY inside the logo SVGs.
   Every text colour pair below passes WCAG AA (checked: ink/paper 16.3:1, muted pairs ≥ 7:1). */

@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/archivo-600.woff2") format("woff2"); }

:root {
  --ink: #12100E;
  --paper: #F4EDE0;
  --ink-muted: color-mix(in srgb, var(--ink) 74%, var(--paper));     /* ≈ #4D4741 on paper, 8.4:1 */
  --paper-muted: color-mix(in srgb, var(--paper) 72%, var(--ink));   /* ≈ #B3ADA4 on ink, 8.6:1 */
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --rule-dark: color-mix(in srgb, var(--paper) 18%, transparent);
  --panel: color-mix(in srgb, var(--paper) 86%, var(--ink));
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --focus: 3px solid currentColor;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over component display rules */
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: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(44px, 8.4vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
h3 { font-size: 26px; line-height: 1.15; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }
.muted { color: var(--ink-muted); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: color-mix(in srgb, var(--paper) 86%, var(--ink)); }

/* ---- Header + hero (dark) ---- */
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--paper-muted); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 2px; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

.hero { position: relative; overflow: hidden; }
.hero .wrap { padding-top: clamp(40px, 8vw, 104px); padding-bottom: clamp(56px, 10vw, 128px); position: relative; }
.hero h1 { max-width: 11.5ch; }
.hero .lede { margin-top: 22px; max-width: 34ch; }
.hero .btn { margin-top: 34px; }
/* The one bold element: the mark, oversized and cropped by the right edge. Decorative. */
.hero .mark { position: absolute; right: calc(var(--gutter) * -1 - 6%); top: 50%; width: min(46vw, 520px); transform: translateY(-50%); pointer-events: none; }
@media (max-width: 760px) {
  .hero .mark { position: static; transform: none; width: 84px; margin-bottom: 26px; }
}

/* ---- Sections on paper ---- */
.section { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 60ch; }

/* Products */
.grid { display: grid; gap: clamp(28px, 4vw, 44px); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .cover { background: var(--ink); aspect-ratio: 8.5 / 11; overflow: hidden; border: 1px solid var(--rule); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .price { font-weight: 600; white-space: nowrap; }
.card .btn { align-self: flex-start; margin-top: 4px; }
.empty { border: 1px solid var(--rule); padding: clamp(24px, 4vw, 40px); max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.empty h3 { font-size: 30px; }

/* Free sample + custom pitch */
.panel { background: var(--panel); padding: clamp(28px, 5vw, 56px); display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .panel { grid-template-columns: 1fr auto; } }
.panel p { max-width: 54ch; }

/* About */
.about p + p { margin-top: 14px; }
.about > * { max-width: 62ch; }              /* left-aligned like every other section */

/* ---- Footer ---- */
.site-foot .wrap { padding-top: 36px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.site-foot img { height: 28px; width: auto; }
.foot-list { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }

/* ---- Custom page ---- */
.page-intro .wrap { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-intro h1 { font-size: clamp(40px, 7vw, 72px); max-width: 14ch; }
.page-intro .lede { margin-top: 18px; max-width: 46ch; }
.packages { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.package { border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.package .terms { font-weight: 600; }
.form-wrap > * { max-width: 760px; }
form { display: grid; gap: 22px; }
.row-2 { display: grid; gap: 22px; }
@media (min-width: 680px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-weight: 600; font-size: 16px; }
.hint { font-size: 15px; color: var(--ink-muted); }
input[type=text], input[type=email], input[type=date], select, textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent);
  padding: 12px 14px; min-height: 48px; width: 100%; border-radius: 0;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
/* Errors stay inside the brand palette: heavier ink border + bold ink message with a marker. */
[aria-invalid="true"] { border: 3px solid var(--ink) !important; }
.err { color: var(--ink); font-size: 15px; font-weight: 600; padding-left: 12px; border-left: 3px solid var(--ink); }
.err:empty { display: none; }
.hp { display: none !important; }
.form-note { font-size: 15px; color: var(--ink-muted); border-top: 1px solid var(--rule); padding-top: 18px; }
.status { padding: 26px; border: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.status:empty, .status[hidden] { display: none; }
.status h2 { font-size: 34px; }

/* ---- 404 ---- */
.notfound .wrap { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(56px, 10vw, 120px); display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-left: auto; margin-right: auto; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.after-h { margin-top: 12px; }
.about-title { margin-bottom: 20px; }
.req { font-weight: 400; font-size: 15px; color: var(--ink-muted); }
label .hint, legend .hint { font-weight: 400; }
