/* HJKL. A notebook page: pale paper, sepia line, red chalk. */

:root {
  --paper: #f6efdf;
  --paper-edge: #ead9b8;
  --text: #2b2520;
  --muted: #6b5d4f;
  --sepia: #7a5536;
  --chalk: #b4583c;
  --accent: #a0472f;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --fell: "IM Fell English", "EB Garamond", Georgia, serif;
  --max: 72rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 400 19px/1.55 var(--serif); overflow-wrap: break-word;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 60%, rgba(196, 160, 104, 0.18) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed, scroll;
}
a { color: var(--accent); text-underline-offset: 0.18em; }

main, .top, .foot { max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 1.4rem; padding-bottom: 1rem; }
.mark { font-family: var(--fell); font-size: 1.5rem; letter-spacing: 0.12em; color: var(--text); text-decoration: none; }
.top nav a { font-variant: small-caps; letter-spacing: 0.08em; font-size: 1.05rem; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Type */
h1, h2 { font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 22ch; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 2.1vw, 1.32rem); max-width: 34ch; color: var(--muted); }
.kicker { font-variant: small-caps; letter-spacing: 0.1em; font-size: 1.1rem; color: var(--chalk); margin: 0 0 0.6rem; }

section { padding: 3.5rem 0 4rem; }
.hero { padding-top: 1.5rem; }

/* The drawings: sepia ink and red chalk on the page itself */
.art { margin: 0; }
svg.plate { display: block; width: 100%; height: auto; color: var(--sepia); overflow: visible; }
svg.plate .chalk { color: var(--chalk); }

.hero .art { margin-top: 2rem; }
@media (min-width: 62rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; }
  .hero .art { margin-top: 0; }
  .contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; }
}

.cta { display: inline-block; font-variant: small-caps; letter-spacing: 0.08em; font-size: 1.1rem; color: var(--text);
  text-decoration: none; padding: 0.55rem 1.1rem 0.65rem; border: 1.5px solid var(--text); border-radius: 2px; }
.cta:hover { background: var(--text); color: var(--paper); }

/* Questions */
.questions { border-top: 1px solid var(--paper-edge); }
.ideas { list-style: none; margin: 0.8rem 0 0; padding: 0; max-width: 44rem; }
.ideas li { position: relative; padding: 0.5rem 0 0.5rem 1.7rem; font-size: clamp(1.22rem, 2.5vw, 1.55rem); line-height: 1.3; }
.ideas li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 1rem; border-top: 1.5px solid var(--chalk); }

/* Contact */
.contact { border-top: 1px solid var(--paper-edge); }
.contact p { font-size: 1.3rem; }
.contact .art { margin-top: 1.5rem; }
@media (min-width: 62rem) { .contact .art { margin-top: 0; } }

.foot { font-variant: small-caps; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--muted); padding-top: 1rem; padding-bottom: 2.5rem; }

@media (max-width: 40rem) { body { font-size: 18px; } }
