/* mandy's notes ♡ — design system
   The Bread Report's light look: cream paper, Fraunces with a caramel-italic accent,
   white pills with beige borders, big soft corners, one dark feature card,
   and bright butter / blue / cream / pistachio pastels doing the talking. */

:root {
  /* surfaces */
  --cream: #FFFCF6;
  --card: #FFFFFF;
  --border: #EAE0CF;
  --border-strong: #DCCFB8;

  /* ink */
  --espresso: #2B2523;
  --cocoa: #6B4A3D;
  --muted: #6B605A;
  --wine: #8A5A3B;          /* accent word color — caramel brown (her pick) */

  /* pastels */
  --butter: #FCE594;          /* the one butter yellow — used everywhere */
  --butter-hover: #F8DA74;
  --butter-soft: var(--butter);
  --oat: #F8EBD2;             /* creamy */
  --oat-soft: #FBF4E6;
  --caramel: #C99A6B;
  --blue: #D3E9F8;
  --blue-soft: #E9F4FC;
  --blue-deep: #A9D0EC;
  --pistachio: #E0EDC5;
  --pistachio-deep: #C2D99A;

  /* the dark chocolate-brown feature card */
  --night: #3F2A22;
  --night-chip: #523A30;
  --night-muted: #D9CCC3;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-script: "Over the Rainbow", "Bradley Hand", cursive;

  /* shape & rhythm */
  --gutter: 20px;
  --radius-lg: 30px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --heading-size: 1.9rem;   /* every page + section heading shares this */
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--wine);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}
main:focus { outline: none; }

h1, h2, h3 { margin: 0; font-weight: 600; font-optical-sizing: auto; }
.accent { font-style: italic; font-weight: 500; color: var(--wine); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-size: .9em; background: var(--butter-soft); padding: .05em .35em; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 720px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.hrt { font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", var(--font-body); font-weight: 400; font-style: normal; color: var(--caramel); }

/* preview-only markers */
.preview-wrap { padding-top: 16px; }
.preview-banner {
  display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--espresso);
  background: var(--butter); padding: 8px 16px; border-radius: var(--radius-pill);
}
.draft-tag {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 6px;
  font: 600 .6875rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--cocoa); background: var(--pistachio); padding: 5px 9px; border-radius: var(--radius-pill);
}
.draft-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.preview-banner .draft-tag { margin: 0 2px; background: rgba(255, 255, 255, .6); }

/* ------------------------------------------------ header */

.site-header { padding: 24px 0 4px; }
.header-inner { display: flex; flex-direction: column; gap: 18px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; align-self: flex-start; }
.brand:focus-visible { border-radius: 14px; }
.byline {
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 2.75rem; line-height: 1;
  letter-spacing: -.025em; color: var(--espresso);
}
.wordmark .hrt { font-size: .5em; vertical-align: .3em; margin-left: 4px; }
.tagline {
  font-family: var(--font-script); font-weight: 400; font-size: min(1.15rem, 4.3vw); line-height: 1.35;
  color: var(--cocoa); margin-top: 8px; padding-left: 2px; white-space: nowrap;
}

/* nav as a soft segmented track, like the bread report's theme switch */
.site-nav ul {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill);
  background: #F3ECDE;
}
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover { color: var(--espresso); background: rgba(255, 255, 255, .55); }
.site-nav a[aria-current="page"] { color: var(--espresso); background: var(--card); box-shadow: 0 1px 2px rgba(43, 37, 35, .08); }

@media (min-width: 720px) {
  :root { --heading-size: 2.25rem; }
  .site-header { padding-top: 36px; }
  .header-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .wordmark { font-size: 3.6rem; }
  .tagline { font-size: 1.3rem; }
}

/* ------------------------------------------------ shared pieces */

