/* Days in Ink website. Shared by every page; images and fonts live in assets/. */
@font-face { font-family: "Architects Daughter"; src: url(assets/architects-daughter-400.ttf) format("truetype"); font-display: block; }
@font-face { font-family: "Plex Mono"; font-weight: 400; src: url(assets/ibm-plex-mono-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Plex Mono"; font-weight: 500; src: url(assets/ibm-plex-mono-500.woff2) format("woff2"); font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-2: #ebe6dc;
  --ink: #1d1d1f;
  --blue: #2350a0;
  --red: #c23b2e;
  --muted: #5c6168;
  --rule: #d6dbe1;
  --hand: "Architects Daughter", "Marker Felt", "Chalkboard SE", cursive;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--mono); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* The hand lettering gets a little stroke so it reads like ballpoint, as on the printed pages. */
h1, h2, h3, .tagline, .brand { font-family: var(--hand); font-weight: 400; -webkit-text-stroke: .025em currentColor; }

.paper-grid {
  background-image: linear-gradient(rgba(29, 29, 31, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(29, 29, 31, .06) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--rule);
}
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; text-decoration: none; text-transform: uppercase; }
.mark { display: inline-flex; gap: 5px; }
.mark i { display: block; width: 12px; height: 12px; }
.mark i:nth-child(1), .sq.black { background: var(--ink); }
.mark i:nth-child(2), .sq.blue { background: var(--blue); }
.mark i:nth-child(3), .sq.red { background: var(--red); }
nav a { margin-left: 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.wide-only { display: none; }

.hero { display: grid; gap: 36px; padding: 28px 0 64px; }
.eyebrow, .specs { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { margin: 0 0 14px; }
h1 { margin: 0; font-size: clamp(60px, 13vw, 108px); line-height: .95; text-transform: uppercase; }
.tagline { margin: 20px 0 14px; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.3; -webkit-text-stroke-width: .015em; }
.lead { max-width: 34em; margin: 0 0 26px; }
.specs { margin: 20px 0 0; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
  border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none;
  font: 500 14px/1.2 var(--mono); letter-spacing: .03em;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn[href]:hover { transform: translateY(-1px); }
.btn:focus-visible, nav a:focus-visible, summary:focus-visible, footer a:focus-visible, .doc a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.soon { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

figure { margin: 0; }
.shot img { border-radius: 10px; }
figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 { margin: 0 0 12px; font-size: clamp(34px, 5.4vw, 46px); line-height: 1.1; }
.intro { max-width: 40em; margin: 0 0 32px; color: var(--muted); }

.parts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.parts li, .card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; }
.parts li { padding: 22px; }
.parts h3 { margin: 6px 0 8px; font-size: 23px; line-height: 1.2; }
.parts p { margin: 0; font-size: 14px; }
.num { font-size: 12px; color: var(--muted); }

.split { display: grid; gap: 36px; align-items: center; }
.inks, .routine { margin: 22px 0 0; padding: 0; list-style: none; }
.inks li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--rule); }
.sq { width: 16px; height: 16px; margin-top: 5px; }
.inks b { font-weight: 500; }
.routine { counter-reset: step; }
.routine li { position: relative; padding: 8px 0 8px 46px; }
.routine li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; font: 28px/1.5 var(--hand); text-align: center;
}
.night { margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed var(--rule); }

.editions { display: grid; gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; }
.card .pic { display: flex; justify-content: center; align-items: center; padding: 28px; background: var(--paper-2); }
.card .pic img { max-height: 300px; width: auto; box-shadow: 0 10px 24px rgba(40, 34, 26, .18); }
.card .body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.card h3 { margin: 0; font-size: 27px; line-height: 1.2; }
.card ul { margin: 0; padding-left: 18px; font-size: 14px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: auto; padding-top: 10px; }
.price { font-size: 22px; font-weight: 500; }

.faq { max-width: 760px; }
.faq details { padding: 16px 0; border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.5em; }
.faq details[open] summary::before { content: "–"; }
.faq p { margin: 10px 0 0 1.5em; color: var(--muted); }

/* Plain text pages: privacy, not found. */
.doc { max-width: 720px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(44px, 9vw, 72px); }
.doc h2 { margin-top: 36px; font-size: 28px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

footer { padding: 28px 0 44px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-underline-offset: 3px; }

@media (min-width: 600px) { .wide-only { display: inline; } }
@media (min-width: 720px) { .parts, .editions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) {
  .hero { grid-template-columns: 5fr 7fr; align-items: center; gap: 52px; padding: 44px 0 80px; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
}
@media (min-width: 1040px) { .parts { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn[href]:hover { transform: none; } }
