/* choprock.com. Plain CSS, no build step.
   Manner: a printer's sheet on cool stone. Navy ink and olive from the original Choprock logo,
   one ember accent for the smith's spark. The game brings its own sepia sheet with it. */

/* ---------- fonts (self-hosted, SIL OFL 1.1; see fonts/LICENSES.txt) ---------- */
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-latin-wght-normal.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-latin-wght-italic.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;

  /* stone and ink */
  --stone: #ece8df;
  --stone-light: #f7f4ed;
  --stone-deep: #dcd6c8;
  --ink: #17223b;
  --ink-soft: #445069;
  --olive: #5c5b2e;
  --ember: #a83c1a;
  --ember-deep: #86300f;
  --rule: rgba(23, 34, 59, 0.22);
  --rule-strong: rgba(23, 34, 59, 0.55);

  /* slate: the Solutions ground */
  --slate: #131b2f;
  --slate-lift: #1b2540;
  --on-slate: #ece8df;
  --on-slate-soft: #b1b7c6;
  --olive-light: #c9c58e;
  --ember-light: #ee9068;
  --rule-slate: rgba(236, 232, 223, 0.16);

  /* the game's own sheet */
  --vellum: #ecdfb8;
  --vellum-light: #f6efd8;
  --vellum-ink: #33261a;
  --vellum-soft: #5d4a33;
  --sepia: #8a6d3b;
  --rust: #8c2f1f;
  --rust-deep: #6e2216;

  --serif: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

  --fs-label: 0.8rem;
  --fs-small: 1rem;
  --fs-body: 1.2rem;
  --fs-lede: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h3: 1.4rem;
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  --fs-h1: clamp(2.7rem, 1.2rem + 6.4vw, 5.8rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 78rem;
  --section: clamp(4rem, 9vw, 7.5rem);

  /* grain: a small turbulence tile drawn by the browser, no file */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .13  0 0 0 0 .22  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-warm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The whole sheet scales gently with the window, so a 3440 wide screen gets a larger page, not a narrow column:
   16px at 1280 wide, about 18.7px at 1920, capped at 24px from 3190 up. */
html { font-size: clamp(100%, 0.42vw + 10.6px, 150%); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background-color: var(--stone);
  background-image: var(--grain);
  font-family: var(--serif); font-size: var(--fs-body); line-height: 1.5; font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
cite { font-style: italic; }
a { color: var(--ember); text-decoration-color: rgba(168, 60, 26, 0.45); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ember-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(168, 60, 26, 0.2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 0.5rem 1rem; background: var(--stone-light); border: 1px solid var(--ink); color: var(--ink); }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* the small spaced capitals of the old logo's second line */
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin: 0 0 1.4em; line-height: 1.4; font-variant-numeric: lining-nums; }
.lede { font-size: var(--fs-lede); line-height: 1.4; color: var(--ink-soft); max-width: 34em; }

/* ---------- the mark: the smith of the original logo, as a mask so it takes the ink of its ground ---------- */
.mark { display: inline-block; flex: none; width: 1.72em; aspect-ratio: 530 / 770; background-color: currentColor;
  -webkit-mask: url('../img/smith.svg') center / contain no-repeat; mask: url('../img/smith.svg') center / contain no-repeat; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em; min-height: 3rem; padding: 0.6em 1.5em;
  font: inherit; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none;
  color: var(--stone-light); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { color: #fff; background: #0e1629; border-color: #0e1629; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-rust { background: var(--rust); border-color: var(--rust); color: var(--vellum-light); }
.btn-rust:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: #fff; }
.btn-light { background: var(--on-slate); border-color: var(--on-slate); color: var(--slate); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--slate); }

.link-arrow { font-size: 1.1rem; color: var(--ink); text-decoration-color: var(--rule-strong); padding-block: 0.6em; }
.link-arrow::after { content: '\2192'; display: inline-block; margin-left: 0.4em; transition: transform 0.18s ease; }
.link-arrow:hover { color: var(--ember-deep); }
.link-arrow:hover::after { transform: translateX(0.2em); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.8rem; margin: 2.2rem 0 0; }

/* ---------- masthead ---------- */
.masthead { padding-block: clamp(1rem, 2.4vw, 1.75rem); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-size: 1.4rem; }
.brand:hover { color: var(--ink); }
.brand-words { display: grid; line-height: 1; }
/* as the old wordmark was set: a full capital, then small capitals */
.brand-name { font-size: 1.05em; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.brand-name::first-letter { font-size: 1.32em; }
.brand-sub { margin-top: 0.3em; font-size: 0.5em; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--olive); }
.masthead nav ul { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.masthead nav a { display: inline-block; padding: 0.6em 0; font-size: 1.05rem; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.45em) / 0 1px no-repeat; transition: background-size 0.2s ease; }
.masthead nav a:hover, .masthead nav a:focus-visible { background-size: 100% 1px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.015em; line-height: 0.98; max-width: 11em; margin-bottom: 0.45em; }
.smith { position: relative; justify-self: center; width: min(15rem, 62%); aspect-ratio: 530 / 770; color: var(--ink); }
.smith-figure { position: absolute; inset: 0; background-color: currentColor;
  -webkit-mask: url('../img/smith.svg') center / contain no-repeat; mask: url('../img/smith.svg') center / contain no-repeat; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark { fill: var(--ember); }
@media (prefers-reduced-motion: no-preference) {
  .spark { animation: spark 3.6s ease-in-out infinite; }
  .spark.s2 { animation-delay: -1.3s; }
  .spark.s3 { animation-delay: -2.4s; }
}
@keyframes spark { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (min-width: 52em) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: clamp(2rem, 6vw, 6rem); }
  .smith { justify-self: end; width: min(100%, 22rem); margin-right: clamp(0rem, 3vw, 3rem); }
}

/* ---------- The Unwritten Coast: a sepia sheet laid on the stone ---------- */
.title-section { padding-bottom: var(--section); }
.sheet {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(1.25rem, 4.5vw, 4rem); color: var(--vellum-ink);
  background-color: var(--vellum);
  background-image: var(--grain-warm), radial-gradient(120% 100% at 30% 0%, var(--vellum-light) 0%, var(--vellum) 60%, #dfcf9f 100%);
  border: 1px solid rgba(138, 109, 59, 0.75);
  outline: 1px solid rgba(138, 109, 59, 0.4); outline-offset: -0.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1.5rem 3rem -1.5rem rgba(23, 34, 59, 0.45), 0 0.2rem 0.5rem rgba(23, 34, 59, 0.12);
}
.sheet-art { position: relative; padding: 0 7% 13% 0; }
.plate { display: block; border: 1px solid rgba(51, 38, 26, 0.6); box-shadow: 0 0.6rem 1.4rem -0.6rem rgba(51, 38, 26, 0.55); background: var(--vellum-light); }
.plate img { width: 100%; }
.plate-inset { position: absolute; right: 0; bottom: 0; width: 50%; border: 0.3rem solid var(--vellum-light); outline: 1px solid rgba(51, 38, 26, 0.6); }
.sheet .label { color: var(--vellum-soft); }
.sheet h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; margin-bottom: 0.55em; }
.sheet-text p { max-width: 32em; }
.sheet a:focus-visible { outline-color: var(--rust); }
.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 1.6rem 0 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(138, 109, 59, 0.55); }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--vellum-soft); }
.facts dd { font-size: 1.15rem; }

