/* jansquilts.net — Organic design-system tokens plus the site's own rules.
   Fonts (Caprasimo, Figtree) are loaded by a <link> in each page's <head>. */

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  /* Photo treatment. "none" shows the artwork in true color. For the design system's
     washed look (true color on hover), use: saturate(0.6) contrast(0.85) brightness(1.1) */
  --photo-filter: none;

  --pad: clamp(20px, 5vw, 56px);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 400;
  line-height: 1.12; letter-spacing: -0.015em; margin: 0;
}
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-600); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
button { font: inherit; }

.wrap { max-width: 1320px; margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 10px 18px;
  border-radius: 999px; background: var(--color-text); color: var(--color-bg);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; color: var(--color-bg); }

.photo { filter: var(--photo-filter); transition: filter .5s ease; }
.photo:hover { filter: none; }
.cover { width: 100%; height: 100%; object-fit: cover; }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.pill-tag {
  padding: 6px 14px; border-radius: 999px;
  background: var(--color-accent-2-100); color: var(--color-accent-2-800);
  font-size: 13px; font-weight: 700;
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 17px;
  color: var(--color-accent-700); text-decoration: none;
}

/* — header — */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding: 24px var(--pad);
}
.brand {
  display: flex; align-items: center; gap: 22px; margin-right: auto;
  font-family: var(--font-heading); font-size: 24px;
  color: var(--color-text); text-decoration: none;
}
.brand:hover { color: var(--color-text); }
.brand-mark {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--color-accent); box-shadow: 12px 0 0 var(--color-accent-2-400);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--color-text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--color-accent-700); }

/* — footer — */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px 32px; margin: 0 clamp(8px, 1.5vw, 16px) 16px;
  padding: 40px clamp(24px, 4vw, 44px); border-radius: 44px;
  background: var(--color-accent-2-800); color: var(--color-accent-2-100);
}
.footer-text { display: flex; flex-direction: column; gap: 8px; }
.footer-thanks { font-family: var(--font-heading); font-size: 30px; color: var(--color-neutral-100); }
.footer-note { font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.footer-nav a { color: var(--color-accent-2-100); text-decoration: none; }
.footer-nav a:hover { color: var(--color-neutral-100); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px;
  border-radius: 999px; font-family: var(--font-heading); font-size: 18px;
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border: 1.5px solid var(--color-divider); color: var(--color-text); }
.btn-secondary:hover { background: var(--color-surface); color: var(--color-text); }

/* — home: hero — */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 40px; align-items: center; padding: 12px var(--pad) 88px;
}
.hero-text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { font-size: clamp(60px, 8vw, 100px); line-height: .96; letter-spacing: -.025em; }
.hero-tagline {
  font-family: var(--font-heading); font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  color: var(--color-accent-700); max-width: 13em;
}
.hero-intro {
  font-size: 19px; line-height: 1.6; max-width: 31em;
  color: var(--color-neutral-800); text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.hero-art {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 580;
  justify-self: center;
}
.hero-disc {
  position: absolute; right: 0; top: 0; width: 93%; aspect-ratio: 1;
  border-radius: 50%; background: var(--color-accent-2-300);
}
.hero-main {
  position: absolute; right: 4.6%; top: 5%; width: 87.5%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
}
.hero-main img { object-position: 38% 50%; }
.hero-inset {
  position: absolute; left: 0; bottom: 0; width: 39%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 10px solid var(--color-bg);
}
.hero-badge {
  position: absolute; right: 2%; bottom: 8%; display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; background: var(--color-bg);
  box-shadow: var(--shadow-md); font-size: 14px;
}
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--color-accent); }

/* — home: craft cards — */
.home-section { padding: 0 var(--pad) 88px; }
.home-section > h2 {
  font-size: clamp(38px, 5vw, 52px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 32px; max-width: 12em;
}
.craft-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px;
}
.craft-card {
  display: flex; flex-direction: column; gap: 20px; padding: 14px 14px 30px;
  border-radius: 40px; background: var(--color-surface); color: var(--color-text);
  text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.craft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--color-text); }
.craft-card-img { aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; }
.craft-card-body { display: flex; flex-direction: column; gap: 8px; padding: 0 14px; }
.craft-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.craft-card h3 { font-size: 36px; }
.craft-card-years { font-size: 14px; font-weight: 700; color: var(--color-accent-700); }
.craft-card p { font-size: 16px; line-height: 1.55; color: var(--color-neutral-800); }

