/* Hallmark custom, Committed. An offline card-memory workbook set in poster-scale Georgia and system sans, with five suit glyphs and ruled paper. */
/* Pre-emit critique: A side-by-side hero put the suit row in competition with the action. The row now sits below the action and stays five across on narrow screens. */
:root {
  color-scheme: light;
  --color-paper: oklch(96% 0.012 85);
  --color-ink: oklch(22% 0.025 157);
  --color-muted: oklch(40% 0.025 157);
  --color-rule: oklch(77% 0.018 85);
  --color-field: oklch(25% 0.043 157);
  --color-field-ink: oklch(96% 0.015 87);
  --color-field-rule: oklch(56% 0.045 157);
  --color-accent: oklch(46% 0.105 44);
  --color-accent-ink: var(--color-paper);
  --color-suit: oklch(82% 0.088 59);
  --color-focus: oklch(44% 0.13 50);
  --color-field-focus: oklch(87% 0.115 76);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --weight-regular: 400;
  --weight-strong: 650;
  --text-small: 0.9375rem;
  --text-body: 1rem;
  --text-lead: clamp(1.125rem, 2vw, 1.375rem);
  --text-title: clamp(2.5rem, 6vw, 4.75rem);
  --text-hero: clamp(3rem, 10vw, 8.5rem);
  --text-study: clamp(1.375rem, 3vw, 2.125rem);
  --text-suit: clamp(2rem, 6vw, 5rem);
  --line-body: 1.6;
  --line-display: 1.04;
  --tracking-display: -0.032em;
  --space-xs: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --gutter: clamp(var(--space-md), 5vw, var(--space-2xl));
  --section-space: clamp(var(--space-xl), 7vw, var(--space-3xl));
  --page-width: 74rem;
  --measure: 62ch;
  --touch: 2.75rem;
  --rule: 1px;
  --focus-width: 2px;
  --focus-gap: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-block-size: 100vh;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
  font-synthesis: none;
}
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--page-width)); margin-inline: auto; }
h1, h2, h3 {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--line-display);
  letter-spacing: var(--tracking-display);
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1, h2 { max-inline-size: 24ch; font-size: var(--text-title); }
h3 { font-size: var(--text-study); }
p { max-inline-size: var(--measure); margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: var(--rule); text-underline-offset: 0.22em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: var(--focus-width); }
:focus-visible { outline: var(--focus-width) solid var(--focus-color, var(--color-focus)); outline-offset: var(--focus-gap); }
.skip {
  position: absolute;
  inset-block-start: var(--space-xs);
  inset-inline-start: var(--gutter);
  z-index: 10;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.site-header { border-block-end: var(--rule) solid var(--color-rule); }
.masthead, .footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-lg);
}
.masthead { padding-block: var(--space-xs); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); }
.brand, nav a, .site-footer a, .email, .action {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--touch);
  max-inline-size: 100%;
}
.brand { font-family: var(--font-display); font-size: var(--text-lead); text-decoration: none; }
.brand:hover { text-decoration: underline; }
nav a, .site-footer { font-size: var(--text-small); }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current='page'] { text-decoration: underline; }
nav a[aria-current='page'] { color: var(--color-accent); }
.hero {
  --focus-color: var(--color-field-focus);
  padding-block: var(--section-space) var(--space-lg);
  background: var(--color-field);
  color: var(--color-field-ink);
}
.hero h1 { max-inline-size: 12ch; font-size: var(--text-hero); }
.hero p { margin-block-start: var(--space-md); font-size: var(--text-lead); }
.action {
  margin-block-start: var(--space-lg);
  padding-inline: var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: var(--weight-strong);
}
.suit-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block-start: clamp(var(--space-xl), 6vw, var(--space-3xl));
  border-block: var(--rule) solid var(--color-field-rule);
  font-family: var(--font-display);
  font-size: var(--text-suit);
  line-height: var(--line-display);
  text-align: center;
}
.suit-line span { padding-block: var(--space-xs); }
.suit-line span + span { border-inline-start: var(--rule) solid var(--color-field-rule); }
.suit-line span:nth-child(3) { color: var(--color-suit); }
.studies, .document { padding-block: var(--section-space); }
.studies > p, .document > p { margin-block-start: var(--space-md); }
.study-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--space-lg);
  margin-block-start: var(--space-xl);
}
.study-list section { border-block-start: var(--rule) solid var(--color-rule); padding-block: var(--space-md) var(--space-lg); }
.study-list p { margin-block-start: var(--space-xs); }
.practice { border-block-start: var(--rule) solid var(--color-rule); padding-block: var(--space-xl) var(--section-space); }
.practice p { margin-block-start: var(--space-md); }
.document section { max-inline-size: var(--measure); margin-block-start: var(--space-xl); }
.document section h2 { font-size: var(--text-study); }
.document section p { margin-block-start: var(--space-xs); }
.email { margin-block-start: var(--space-md); color: var(--color-accent); }
.site-footer { border-block-start: var(--rule) solid var(--color-rule); padding-block: var(--space-md); color: var(--color-muted); }
@media (max-width: 45rem) {
  .study-list { grid-template-columns: minmax(0, 1fr); }
}