@media (min-width: 60em) {
  .sheet { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}

/* ---------- studio note ---------- */
.note { padding-block: 0 var(--section); }
.note-grid { display: grid; gap: 1rem; }
.note-grid > .label { padding-top: 0.75em; border-top: 1px solid var(--rule-strong); align-self: start; }
.note-body { max-width: 36em; }
.note-lead { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); line-height: 1.25; font-style: italic; margin-bottom: 0.9em; }
.note-body p:not(.note-lead) { color: var(--ink-soft); }
.note-sign { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink) !important; margin: 2em 0 0; }
.note-sign::before { content: ''; display: inline-block; width: 2.5em; height: 1px; background: currentColor; vertical-align: middle; margin-right: 1em; }
@media (min-width: 52em) {
  .note-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(2rem, 6vw, 6rem); }
}

/* ---------- Choprock Solutions ---------- */
.solutions { padding-block: var(--section); color: var(--on-slate); background-color: var(--slate);
  background-image: var(--grain), radial-gradient(90% 70% at 85% 0%, var(--slate-lift) 0%, var(--slate) 70%); }
.solutions :focus-visible { outline-color: var(--ember-light); }
.solutions .label { color: var(--olive-light); }
.solutions a:not(.btn) { color: var(--on-slate); text-decoration-color: var(--ember-light); }
.solutions a:not(.btn):hover { color: #fff; }
.solutions-grid { display: grid; gap: 3rem; }
.solutions h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; max-width: 14em; margin-bottom: 0.6em; }
.solutions .lede { color: var(--on-slate-soft); }
.avail { display: flex; align-items: center; gap: 0.7em; margin: 1.8rem 0 1.6rem; font-size: 1.1rem; }
.avail-dot { flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ember-light); box-shadow: 0 0 0 0.25em rgba(238, 144, 104, 0.2); }