.section { margin-top: 60px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-title { /* same treatment as the "mandy's notes" wordmark, one step smaller */
  font-family: var(--font-display); font-weight: 600; font-size: var(--heading-size); line-height: 1.05; letter-spacing: -.025em;
  color: var(--espresso); margin-bottom: 20px;
}
.section-title .hrt { font-size: .5em; vertical-align: .3em; margin-left: 4px; }
.script-heading { font-family: var(--font-script); font-weight: 400; font-size: 1.5rem; line-height: 1.35; color: var(--cocoa); }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.page-head { padding: 32px 0 8px; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: var(--heading-size); line-height: 1.05; letter-spacing: -.025em; }
.page-intro { margin-top: 14px; color: var(--muted); max-width: 38em; font-size: 1.0625rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.text-link:hover { color: var(--espresso); text-decoration: underline; }

/* white pill with a beige border — the "Refresh" button */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 22px; border-radius: var(--radius-pill); border: 2px solid var(--border);
  background: var(--card); color: var(--espresso); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { border-color: var(--border-strong); background: #FFFDF8; }
.pill-butter { background: var(--butter); border-color: var(--butter); }
.pill-butter:hover { background: var(--butter-hover); border-color: var(--butter-hover); }
.pill-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.pill-quiet:hover { background: rgba(255, 255, 255, .6); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px;
  padding: 12px 24px; border-radius: var(--radius-pill); text-decoration: none;
  font-size: .9375rem; font-weight: 600; border: 2px solid transparent; background: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { background: #443A36; }
.btn-primary .hrt, .btn-primary .accent { color: var(--butter); }
.btn-ghost { border-color: var(--border); color: var(--espresso); background: var(--card); font-weight: 500; }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-ghost[aria-pressed="true"] { background: var(--butter); border-color: var(--butter); }
.btn-ghost[aria-pressed="true"] .icon path { fill: currentColor; }
.btn-pending { background: var(--card); color: var(--muted); border: 2px dashed var(--border-strong); cursor: default; }

.chip {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--radius-pill); color: var(--espresso); background: var(--oat);
}
.chip-blue { background: var(--blue); }
.chip-butter { background: var(--butter); }
.chip-oat { background: var(--oat); }
.chip-pistachio { background: var(--pistachio); }

.empty { padding: 36px 24px; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius-lg); color: var(--muted); background: var(--card); }
.empty p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--espresso); }
.empty-sub { margin-top: 6px; font-size: .9375rem; color: var(--muted); }

/* ------------------------------------------------ search */

.find { padding-top: 26px; }
.search {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { border-color: var(--caramel); box-shadow: 0 0 0 4px var(--oat-soft); }
.search > .icon { color: var(--muted); width: 1.25em; height: 1.25em; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem;
  color: var(--espresso); padding: 10px 0; outline: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { filter: sepia(1) saturate(.6) opacity(.6); }
.search input:focus-visible { box-shadow: none; }
.search-btn {
  flex: none; border: 0; border-radius: var(--radius-pill); background: var(--espresso); color: var(--cream);
  padding: 0 20px; min-height: 44px; font-size: .9375rem; font-weight: 600;
}
.search-btn { transition: background-color .15s var(--ease), color .15s var(--ease); }
.search-btn:hover, .search-btn:active, .search-btn:focus-visible { background: var(--butter); color: var(--night); }
.search-btn .icon { display: none; }
@media (max-width: 479px) {
  .search { padding: 5px 5px 5px 13px; gap: 6px; }
  .search > .icon { width: 1.1em; height: 1.1em; }
  .search input { font-size: 1rem; letter-spacing: -.01em; }
  .search-btn { width: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; }
  .search-btn .icon { display: block; }
  .search-btn .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.home-results {
  margin-top: 10px; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 8px;
}
.home-results ul { display: grid; gap: 2px; }
.result-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; }
.result-row:hover { background: var(--oat-soft); }
.result-row img, .result-row .thumb-missing { width: 40px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--blue); flex: none; }
.result-title { font-weight: 600; line-height: 1.3; }
.result-cat { font-size: .8125rem; color: var(--muted); }
.results-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 4px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4px; }
.results-empty { padding: 12px 10px; color: var(--muted); font-size: .9375rem; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ------------------------------------------------ the dark brown feature card (tiktok) */

.invite { margin-top: 36px; }
.feature {
  position: relative; display: block; overflow: hidden;
  padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background: var(--night); color: var(--cream); text-decoration: none;
}
a.feature:focus-visible { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--wine); border-radius: var(--radius-lg); }
.feature-eyebrow { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--night-muted); }
.feature-title {
  display: block; margin-top: 14px; max-width: 15em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; line-height: 1.08; letter-spacing: -.02em; color: var(--cream);
}
.feature-title .accent { color: var(--butter); }
.feature-title .hrt { color: var(--butter); font-size: .7em; }
.feature-sub { display: block; margin-top: 10px; color: var(--night-muted); font-size: .9375rem; max-width: 30em; }
.feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.feature-cta {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--butter); color: var(--espresso); font-weight: 600; font-size: .9375rem;
  transition: background-color .2s var(--ease);
}
a.feature:hover .feature-cta { background: var(--butter-hover); }
.feature-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 10px; background: var(--night-chip); color: var(--night-muted); font-size: .8125rem; }
.feature-chip strong { color: var(--cream); font-weight: 600; margin-right: 5px; }
.feature-pending { opacity: .9; }
.pending-note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
@media (min-width: 720px) {
  .feature { padding: 34px 36px 32px; }
  .feature-title { font-size: 2.4rem; }
}

