/* Ryan Sasson — personal site
   Warm paper, ink, one accent. Operator, not product landing. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #1c1a16;
  --ink-soft: #4a463e;
  --muted: #6e685e;
  --rule: #d4cdc0;
  --accent: #6b3a22;
  --accent-hover: #4e2918;
  --focus: #1c1a16;
  --error: #8a2a1a;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
  --page: 72rem;
  --space: 1.25rem;
}

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

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.site-header {
  padding: 1.75rem 0 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

main {
  padding: 3.25rem 0 4.5rem;
  min-height: 62vh;
}

.lede,
.prose {
  max-width: var(--measure);
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
}

h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 4.2vw, 3.05rem);
}

h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.45rem;
}

h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1.18rem;
}

.lede p,
.prose p {
  margin: 0 0 1.05rem;
}

.lede p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.lede .statement {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.muted {
  color: var(--ink-soft);
}

.home-notes {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  max-width: 42rem;
}

.home-notes h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.note-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.note-list a {
  display: block;
  padding: 1.05rem 0;
  color: var(--ink);
  text-decoration: none;
}

.note-list a:hover .note-title {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.note-list time,
.meta time {
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: oldstyle-nums;
}

.note-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.note-dek {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.meta {
  margin: -0.35rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hypothetical {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
}

.hypothetical p {
  margin: 0;
}

.hypothetical .label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.empty {
  max-width: var(--measure);
}

.form {
  max-width: 28rem;
  margin-top: 1.6rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.req {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b9b2a4;
  border-radius: 2px;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
}

input:hover,
textarea:hover {
  border-color: #8f8778;
}

textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[type="submit"] {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.15rem;
  border-radius: 2px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #2e2b26;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 100%;
  }

  .wrap {
    width: min(100% - 1.6rem, var(--page));
  }

  main {
    padding: 2.25rem 0 3.25rem;
  }

  .note-list a {
    padding: 0.95rem 0;
  }
}

.prose ol,
.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.signoff {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.note-foot {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  font-size: 0.95rem;
}

/* Teaching layout: start here path and numbered guides */
.home-lede p:not(.statement) {
  color: var(--ink-soft);
}

.start-here {
  margin-top: 2.5rem;
  padding: 1.5rem 1.6rem 1.4rem;
  max-width: 42rem;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
}

.start-here h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

.start-list {
  margin: 0;
  padding-left: 1.3rem;
}

.start-list li {
  padding-left: 0.3rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}

.start-list li + li {
  margin-top: 0.8rem;
}

.start-list li::marker {
  color: var(--accent);
  font-weight: 600;
}

.start-list a {
  color: var(--ink);
}

.step-note {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.guide-list a {
  position: relative;
  padding-left: 3rem;
}

.guide-num {
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}

.small-contact {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: var(--measure);
}

.prose .opening {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
