/* Giya brand: change these variables to re-skin the whole site. */
:root {
  --accent: #e4531b; --accent-2: #f2b134; --accent-ink: #fff; --accent-soft: #fdeee5;
  --bg: #fbf7f1; --card: #fff; --ink: #1d1915; --muted: #6f665c; --line: #ebe3d8;
  --ok: #217a52; --ok-soft: #e2f3ea; --danger: #b8322a; --danger-soft: #fbe9e6;
  --radius: 18px; --shadow: 0 1px 0 rgba(29, 25, 21, .04);
  --lift: 0 10px 30px -12px rgba(29, 25, 21, .22);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
.prose a, .alert a, p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
img { max-width: 100%; }
::selection { background: var(--accent-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; min-height: 70vh; }
.foot { color: var(--muted); font-size: .85rem; padding: 32px 24px 40px; border-top: 1px solid var(--line); }

/* Header */
.top { background: rgba(251, 247, 241, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 50% 50% 50% 6px; background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent) 70%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.search { flex: 1; max-width: 340px; }
.search input { border-radius: 999px; background: var(--card); padding-left: 16px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: .95rem; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary .av { outline: 2px solid var(--line); outline-offset: 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--lift); padding: 8px; min-width: 230px; display: flex; flex-direction: column; gap: 2px; }
.menu-pop > * { padding: 9px 12px; border-radius: 10px; }
.menu-pop b { font-family: var(--serif); font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); }

/* Forms & buttons */
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=file] { padding: 8px; }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--muted); }
.radio { flex-direction: row; align-items: center; font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--ink); cursor: pointer; font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(228, 83, 27, .6); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; box-shadow: none; }
.btn.sm { padding: 6px 14px; font-size: .88rem; }
.btn.lg { padding: 14px 28px; font-size: 1.05rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; background: var(--ink); border-color: var(--ink); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-align: left; }
.link:hover { color: var(--accent); }

