/* jaketaplin.art
   Plain CSS, no build step, no dependencies.
   The look: charcoal on natural laid paper, with red chalk as the one accent. */

/* ── Fonts (self-hosted, latin subset) ─────────────────────────── */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --paper:      #D6CEBB;  /* unbleached laid stock */
  --paper-lit:  #F7F3E9;  /* chalk / the light end of the value scale */
  --ink:        #14110C;  /* charcoal */
  --ink-soft:   #423A2E;
  --ink-hair:   rgba(20, 17, 12, .30);
  --sanguine:   #7E3524;  /* red chalk, the one accent */
  --sanguine-lit: #C9835F; /* the same accent, legible on charcoal */

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;

  --measure: 30rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ── The sheet ─────────────────────────────────────────────────── */
/* The paper is one baked tile: grain, laid lines, and chain lines all live in
   paper.webp (see tools/make-paper-texture.py). One soft highlight on top,
   because it is the one thing a repeating tile can never give you. */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(75% 60% at 20% 12%, rgba(253, 250, 243, .22), transparent 72%),
    url('/paper.webp');
  background-size: auto, 384px 384px;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed;

  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}

.sheet {
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

/* ── Identity ──────────────────────────────────────────────────── */
.handle {
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sanguine);
  margin: 0 0 1.2rem;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.018em;
  margin: 0 0 1.5rem;
  /* the way a mark on toned paper catches light from the upper left */
  text-shadow: -1px -1px 0 rgba(247, 243, 233, .55);
}

/* The value scale every academic drawing is built on, dark to light.
   It doubles as the rule under the name. */
.values {
  display: flex;
  height: .5rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 0 1.9rem;
  box-shadow: 0 0 0 1px rgba(20, 17, 12, .18);
}
.values span { flex: 1; }

.bio {
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: var(--measure);
}
.bio a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sanguine);
  padding-bottom: 1px;
  transition: color .4s ease, background-color .4s ease;
}
.bio a:hover, .bio a:focus-visible {
  color: var(--sanguine);
  background-color: rgba(247, 243, 233, .5);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  font-size: .875rem;
}
.socials a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-hair);
  padding-bottom: 1px;
  transition: color .4s ease, border-color .4s ease;
}
.socials a:hover, .socials a:focus-visible {
  color: var(--sanguine);
  border-bottom-color: var(--sanguine);
}

/* ── Where to go ───────────────────────────────────────────────── */
.routes { display: flex; flex-direction: column; gap: .75rem; }

.route {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: rgba(247, 243, 233, .46);
  border: 1px solid var(--ink-hair);
  padding: 1.05rem 1.2rem;
  transition: background-color .4s ease, border-color .4s ease,
              transform .4s cubic-bezier(.22, 1, .36, 1);
}
.route:hover, .route:focus-visible {
  background: rgba(247, 243, 233, .82);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.route .t {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.route .arrow {
  font-family: var(--ui);
  font-size: .95rem;
  color: var(--sanguine);
  transition: transform .4s ease;
}
.route:hover .arrow, .route:focus-visible .arrow { transform: translateX(3px); }
.route .d {
  display: block;
  margin-top: .35rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.route.lead {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-lit);
  padding: 1.35rem 1.2rem;
}
.route.lead:hover, .route.lead:focus-visible { background: #221D16; border-color: #221D16; }
.route.lead .t { font-size: 1.6rem; }
.route.lead .d { color: #CFC6B5; }
.route.lead .arrow { color: var(--sanguine-lit); }
.route.lead .flag {
  display: block;
  font-family: var(--ui);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sanguine-lit);
  margin-bottom: .55rem;
}

.note { margin: 1.35rem 0 0; font-size: .875rem; color: var(--ink-soft); }
.note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-hair);
  transition: color .4s ease, border-color .4s ease;
}
.note a:hover, .note a:focus-visible { color: var(--sanguine); border-bottom-color: var(--sanguine); }

/* ── Contact page ──────────────────────────────────────────────── */
.page { width: 100%; max-width: 34rem; margin: 0 auto; }

.back {
  display: inline-block;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .4s ease;
}
.back:hover, .back:focus-visible { color: var(--sanguine); }

.page h1 { font-size: clamp(2.25rem, 6.5vw, 3.25rem); margin-bottom: 1.1rem; }
.page .bio { margin-bottom: 2.25rem; }

form { display: flex; flex-direction: column; gap: 1.15rem; }

label {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}

input, textarea {
  width: 100%;
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--ink);
  background: rgba(247, 243, 233, .46);
  border: 1px solid var(--ink-hair);
  border-radius: 0;
  padding: .75rem .85rem;
  transition: background-color .3s ease, border-color .3s ease;
}
input:hover, textarea:hover { border-color: rgba(20, 17, 12, .45); }
input:focus, textarea:focus {
  outline: none;
  background: rgba(247, 243, 233, .82);
  border-color: var(--ink);
}
textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }

button {
  align-self: flex-start;
  font-family: var(--ui);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper-lit);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: .85rem 1.6rem;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease;
}
button:hover, button:focus-visible { background: #221D16; }
button[disabled] { opacity: .55; cursor: default; }

.status { font-size: .9375rem; line-height: 1.6; margin: 0; min-height: 1.4rem; }
.status[data-state='error'] { color: var(--sanguine); }
.status[data-state='sent'] { color: var(--ink); }

.sent-note {
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ── Floor ─────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 46rem) {
  body { align-items: flex-start; }
  .sheet { grid-template-columns: 1fr; }
}

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