.services { counter-reset: service; border-bottom: 1px solid var(--rule-slate); }
.services li { counter-increment: service; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.5rem; padding-block: 1.5rem; border-top: 1px solid var(--rule-slate); }
.services li::before { content: counter(service, decimal-leading-zero); grid-row: span 2; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; color: var(--olive-light); font-variant-numeric: lining-nums tabular-nums; padding-top: 0.35em; }
.services h3 { font-size: var(--fs-h3); margin-bottom: 0.35em; }
.services p { margin: 0; color: var(--on-slate-soft); max-width: 34em; }

.ways { display: grid; gap: 2rem; margin-top: clamp(3rem, 7vw, 5.5rem); }
.ways h3 { font-size: 1.25rem; font-style: italic; font-weight: 500; margin-bottom: 0.4em; color: var(--olive-light); }
.ways p { margin: 0; color: var(--on-slate-soft); max-width: 24em; }
.sample { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--rule-slate); color: var(--on-slate-soft); max-width: 46em; }
.sample strong { color: var(--on-slate); font-weight: 600; }

@media (min-width: 44em) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
}
@media (min-width: 60em) {
  .solutions-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .solutions-head { position: sticky; top: 2.5rem; }
}

/* ---------- contact ---------- */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; gap: 3rem; align-items: end; }
.contact h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; max-width: 12em; margin-bottom: 0.7em; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0; }
.mail { font-size: clamp(1.45rem, 0.9rem + 2.6vw, 2.6rem); font-style: italic; line-height: 1.15; color: var(--ember); text-decoration-thickness: 0.05em; text-underline-offset: 0.16em; overflow-wrap: anywhere; }
.copy { font: inherit; font-size: var(--fs-small); font-weight: 600; min-height: 2.75rem; padding: 0.4em 1.1em; color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); border-radius: 2px; cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease; }
.copy:hover { background: var(--ink); color: var(--stone-light); }
.reasons { display: grid; gap: 1.5rem; }
.reasons > div { padding-top: 1rem; border-top: 1px solid var(--rule-strong); }
.reasons dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.6em; }
.reasons dd { color: var(--ink-soft); max-width: 30em; }
@media (min-width: 60em) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); }
}

/* ---------- footer ---------- */
.foot { padding-block: 2.25rem; font-size: var(--fs-small); color: var(--ink-soft); border-top: 1px solid var(--rule); }
.foot-row { display: grid; gap: 1rem; }
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); }
.foot-brand .mark { font-size: 1.15rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.foot a { display: inline-block; padding-block: 0.35em; color: var(--ink); text-decoration-color: var(--rule-strong); }
.foot a:hover { color: var(--ember-deep); }
@media (min-width: 60em) {
  .foot-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3rem; }
  .foot-note { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.lost-page { min-height: 100vh; min-height: 100svh; display: grid; }
.lost { display: grid; justify-items: center; align-content: center; text-align: center; padding: 3rem var(--gutter); }
.lost .mark-big { font-size: 4.5rem; margin-bottom: 2rem; }
.lost h1 { font-size: var(--fs-h2); margin-bottom: 0.5em; }
.lost .lede { max-width: 26em; }
.lost .cta-row { justify-content: center; margin-bottom: 2.5rem; }
.lost-small { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 30em) {
  .brand { font-size: 1.15rem; gap: 0.5rem; }
  .brand-sub { display: none; }
  .masthead-row { flex-wrap: nowrap; gap: 0.75rem; }
  .masthead nav a { font-size: 1rem; }
  .masthead nav ul { gap: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body, .solutions, .sheet { background: #fff; color: #000; }
  .solutions .lede, .services p, .ways p, .sample, .solutions .label, .ways h3 { color: #222; }
  .masthead nav, .copy, .sparks, .skip { display: none; }
}