/* Layout helpers */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; display: block; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 160px; }
.between { justify-content: space-between; }
.center { text-align: center; justify-content: center; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; align-items: start; }
.muted { color: var(--muted); }
.sm-t { font-size: .85rem; }
.empty { text-align: center; padding: 56px 20px; }
.alert { background: var(--danger-soft); color: var(--danger); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border-left: 4px solid var(--danger); }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-left-color: var(--ok); }
.pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.sm { font-size: .7rem; padding: 1px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag { color: var(--accent); font-size: .85rem; font-weight: 500; }
.av { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; }
.av-i { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-family: var(--serif); font-weight: 700; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffcf8; }
.table th { background: var(--bg); font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* Home */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.03em; line-height: 1.02; }
.hero p { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-art { position: relative; height: 380px; }
.pass { position: absolute; width: 270px; border-radius: 22px; padding: 22px; box-shadow: var(--lift); border: 1px solid var(--line); background: var(--card); }
.pass .av-i { width: 46px; height: 46px; font-size: 20px; }
.pass b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-top: 12px; }
.pass .price { font-size: 1.5rem; margin: 14px 0 0; }
.pass-a { top: 0; right: 40px; transform: rotate(4deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.pass-a .muted, .pass-a .price small { color: rgba(255, 255, 255, .65); }
.pass-b { bottom: 0; left: 0; transform: rotate(-5deg); }
.pass-c { top: 190px; right: 0; width: 180px; padding: 16px; background: var(--accent-2); border-color: transparent; transform: rotate(8deg); font-weight: 600; }
.creator-card { padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.creator-card:hover { transform: translateY(-3px); box-shadow: var(--lift); color: inherit; }
.cc-cover { height: 110px; background: linear-gradient(135deg, var(--accent-2), var(--accent)) center/cover; }
.cc-body { padding: 0 20px 20px; margin-top: -30px; }
.cc-body .av { border: 4px solid var(--card); }
.cc-body h3 { font-family: var(--serif); font-size: 1.2rem; margin: 8px 0 4px; }
.mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; }

/* Creator page */
.cover { height: 260px; border-radius: var(--radius); background: linear-gradient(120deg, var(--ink) 0%, var(--accent) 65%, var(--accent-2) 100%) center/cover; }
.creator-head { text-align: center; margin-top: -64px; margin-bottom: 20px; }
.creator-head .av { border: 6px solid var(--bg); }
.creator-head h1 { font-size: 2.4rem; margin-top: 8px; }
.tagline { font-size: 1.15rem; margin: 0 0 4px; font-family: var(--serif); font-style: italic; }
.tabs { display: flex; gap: 4px; justify-content: center; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs a { padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; transition: box-shadow .2s; }
.tier:hover { box-shadow: var(--lift); }
.tier.current { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 40%); }
.tier h3 { font-family: var(--serif); font-size: 1.25rem; }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.price small { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.benefits { padding-left: 0; margin: 0 0 16px; list-style: none; }
.benefits li { padding-left: 24px; position: relative; margin-bottom: 4px; }
.benefits li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.product img, .product .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: linear-gradient(135deg, var(--accent-soft), #fff4dc); }

/* Posts */
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-head .pill { margin-left: auto; }
.post-title h3 { font-family: var(--serif); font-size: 1.35rem; }
.post-img { border-radius: 12px; width: 100%; max-height: 440px; object-fit: cover; margin-bottom: 12px; }
.post-img.full { max-height: none; }
.excerpt { color: #3b352f; white-space: pre-line; }
.post-foot { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 14px; }
.locked { background: radial-gradient(circle at 50% 0%, #fff4dc, var(--accent-soft) 70%); border: 1px dashed #f1c7b0; border-radius: 14px; padding: 36px 20px; text-align: center; }
.locked.big { padding: 76px 20px; }
.lock-icon { width: 34px; height: 26px; margin: 12px auto 14px; background: var(--accent); border-radius: 7px; position: relative; }
.lock-icon::before { content: ""; position: absolute; left: 7px; top: -14px; width: 20px; height: 20px; border: 4px solid var(--accent); border-bottom: 0; border-radius: 12px 12px 0 0; box-sizing: border-box; }
.post-page { max-width: 780px; margin: 0 auto; padding: 40px; }
.post-page h1 { font-size: 2.4rem; }
.prose { white-space: normal; margin: 18px 0; font-size: 1.08rem; line-height: 1.7; }
.video { position: relative; aspect-ratio: 16/9; margin-bottom: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.file { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.poll-row { position: relative; display: flex; justify-content: space-between; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.poll-row span { position: relative; z-index: 1; }
.poll-row .bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent-soft), #fff1d6); }
.poll-row.mine { border-color: var(--accent); font-weight: 600; }
.comments { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 22px; }
.comment { display: flex; gap: 12px; margin-top: 18px; }
.c-body { flex: 1; }
.c-body p { margin: 2px 0 4px; }
.c-body details summary { cursor: pointer; color: var(--muted); }

/* Messages / lists */
.list { padding: 0; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-row:hover { background: #fffcf8; }
.list-row:last-child { border-bottom: 0; }
.list-row.unread { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.thread { max-width: 760px; margin: 0 auto; }
.msgs { display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: 60vh; overflow-y: auto; padding: 12px 0; }
.msg { max-width: 75%; background: var(--bg); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 9px 15px; align-self: flex-start; }
.msg p { margin: 0; }
.msg.me { align-self: flex-end; background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.me .muted { color: rgba(255, 255, 255, .7); }

/* Auth */
.auth { max-width: 440px; margin: 28px auto; padding: 36px; border-top: 4px solid var(--accent); }
.auth h1 { text-align: center; }

/* Studio */
.studio { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.side .row { margin-bottom: 12px; padding: 4px; }
.side a { padding: 9px 12px; border-radius: 10px; font-weight: 500; }
.side a:hover { background: var(--bg); color: var(--ink); }
.side a.on { background: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 4px; }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); }
.stat span { color: var(--muted); font-size: .85rem; display: block; position: relative; z-index: 1; }
.stat b { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -.02em; position: relative; z-index: 1; }
.chart { display: flex; align-items: flex-end; gap: 16px; height: 200px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bar-v { width: 100%; max-width: 56px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 10px 10px 3px 3px; min-height: 4px; }
details.card > summary { cursor: pointer; list-style: none; font-weight: 600; }
details.card[open] > summary { margin-bottom: 16px; }

@media (max-width: 860px) {
  .split, .studio, .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .search { display: none; }
  .top nav { gap: 10px; font-size: .9rem; }
  .cover { height: 170px; }
  .post-page { padding: 24px; }
}

/* Reports */
.report summary { cursor: pointer; color: var(--muted); font-size: .85rem; list-style: none; }
.report[open] { width: 100%; }
.report form { margin-top: 8px; }
.report select { width: auto; }

/* Front page */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 5px 14px 5px 10px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 em { font-style: italic; color: var(--accent); background: linear-gradient(transparent 72%, #fbdca0 72%); }
.hero-search { display: flex; gap: 8px; max-width: 480px; margin: 26px 0 0; }
.hero-search input { border-radius: 999px; padding-left: 18px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 72px; }
.strip > div + div { border-left: 1px solid rgba(255, 255, 255, .14); }
.strip b { display: block; font-family: var(--serif); font-size: 2.2rem; letter-spacing: -.02em; color: var(--accent-2); }
.strip span { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.section { margin-bottom: 72px; }
.section > h2, .section .row h2 { font-size: 2rem; letter-spacing: -.02em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-2); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.features .card { margin: 0; border-top: 3px solid var(--accent); }
.split-band { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; }
.split-band p { font-size: 1.1rem; }
.pricing { text-align: center; padding: 32px; background: var(--accent-soft); border-color: transparent; }
.pricing .price { font-size: 3.2rem; color: var(--accent); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq[open] summary::after { content: "–"; }
.faq[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; color: var(--muted); }
.cta { text-align: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 72px 24px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .45; left: -120px; bottom: -180px; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta p { opacity: .8; margin: 0 0 24px; }
.cta .btn { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.cta .btn:hover { background: #fff; border-color: #fff; }
.foot nav { gap: 22px; margin-bottom: 8px; }
.foot p { margin: 0; }

/* Checkout */
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.summary { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; }
.summary p { margin: 4px 0; }
.ok-t { color: var(--ok); font-weight: 600; }
.gift-link { display: block; text-align: center; margin-top: 10px; color: var(--accent); }
blockquote.card { margin: 0; font-family: var(--serif); font-style: italic; text-align: left; }

@media (max-width: 860px) {
  .split-band { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
}

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