/* jacobkutz.com — site styles. No build step; edit directly. */

/* Fonts are self-hosted: Latin subset, one variable-weight file each. Every page preloads both. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --white: #fffdf9;
  --ink: #1b2430;
  --ink-2: #4b5563;
  --line: #d8d0c2;
  --accent: #b4552a;
  --accent-ink: #8c3e1b;
  --lake: #2f5d6b;
  --lake-soft: #dbe6e9;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 14px 34px -18px rgba(27, 36, 48, .28);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; padding-block: 1.1rem;
}
.brand { text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: .7rem; }
.brand__name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.brand__place { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); font-weight: 600; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
@media (max-width: 720px) {
  .brand__place { display: none; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: .1rem 1.1rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.45rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.eyebrow {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 600; color: var(--accent-ink); margin: 0 0 1rem;
}

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { max-width: 720px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; }
}

/* The hero runs text-only for now. .hero__grid, .hero__media and .portrait are kept for the portrait (see README). */
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Page bottom spacing: the footer always sits at the bottom of the window, even on short pages.
   Inner pages get a little room before it; pages that end on a full-width band sit flush. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
main.main--flush { padding-bottom: 0; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem); }
.band { background: var(--white); border-block: 1px solid var(--line); }
.band--soft { background: var(--paper-2); }
.note { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 0; }
.note h2 { font-size: 1.6rem; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }

.intro h2 { margin-bottom: .5em; }
.intro p:not(.eyebrow) { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.band .card { box-shadow: none; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--lake-soft); color: var(--lake);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h2 { font-size: 1.35rem; line-height: 1.25; }
.card h2, .card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); margin-bottom: 1rem; flex: 1; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* Page head (inner pages) */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .4em; }
.page-head .lead { max-width: 720px; margin: 0; }

/* Long-form */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose blockquote {
  margin: 2rem 0; padding: 1.25rem 1.6rem; border-left: 4px solid var(--accent);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.45; color: var(--ink);
}
.prose blockquote p { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts {
  position: sticky; top: 1.5rem; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.facts h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .95rem; }
.facts dt { color: var(--ink-2); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd a { font-weight: 600; }

.callout {
  background: var(--lake-soft); border-left: 4px solid var(--lake);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0;
}
.callout p:last-child { margin: 0; }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.post-list li { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.post-list time { font-size: .88rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.post-list h2 { font-size: 1.5rem; margin: .4rem 0 .4rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent-ink); text-decoration: underline; }
.post-meta { font-size: .9rem; color: var(--ink-2); margin-bottom: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card p { flex: initial; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-sans); font-weight: 600; color: var(--ink-2); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-brand .brand__name { font-size: 1.6rem; }
.footer-brand p { color: var(--ink-2); max-width: 36ch; margin-top: .6rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* 404 */
.center { text-align: center; }
.center .btn-row { justify-content: center; }