/* — home: most recent — */
.recent { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 0 var(--pad) 88px; }
.recent-text {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start; padding-top: 8px;
}
.recent-text h2 { font-size: 44px; line-height: 1.05; letter-spacing: -.02em; }
.recent-text p { font-size: 16px; line-height: 1.6; color: var(--color-neutral-800); }
.recent-grid {
  flex: 3 1 560px; min-width: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px;
}

/* — tiles (recent pieces, chapter rows) — */
.tile { display: flex; flex-direction: column; gap: 12px; color: var(--color-text); text-decoration: none; }
.tile:hover { color: var(--color-accent-700); }
.tile-img { border-radius: 32px; overflow: hidden; background: var(--color-surface); }
.tile-img.square { aspect-ratio: 1 / 1; }
.tile-caption {
  padding: 0 8px; display: flex; flex-direction: column; gap: 2px;
  font-size: 14px; color: var(--color-neutral-700);
}
.recent .tile-caption { padding: 0 6px; }
.recent .tile-title { line-height: inherit; }
.tile-title { font-family: var(--font-heading); font-size: 21px; line-height: 1.15; color: var(--color-text); }
.tile:hover .tile-title { color: var(--color-accent-700); }

/* — home: studio card — */
.home-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px; padding: 0 var(--pad) 64px;
}
.studio-card {
  display: flex; flex-wrap: wrap; gap: 28px 32px; align-items: center; padding: 36px;
  border-radius: 44px; background: var(--color-accent-2-200);
}
.studio-photo { width: 190px; height: 190px; flex: none; border-radius: 50%; overflow: hidden; }
.studio-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.studio-text .kicker { color: var(--color-accent-2-800); }
.studio-text h3 { font-size: 32px; line-height: 1.1; }
.studio-text p { font-size: 16px; line-height: 1.6; color: var(--color-accent-2-900); }

/* — craft page: intro — */
.craft-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 56px; align-items: end; padding: 20px var(--pad) 48px;
}
.craft-intro-title { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.craft-intro h1 { font-size: clamp(68px, 10vw, 128px); line-height: .92; letter-spacing: -.03em; }
.craft-intro p { font-size: 19px; line-height: 1.65; color: var(--color-neutral-800); text-wrap: pretty; }

/* — technique cards (craft page and piece page) — */
.techniques { padding: 0 var(--pad) 16px; }
.techniques > .kicker { display: block; margin-bottom: 16px; }
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px;
}
.tech-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 22px;
  border-radius: 36px; background: var(--color-surface); color: var(--color-text);
  text-decoration: none;
}
.tech-card:hover { background: var(--color-accent-100); color: var(--color-text); }
.tech-card-img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; }
.tech-card-title { font-family: var(--font-heading); font-size: 21px; line-height: 1.15; }
.tech-card-names { font-size: 14px; line-height: 1.45; color: var(--color-neutral-700); }

/* — chapters — */
.chapter { scroll-margin-top: 16px; }
.chapter .kicker { letter-spacing: .1em; }
.chapter-row { display: flex; flex-direction: column; gap: 28px; padding: 80px var(--pad) 24px; }
.chapter-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px 56px; align-items: end;
}
.chapter-head-title { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.chapter-row h2 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; }
.chapter-head p { font-size: 18px; line-height: 1.65; color: var(--color-neutral-800); text-wrap: pretty; }
.piece-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 32px 20px; align-items: end;
}