/* ------------------------------------------------ categories (pastel cards) */

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 360px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cat-card a {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 140px;
  padding: 18px 18px 16px; border-radius: var(--radius); text-decoration: none;
  background: var(--tone); border: 2px solid var(--tone);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.cat-card a:hover, .cat-card a:active, .cat-card a:focus-visible { border-color: var(--tone-edge); }
.cat-blue { --tone: var(--blue); --tone-edge: var(--blue-deep); }
.cat-butter { --tone: #FEF4CF; --tone-edge: var(--butter); }
.cat-oat { --tone: var(--oat); --tone-edge: var(--caramel); }
.cat-pistachio { --tone: var(--pistachio); --tone-edge: var(--pistachio-deep); }
.cat-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.01em; }
.cat-blurb { font-size: .875rem; line-height: 1.4; color: var(--cocoa); }
.cat-count {
  align-self: flex-start; margin-top: auto; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .7); font-size: .75rem; font-weight: 500; color: var(--cocoa); white-space: nowrap;
}

/* ------------------------------------------------ post cards */

.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card:focus-within { box-shadow: var(--focus); }
.card-media { aspect-ratio: 4 / 5; background: var(--blue); overflow: hidden; }
.card-media .cover { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cover-missing { width: 100%; height: 100%; background: radial-gradient(rgba(107,74,61,.12) 1.4px, transparent 1.6px) 0 0 / 12px 12px, var(--blue); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.card-meta .draft-tag { margin-left: 4px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.01em; margin-top: 4px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.card-title a:focus-visible { box-shadow: none; }
.card-desc { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.card-cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--wine); }
.card:hover .card-cta { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) {
  .card { flex-direction: row; }
  .card-media { width: 36%; flex: none; aspect-ratio: 3 / 4; align-self: stretch; }
  .card-body { padding: 12px 14px 14px; gap: 4px; }
  .card-title { font-size: 1.08rem; }
  .card-desc { font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.card .card-remove { position: relative; z-index: 1; align-self: flex-start; margin-top: 8px; font-size: .8125rem; min-height: 38px; padding: 6px 16px; }

/* ------------------------------------------------ little note */

.little-note { max-width: 600px; }
.little-note .script-heading { margin-bottom: 24px; }
.note-paper {
  position: relative; padding: 30px 24px 20px; border-radius: var(--radius-lg);
  background: var(--oat-soft); border: 2px solid var(--oat);
}
.note-paper::before { /* thick polka-dot washi tape with torn ends */
  content: ""; position: absolute; left: 22px; top: -18px; width: 132px; height: 36px;
  background:
    radial-gradient(circle, #FFFFFF 3.2px, transparent 3.7px) 0 0 / 16px 16px,
    radial-gradient(circle, #FFFFFF 3.2px, transparent 3.7px) 8px 8px / 16px 16px,
    var(--butter);
  opacity: .92;
  clip-path: polygon(0 4%, 4% 0, 8% 6%, 12% 0, 88% 0, 92% 6%, 96% 0, 100% 5%, 98% 50%, 100% 95%, 96% 100%, 92% 94%, 88% 100%, 12% 100%, 8% 94%, 4% 100%, 0 96%, 2% 50%);
  filter: drop-shadow(0 2px 2px rgba(43, 37, 35, .12));
  transform: rotate(-4deg);
}
.note-text { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.35; min-height: 2.7em; color: var(--espresso); }
.note-hint { font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: .9375rem; color: var(--muted); }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.note-status { min-height: 1.4em; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.note-reveal { animation: fade-in .45s var(--ease); }

/* ------------------------------------------------ collection */

.collection-tools { margin-top: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter {
  min-height: 42px; padding: 8px 18px; border-radius: var(--radius-pill); border: 2px solid var(--border);
  background: var(--card); font-size: .875rem; font-weight: 500; color: var(--muted);
}
.filter:hover { border-color: var(--border-strong); color: var(--espresso); }
.filter[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.result-count { margin: 16px 0 14px; font-size: .875rem; color: var(--muted); min-height: 1.4em; }
.saved-hint { margin-top: 32px; }
.device-note {
  margin: 8px 0 24px; padding: 14px 18px; font-size: .875rem; color: var(--cocoa);
  background: var(--blue); border-radius: var(--radius); max-width: 40em;
}

/* ------------------------------------------------ post detail */

.crumbs { padding-top: 24px; font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.post { display: grid; gap: 24px; margin-top: 18px; }
.post-media { max-width: 340px; width: 52%; }
.post-cover { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-lg); background: var(--blue); }
.post-media .cover-missing { aspect-ratio: 9 / 16; border-radius: var(--radius-lg); }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1.05; letter-spacing: -.025em; margin-top: 12px; }
.post-date { margin-top: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-desc { margin-top: 12px; font-size: 1.0625rem; color: var(--espresso); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--blue-soft); font-size: .8125rem; color: var(--cocoa); text-decoration: none; }
.tag:hover { background: var(--blue); }

.post-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
.post-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.share-confirm { min-height: 1.4em; font-size: .875rem; color: var(--muted); }
.share-confirm strong { font-weight: 600; color: var(--wine); }
.share-confirm .msg { display: block; animation: fade-in .3s var(--ease); }

.take {
  margin-top: 32px; padding: 20px 22px; background: var(--butter-soft); border-radius: var(--radius-lg);
  max-width: 36em;
}
.take p { margin-top: 6px; color: var(--espresso); }
.take-pending { background: var(--card); border: 2px dashed var(--border); }
.take-pending p { font-size: .875rem; color: var(--muted); }

.items { margin-top: 36px; max-width: 40em; }
.item-list { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
.item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.item + .item { border-top: 1px solid var(--border); }
.item-name { font-weight: 600; }
.item-name::first-letter { text-transform: lowercase; }
.item-meta { display: block; font-size: .875rem; color: var(--muted); }
.item-note { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; flex: none; }
.item-link { display: inline-flex; align-items: center; gap: 5px; font-size: .875rem; font-weight: 600; min-height: 32px; color: var(--wine); }
.status-label {
  font-size: .75rem; font-weight: 600; padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--oat); color: var(--espresso); white-space: nowrap;
}
.status-label::before { content: "♡ "; }
.aff-label { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa); }
.disclosure { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

@media (min-width: 760px) {
  .post { grid-template-columns: minmax(260px, 340px) 1fr; gap: 48px; align-items: start; margin-top: 24px; }
  .post-media { width: 100%; position: sticky; top: 24px; }
  .post-title { font-size: 2.8rem; }
}

/* ------------------------------------------------ about */

.about-intro { display: flex; align-items: center; gap: 18px; }
.about-intro .page-intro { margin-top: 8px; }
.about-intro .portrait.portrait-sm, .about-intro .portrait-wrap.portrait-sm { width: 96px; }
@media (min-width: 560px) { .about-intro { gap: 26px; } .about-intro .portrait.portrait-sm, .about-intro .portrait-wrap.portrait-sm { width: 140px; } }
.about-title { font-size: 1.7rem; }
@media (min-width: 720px) { .about-title { font-size: 1.95rem; } }
/* butter-yellow accent word; the thin brown shadow keeps it readable on cream */
.accent-butter { color: var(--butter); text-shadow: 1.5px 1.5px 0 var(--night), -0.5px -0.5px 0 rgba(63, 42, 34, .35); }
.portrait-sm, .portrait-wrap.portrait-sm { width: 128px; flex: none; }
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: transparent; }
.portrait.portrait-sm { width: 128px; flex: none; }
.portrait-wrap .portrait { border-radius: 50%; border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--oat); } /* placeholder only */
.portrait-wrap { margin: 0; position: relative; }
.portrait-wrap figcaption { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); }
.portrait-wrap figcaption .draft-tag { margin: 0; }

.bubble-hint { margin-top: 32px; font-size: .875rem; color: var(--muted); }
.bubbles { display: grid; gap: 10px; margin-top: 12px; }
.bubble {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 2px solid transparent; border-radius: 26px 26px 26px 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15;
  transition: border-color .2s var(--ease);
}
.bubble::after {
  content: "+"; font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; line-height: 1;
  transition: transform .25s var(--ease);
}
.bubble[aria-expanded="true"]::after { transform: rotate(45deg); }
.bubble[aria-expanded="true"] { border-color: currentColor; }
.bubble-butter { background: var(--butter); color: var(--cocoa); }
.bubble-butter:hover { border-color: var(--butter-hover); }
.bubble-blue { background: var(--blue); color: var(--cocoa); }
.bubble-blue:hover { border-color: var(--blue-deep); }
.bubble-oat { background: var(--oat); color: var(--espresso); }
.bubble-oat:hover { border-color: var(--caramel); }
.bubble .hrt { color: inherit; }
.bubble-panel {
  padding: 18px 22px; border-radius: 8px var(--radius) var(--radius) var(--radius);
  margin-bottom: 6px; max-width: 38em;
}
.bubble-panel p { font-size: 1.0625rem; }
.bubble-panel-butter { background: var(--butter-soft); color: var(--cocoa); }
.bubble-panel-blue { background: var(--blue-soft); color: var(--cocoa); }
.bubble-panel-oat { background: var(--oat-soft); color: var(--espresso); }
.bubble-panel:not([hidden]) { animation: fade-in .3s var(--ease); }

@media (min-width: 640px) {
  .bubbles { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 12px; row-gap: 14px; }
  .bubble:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .bubble:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .bubble:nth-of-type(3) { grid-column: 3; grid-row: 1; }
  .bubble-panel { grid-column: 1 / -1; grid-row: 2; }
}

.closing { margin-top: 48px; }
.script-line { font-family: var(--font-script); font-weight: 400; font-size: 1.5rem; line-height: 1.4; color: var(--cocoa); }
.script-line .hrt { font-size: .9em; }

/* ------------------------------------------------ work */

.cap-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .cap-list { grid-template-columns: 1fr 1fr; } }
.cap-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-sm);
}
.cap-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--butter); flex: none; }
.cap-list li:nth-child(3n+2)::before { background: var(--pistachio-deep); }
.cap-list li:nth-child(3n)::before { background: var(--blue-deep); }
.cred-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cred-list li { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--blue); color: var(--espresso); font-size: .9375rem; font-weight: 500; }
.cred-list li:nth-child(2) { background: var(--oat); }
.cred-list li:nth-child(3) { background: var(--butter-soft); }
.cred-list li:nth-child(4) { background: var(--pistachio); }
.bg-text { margin-top: 16px; color: var(--muted); max-width: 36em; }
.samples-placeholder {
  padding: 28px 24px; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: radial-gradient(rgba(107,74,61,.08) 1px, transparent 1.2px) 0 0 / 14px 14px, var(--card);
}
.samples-placeholder p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--espresso); line-height: 1.25; }

