/* InkChowk — static site styles. No build step. */
:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d4;
  --ink: #1c1712;
  --ink-soft: #4a433b;
  --rule: #d4caba;
  --seal: #8c2a1b;
  --seal-dark: #6d2014;
  --moss: #2f4a3c;
  --card: #fffaf3;
  --shadow: 0 1px 0 rgba(28, 23, 18, 0.06);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 68rem;
  --text: 40rem;
  --radius: 0.4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.45), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--seal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--seal); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.nav-toggle-label:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.prose { width: min(100%, var(--text)); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  height: 2.15rem;
  width: auto;
}

.nav-toggle { position: absolute; left: -9999px; }

.nav-toggle-label {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--card);
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 1.25rem 2px;
  background-position: center 0.72rem, center 1.2rem, center 1.68rem;
  cursor: pointer;
  position: relative;
}

.nav-toggle-label span { display: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--seal);
}

/* Hero */
.hero {
  padding: 4.25rem 0 3.25rem;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 0.85rem;
}

.hero h1,
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.note {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--seal);
  color: #fbf6ef;
}

.btn-primary:hover {
  background: var(--seal-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Sections */
.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.section h2,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

.section p:last-child,
.card p:last-child { margin-bottom: 0; }

/* Cards / columns */
.columns {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.card ol,
.card ul,
.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.card ol li,
.steps li,
.prose ol li,
.prose ul li { margin: 0.4rem 0; }

.steps { padding-left: 1.3rem; }

/* Callouts */
.callout {
  background: var(--paper-deep);
  border-left: 3px solid var(--seal);
  padding: 1rem 1.15rem;
  margin: 1.4rem 0 0;
  border-radius: 0 0.4rem 0.4rem 0;
}

.callout-moss { border-left-color: var(--moss); }

.callout strong { display: block; margin-bottom: 0.25rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 32rem;
}

th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--paper-deep);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

td.num, th.num { text-align: right; white-space: nowrap; }

/* Form placeholder */
.signup {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed #b9a893;
  border-radius: 0.6rem;
  background: var(--card);
}

.signup h2 { margin-top: 0; }

.form-slot {
  margin-top: 1rem;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}

/* Page intro */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.page-hero .lede { margin-bottom: 0; }

/* Legal pages */
.legal h2 { margin-top: 2.25rem; }
.legal h2:first-child { margin-top: 0; }

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin: 0.25rem 0; }

.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}

/* Helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle-label { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1rem 1rem;
  }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li { border-top: 1px solid var(--rule); }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.15rem;
  }

  .hero { padding: 2.6rem 0 2.2rem; }
  .section { padding: 2.4rem 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  table { min-width: 26rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
