/* Shared creator-community identity. Keep reading and commerce equally legible. */
:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --raised: #ffffff;
  --ink: #202124;
  --dim: #62636d;
  --rule: #dadce3;
  --accent: #bb2358;
  --blue: #3158d5;
  --tint: #fbe9f0;
  --mint: #d6f5e8;
  --mint-ink: #175843;
  --f-display: "Space Grotesk", sans-serif;
  --f-body: "DM Sans", sans-serif;
  --f-mono: "DM Sans", sans-serif;
  --gut: 40px;
  --measure: 68ch;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #19191d;
  --raised: #232329;
  --ink: #f5f5f8;
  --dim: #b3b3c0;
  --rule: #3c3c46;
  --accent: #ff90b6;
  --blue: #a7b9ff;
  --tint: #35232d;
  --mint: #203d34;
  --mint-ink: #a5ebca;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-padding-top: 100px; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
img { max-width: 100%; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #f7b3ce; color: #202124; }
.display { font-family: var(--f-display); font-weight: 700; line-height: 1.08; }
.mono { font-size: 13px; font-weight: 500; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--raised); z-index: 100; }
.skip-link:focus { top: 10px; }
.site-notice { min-height: 34px; padding: 7px var(--gut); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 12px; background: #fff3cd; color: #202124; font-size: 13px; line-height: 1.4; text-align: center; }
.site-notice a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.site-notice a:hover { color: #704d00; }
header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 24px; max-width: 1280px; padding: 16px var(--gut); margin: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1.2 var(--f-display); text-decoration: none; white-space: nowrap; }
.wordmark em { font-style: normal; }
.brand-mark { flex: none; display: block; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; border-radius: 6px; overflow-wrap: anywhere; }
nav a:hover { color: var(--ink); background: var(--raised); }
nav a.on, nav a[aria-current="page"] { color: var(--accent); background: var(--tint); }
.theme-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--raised); }
.theme-toggle img { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle img { filter: invert(1); }
main { max-width: 1280px; margin: auto; padding: 0 var(--gut) 48px; min-height: 50vh; }
.hero { padding: 56px 0 32px; }
.hero h1 { margin: 0; font-size: 56px; max-width: 17ch; overflow-wrap: anywhere; }
.lede { color: var(--dim); font-size: 18px; max-width: 52ch; margin: 18px 0 0; }
.hero .lede b { color: var(--ink); font-weight: 600; }
.home-intro { position: relative; isolation: isolate; margin: 0 calc(-1 * var(--gut)); padding: 42px var(--gut); min-height: 354px; display: flex; align-items: center; overflow: hidden; background: #f7f5fa; color: #202124; }
.home-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-intro h1 { font-size: 64px; max-width: 9ch; }
.home-intro .lede { color: #45424d; max-width: 36ch; margin-top: 14px; font-size: 17px; }
.home-intro .cta { margin-top: 24px; }
.home-intro .btn { background: #202124; color: white; border-color: #202124; }
.home-intro .text-link { color: #202124; }
.cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--rule); border-radius: 6px; background: var(--raised); font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none; text-align: center; }
.btn:hover { border-color: var(--accent); }
.btn.fill { background: var(--accent); border-color: var(--accent); color: var(--raised); }
[data-theme="dark"] .btn.fill { color: #202124; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.sec-head h2 { font: 700 28px/1.2 var(--f-display); margin: 0; }
.sec-head .count { color: var(--dim); }
.sec-head > a { margin-left: auto; color: var(--blue); font-size: 14px; font-weight: 600; }
.home-feed { margin-top: 32px; }
.essay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.essay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.essay.has-img { grid-template-columns: minmax(0, 1fr) 220px; }
.essay h3 { font: 700 25px/1.25 var(--f-display); margin: 0 0 10px; overflow-wrap: anywhere; }
.essay:hover h3 { color: var(--accent); }
.essay p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 60ch; }
.essay-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--tint); border-radius: 6px; }
.essay-grid .essay { display: flex; flex-direction: column; border: 0; padding: 0; gap: 18px; min-width: 0; }
.essay-grid .essay-thumb { order: -1; }
.essay-grid .essay h3 { font-size: 23px; }
.essay-grid .essay p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.tag { display: inline-block; font-size: 12px; color: var(--blue); background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 8px; text-decoration: none; overflow-wrap: anywhere; }
a.tag { padding: 10px 14px; min-height: 44px; font-size: 14px; }
a.tag:hover { border-color: var(--blue); }
.byline { color: var(--dim); font-size: 12px; }
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 24px; }
.good { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 8px; background: var(--raised); }
.good:hover { border-color: var(--accent); }
.good .kind { color: var(--accent); font-size: 12px; font-weight: 600; }
.good h3, .good h4 { font: 700 21px/1.3 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.good .by { color: var(--dim); font-size: 14px; }
.price { font: 700 22px/1.4 var(--f-display); }
.good .price { margin-top: auto; padding-top: 8px; }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 24px; margin-top: 24px; }
.store-card { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px 20px; align-content: start; padding: 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--raised); text-decoration: none; }
.store-card:hover { border-color: var(--accent); }
.store-monogram { grid-row: 1/4; display: grid; place-items: center; width: 68px; height: 68px; background: var(--mint); color: var(--mint-ink); border-radius: 8px; font: 700 26px var(--f-display); }
.store-card h3 { font: 700 25px/1.2 var(--f-display); margin: 0; }
.store-card p { margin: 0; color: var(--dim); max-width: 56ch; font-size: 15px; }
.store-card .store-meta { color: var(--blue); font-size: 13px; font-weight: 600; }
.product-card { text-decoration: none; color: inherit; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f2f3f6; border-radius: 4px; }
.product-card p { margin: 0; font-size: 14px; color: var(--dim); }
.product-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; background: var(--mint); color: var(--ink); border-radius: 4px; font: 700 28px var(--f-display); }
.market-page { margin-top: 24px; }
.market-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.market-page > h1 { font: 700 44px/1.15 var(--f-display); margin: 0 0 12px; overflow-wrap: anywhere; }
.market-page h2 { font: 700 26px/1.3 var(--f-display); margin-top: 36px; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 48px; margin: 32px 0; }
.product-detail > img { width: 100%; background: #f2f3f6; border-radius: 8px; }
.product-detail h1 { font: 700 36px/1.2 var(--f-display); margin: 0 0 20px; overflow-wrap: anywhere; }
.product-detail p { color: var(--dim); }
.product-detail .price { color: var(--ink); }
label { display: block; margin: 20px 0; font-size: 14px; font-weight: 600; }
input { display: block; width: min(100%, 400px); min-height: 44px; padding: 12px; margin-top: 8px; background: var(--raised); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; }
#product-quantity { width: 100px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.cart-line > div { min-width: 0; flex: 1 1 220px; }
.cart-line h3, .cart-line p { margin: 0 0 6px; }
.cart-line p { color: var(--dim); }
.market-error { border-left: 3px solid var(--accent); background: var(--tint); padding: 16px; }
.reader { max-width: var(--measure); margin: auto; padding-top: 48px; overflow-wrap: anywhere; }
.reader h1 { font: 700 48px/1.12 var(--f-display); margin: 0 0 20px; }
.reader .standfirst { font-size: 21px; line-height: 1.5; color: var(--dim); margin: 0 0 32px; }
.reader .body { font-size: 18px; line-height: 1.85; }
.reader .body h2 { font: 700 27px/1.3 var(--f-display); margin: 1.8em 0 .6em; }
.reader .body p { margin: 0 0 1.4em; }
.reader figure { margin: 32px 0; }
.reader figure img { width: 100%; height: auto; border-radius: 6px; }
.reader figcaption { color: var(--dim); font-size: 14px; line-height: 1.6; }
.reader-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; margin-bottom: 28px; background: var(--raised); }
.foot-cta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-cta .say { font: 700 24px var(--f-display); }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.coseller-hero { margin: 0 calc(-1 * var(--gut)); padding: 72px var(--gut); background: linear-gradient(135deg,var(--tint),var(--raised)); border-bottom: 1px solid var(--rule); }
.coseller-hero h1 { max-width: 15ch; margin: 12px 0 0; font-size: clamp(44px,7vw,78px); }
.coseller-hero .lede { max-width: 66ch; }
.coseller-tagline { margin: 24px 0 0; font: 600 20px var(--f-display); }
.coseller-tagline b:first-child { color: var(--accent); }
.coseller-section { max-width: 1080px; }
.section-intro { max-width: 66ch; color: var(--dim); font-size: 18px; }
.principle-grid, .earning-grid { display: grid; gap: 18px; margin-top: 28px; }
.principle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.earning-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.principle-grid article, .earning-grid article { padding: 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--raised); }
.principle-grid article > span { color: var(--accent); font-size: 12px; font-weight: 700; }
.principle-grid h3, .earning-grid h3 { margin: 10px 0; font: 700 21px/1.3 var(--f-display); }
.principle-grid p, .earning-grid p { margin: 0; color: var(--dim); }
.coseller-steps { display: grid; gap: 0; padding: 0; margin: 24px 0; list-style: none; counter-reset: coseller-step; }
.coseller-steps li { counter-increment: coseller-step; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); }
.coseller-steps li::before { content: counter(coseller-step,decimal-leading-zero); color: var(--accent); font-weight: 700; }
.fine-print, .values-list { padding: 20px; border-left: 3px solid var(--blue); background: var(--raised); color: var(--dim); }
.values-list p { margin: 0 0 12px; }
.values-list p:last-child { margin-bottom: 0; }
.coseller-activate, .coseller-private { max-width: 1080px; margin: 56px auto 24px; padding: 32px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.coseller-activate h2, .coseller-private h2 { margin: 0 0 10px; font: 700 30px var(--f-display); }
.coseller-activate p, .coseller-private > p { max-width: 68ch; }
.coseller-activate .btn, .coseller-private .btn { border-color: color-mix(in srgb,var(--paper) 35%,transparent); }
.coseller-activate .btn.fill, .coseller-private .btn.fill { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.coseller-activate input { background: var(--paper); color: var(--ink); }
.form-error { min-height: 1em; margin-top: 14px; color: #ffb3ca; }
.preview-flag { width: fit-content; margin-bottom: 20px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; font-weight: 700; }
.share-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 26px 0 14px; padding: 18px; color: var(--ink); background: var(--paper); border-radius: 7px; }
.share-box div { min-width: 0; }
.share-box span, .share-box code { display: block; }
.share-box code { margin-top: 5px; overflow-wrap: anywhere; }
.coseller-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.coseller-private h3 { margin: 32px 0 12px; font: 700 22px var(--f-display); }
.coseller-private .lede { color: inherit; }
.program-terms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: color-mix(in srgb,var(--paper) 25%,transparent); }
.program-terms div { padding: 16px; background: var(--ink); }
.program-terms dt { color: color-mix(in srgb,var(--paper) 65%,transparent); font-size: 12px; }
.program-terms dd { margin: 4px 0 0; font-weight: 700; }
.opportunity-list { display: grid; gap: 8px; }
.opportunity { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; color: var(--ink); background: var(--paper); border-radius: 6px; text-decoration: none; }
.opportunity span, .opportunity small { display: block; }
.opportunity small { color: var(--dim); }
.opportunity strong { color: var(--accent); font-size: 18px; }
.opportunity strong small { display: block; color: var(--dim); font-size: 10px; font-weight: 600; text-align: right; text-transform: uppercase; }
.empty { grid-column: 1/-1; padding: 36px 0; border-block: 1px solid var(--rule); }
.empty .big { font: 700 25px/1.3 var(--f-display); margin-bottom: 10px; }
.empty p { color: var(--dim); max-width: 52ch; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); z-index: 80; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 12px 20px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.toast.show { opacity: 1; }
footer { border-top: 1px solid var(--rule); max-width: 1280px; margin: 40px auto 0; padding: 40px var(--gut); color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 32px; }
.foot-brand .wordmark { color: var(--ink); font-size: 18px; margin-bottom: 16px; }
.foot-brand p { margin: 0; font-size: 14px; max-width: 32ch; }
.foot-col h4 { color: var(--ink); margin: 0 0 12px; font-size: 14px; }
.foot-col a { display: block; width: fit-content; padding: 8px 0; font-size: 14px; text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.spacer { margin-left: auto; }
.skel { background: var(--rule); border-radius: 4px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
@media(min-width:1600px) { .home-intro { min-height: 390px; } }
@media(max-width:960px) {
  :root { --gut: 28px; }
  .bar { gap: 16px; flex-wrap: wrap; }
  .bar nav { gap: 2px; }
  nav a { padding-inline: 10px; }
  .home-intro h1 { font-size: 56px; }
  .essay-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .essay-grid .essay:first-child { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
  .foot-grid { grid-template-columns: repeat(3,1fr); }
  .foot-brand { grid-column: 1/-1; }
}
@media(max-width:620px) {
  :root { --gut: 20px; }
  html { scroll-padding-top: 150px; }
  .site-notice { padding-block: 4px; row-gap: 0; font-size: 12px; line-height: 1.3; }
  .bar { padding-block: 12px; gap: 10px; }
  .wordmark { font-size: 18px; }
  .bar nav { width: 100%; margin: 0; justify-content: flex-start; gap: 2px; }
  nav a { font-size: 13px; padding-inline: 9px; }
  .theme-toggle { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero h1, .reader h1 { font-size: 38px; }
  .home-intro { min-height: 360px; padding: 28px var(--gut) 30px; align-items: flex-start; }
  .home-intro h1 { font-size: 44px; max-width: 9ch; }
  .home-art { object-position: 43% center; opacity: .3; }
  .home-intro .lede { max-width: 29ch; }
  .home-intro .cta { gap: 10px; }
  .sec { margin-top: 36px; }
  .sec-head h2 { font-size: 24px; }
  .essay-grid { grid-template-columns: 1fr; gap: 32px; }
  .essay-grid .essay:first-child { display: flex; }
  .essay, .essay.has-img { grid-template-columns: 1fr; }
  .essay-thumb { order: -1; }
  .essay h3, .essay-grid .essay h3 { font-size: 23px; }
  .goods { gap: 16px; }
  .store-card { padding: 20px; grid-template-columns: 52px minmax(0,1fr); gap: 10px 16px; }
  .store-monogram { width: 52px; height: 52px; font-size: 22px; }
  .store-card h3 { font-size: 23px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-detail h1 { font-size: 30px; }
  .market-page > h1 { font-size: 36px; }
  .reader { padding-top: 32px; }
  .reader .body { font-size: 17px; }
  .reader .standfirst { font-size: 19px; }
  .coseller-hero { padding-block: 48px; }
  .coseller-hero h1 { font-size: 42px; }
  .principle-grid, .earning-grid, .program-terms { grid-template-columns: 1fr; }
  .coseller-activate, .coseller-private { margin-top: 36px; padding: 24px 20px; }
  .share-box { align-items: stretch; flex-direction: column; }
  .foot-grid { gap: 24px 16px; grid-template-columns: 1fr 1fr; }
  .foot-base .spacer { margin-left: 0; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