/* contact gets the dark feature-card treatment */
.contact {
  margin-top: 56px; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px;
  border-radius: var(--radius-lg); background: var(--night); color: var(--cream);
}
@media (min-width: 560px) { .contact { flex-direction: row; align-items: center; gap: 30px; padding: 34px; } }
.contact .section-title { margin-bottom: 6px; color: var(--cream); }
.contact .section-title .accent { color: var(--butter); }
.contact-body p { color: var(--night-muted); }
.contact-email { margin: 4px 0 18px; font-size: 1.0625rem; }
.contact-email a { color: var(--cream); text-decoration-color: rgba(255, 250, 240, .4); }
.contact .btn-primary { background: var(--butter); color: var(--espresso); }
.contact .btn-primary:hover { background: var(--butter-hover); }
.contact .btn-primary .hrt { color: var(--wine); }
.contact .portrait-wrap .portrait { border-color: var(--night); }
.contact :focus-visible { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--butter); }

/* ------------------------------------------------ footer */

.site-footer { margin-top: 88px; padding-bottom: 36px; }
.checker-strip {
  height: 14px;
  background: conic-gradient(var(--cocoa) 25%, #F3ECDE 0 50%, var(--cocoa) 0 75%, #F3ECDE 0) 0 0 / 14px 14px;
}
.footer-inner { padding-top: 32px; display: grid; gap: 18px; }
.belong { font-family: var(--font-script); font-weight: 400; font-size: 1.45rem; line-height: 1.4; color: var(--cocoa); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--espresso); text-decoration: underline; }
.attribution { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------ motion */

@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

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

/* ------------------------------------------------ small screens */

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .wordmark { font-size: 2.35rem; }
  .site-nav a { padding: 0 14px; }
  .feature-title { font-size: 1.6rem; }
}