.tone-peach { --band-bg: var(--color-accent-200); --band-fg: var(--color-accent-900); --band-kick: var(--color-accent-800); }
.tone-sage { --band-bg: var(--color-accent-2-200); --band-fg: var(--color-accent-2-900); --band-kick: var(--color-accent-2-800); }
.tone-sand { --band-bg: var(--color-surface); --band-fg: var(--color-text); --band-kick: var(--color-accent-700); }
.chapter-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px 56px; align-items: center; margin: 72px clamp(8px, 1.5vw, 16px) 0;
  padding: clamp(32px, 5vw, 64px); border-radius: 48px;
  background: var(--band-bg); color: var(--band-fg);
}
.band-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.band-text .kicker { color: var(--band-kick); }
.chapter-band h2 { font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; color: var(--band-fg); }
.band-text p { font-size: 18px; line-height: 1.65; max-width: 30em; text-wrap: pretty; }
.band-rest { display: flex; flex-wrap: wrap; gap: 16px 14px; padding-top: 10px; }
.band-rest a {
  width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--band-fg); text-decoration: none; text-align: center;
  font-size: 13px; font-weight: 600; line-height: 1.25;
}
.band-rest a:hover { opacity: .8; color: var(--band-fg); }
.band-rest-img {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 4px var(--color-bg);
}
.band-art {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 440; justify-self: center;
}
.band-lead {
  position: absolute; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: block;
}
.band-lead.first { left: 0; top: 0; width: 74%; }
.band-lead.second { right: 0; bottom: 0; width: 48%; border: 10px solid var(--band-bg); }
.band-label {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; background: var(--color-bg); color: var(--color-text);
  font-size: 13px; font-weight: 700;
}
.band-lead.second .band-label { bottom: 10%; padding: 4px 10px; font-size: 12px; }
@media (max-width: 640px) {
  /* small circles: let long titles wrap instead of being clipped by the circle */
  .band-label {
    white-space: normal; width: max-content; max-width: 54%;
    text-align: center; line-height: 1.3; border-radius: 16px;
  }
  .band-lead.second .band-label { max-width: 72%; }
}
.craft-end { height: 64px; }

/* — piece page — */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 4px var(--pad) 20px; font-size: 14px; font-weight: 700;
}
.crumbs a { color: var(--color-accent-700); text-decoration: none; }
.crumbs a:hover { color: var(--color-accent-600); }
.crumbs .sep { color: var(--color-neutral-500); }
.crumbs [aria-current] { color: var(--color-neutral-700); }
.piece-main { display: flex; flex-wrap: wrap; gap: 36px 56px; padding: 0 var(--pad) 48px; }
.stage {
  flex: 1.4 1 480px; min-width: 0; height: clamp(360px, 66vh, 680px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 3vw, 36px); border-radius: 48px; background: var(--color-surface);
}
.stage img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 12px; box-shadow: var(--shadow-md);
}
.piece-info {
  flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px;
  align-items: flex-start; padding-top: 6px;
}
.piece-pos-row {
  display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: 16px;
}
.piece-pos { font-size: 14px; font-weight: 700; color: var(--color-neutral-700); }
.round-btns { display: flex; gap: 8px; }
.round-btn {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%;
}
.round-btn.prev { border: 1.5px solid var(--color-divider); color: var(--color-text); }
.round-btn.prev:hover { background: var(--color-surface); color: var(--color-text); }
.round-btn.next { background: var(--color-accent); color: var(--color-bg); }
.round-btn.next:hover { background: var(--color-accent-600); color: var(--color-bg); }
.piece-info h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px; background: var(--color-surface);
  font-size: 14px; font-weight: 700;
}
.chip.tech { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.story { font-size: 18px; line-height: 1.65; color: var(--color-neutral-800); text-wrap: pretty; }
.old-caption {
  align-self: stretch; display: flex; flex-direction: column; gap: 6px;
  padding: 16px 20px; border-radius: 24px; background: var(--color-neutral-100);
}
.old-caption-text { font-size: 15px; line-height: 1.5; color: var(--color-neutral-900); }
.detail-toggle {
  display: flex; align-items: center; gap: 16px; padding: 8px 22px 8px 8px;
  border-radius: 999px; border: none; background: var(--color-surface); color: var(--color-text);
  cursor: pointer; text-align: left;
}
.detail-toggle[hidden] { display: none; }
.detail-toggle:hover { background: var(--color-accent-100); }
.detail-thumb { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; }
.detail-label { font-family: var(--font-heading); font-size: 18px; }

.more-in { padding: 0 var(--pad) 56px; }
.more-in > .kicker { display: block; margin-bottom: 16px; }
.filmstrip { display: flex; gap: 12px; overflow-x: auto; padding: 8px 6px 10px; }
.film-thumb {
  flex: none; display: block; width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  opacity: .7; transition: opacity .2s ease;
}
.film-thumb:hover { opacity: 1; }
.film-thumb[aria-current] {
  opacity: 1; box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 6px var(--color-accent);
}
.more-tech { padding: 0 var(--pad) 64px; }
.more-tech-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.more-tech-head h2 { font-size: clamp(34px, 4vw, 44px); line-height: 1.05; }

@media (prefers-reduced-motion: reduce) {
  .photo, .craft-card, .film-thumb { transition: none; }
  .craft-card:hover { transform: none; }
}
