:root {
  --bg: #09090b;
  --bg-soft: #101014;
  --panel: #111115;
  --panel-2: #15151a;
  --ink: #f2eee7;
  --muted: #969198;
  --faint: #5b5860;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #c8bdff;
  --accent-warm: #d8b98e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shell: min(1240px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #111016; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ambient { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .14; }
.ambient-one { width: 520px; height: 520px; background: #6846a6; top: 160px; right: -280px; }
.ambient-two { width: 380px; height: 380px; background: #765a39; top: 1200px; left: -260px; opacity: .08; }

.site-header {
  width: var(--shell);
  height: 94px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: -.02em; width: max-content; }
.brand-mark { color: var(--accent); font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; font-size: 13px; color: var(--muted); transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); left: 50%; transform: translateX(-50%); bottom: -10px; }
.quiet-button { justify-self: end; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 10px 15px; display: inline-flex; gap: 20px; align-items: center; font-size: 12px; cursor: pointer; transition: .25s ease; }
.quiet-button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu-toggle { display: none; }

.hero { min-height: 710px; display: grid; grid-template-columns: 1.08fr .72fr; gap: 86px; align-items: center; padding-block: 82px 92px; }
.eyebrow { margin: 0 0 30px; display: flex; align-items: center; gap: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 600; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; opacity: .75; }
.hero h1, .section-heading h2, .authors h2, .newsletter h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(68px, 7.4vw, 118px); line-height: .85; max-width: 820px; }
.hero h1 em, .authors h2 em, .newsletter h2 em { color: var(--accent); font-weight: 400; }
.hero-intro { margin: 34px 0 0; max-width: 480px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 25px; }
.primary-button { border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); padding: 14px 18px 14px 22px; display: inline-flex; gap: 22px; align-items: center; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: white; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; display: inline-flex; gap: 8px; transition: color .2s ease; }
.text-button:hover { color: var(--ink); }

.featured-poem { min-height: 480px; padding: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); position: relative; overflow: hidden; }
.featured-poem::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(200,189,255,.09), transparent 40%); pointer-events: none; }
.featured-meta, .card-topline { display: flex; justify-content: space-between; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.moon-card { height: 130px; position: relative; margin: 25px 0 5px; }
.moon { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(145deg, #d8d4ca, #8f8d92); box-shadow: 0 0 44px rgba(230,227,220,.13); right: 36px; top: 0; }
.moon::after { content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--panel); left: -18px; top: -9px; }
.moon-card svg { position: absolute; left: -24px; bottom: 0; width: calc(100% + 48px); height: 90px; fill: none; stroke: rgba(230,224,215,.27); stroke-width: 1; }
.moon-card svg ellipse { fill: rgba(230,224,215,.17); stroke: none; }
.featured-poem blockquote { margin: 14px 0 38px; font-family: var(--serif); font-size: 35px; line-height: 1.12; letter-spacing: -.025em; }
.featured-footer { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.featured-footer div { display: flex; flex-direction: column; gap: 3px; }
.featured-footer strong { font-size: 12px; }
.featured-footer span { color: var(--muted); font-size: 10px; }
.circle-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; transition: .2s ease; }
.circle-button:hover { background: var(--ink); color: var(--bg); transform: rotate(-12deg); }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; color: #69666d; }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 28px; text-transform: uppercase; font-size: 9px; letter-spacing: .22em; animation: drift 28s linear infinite; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: 8px; }
@keyframes drift { to { transform: translateX(-50%); } }

.poems-section { padding-block: 120px 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 46px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(52px, 5vw, 76px); }
.section-heading > p { color: var(--muted); max-width: 320px; font-size: 12px; line-height: 1.7; margin: 0 0 8px; }
.filters { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 12px; font-size: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: .2s ease; }
.filter span { color: var(--faint); font-size: 8px; }
.filter:hover, .filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter.active span { color: #69666d; }

.poem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poem-card { min-height: 405px; border: 1px solid var(--line); background: rgba(255,255,255,.018); padding: 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.poem-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(255,255,255,.028); }
.poem-card.hidden { display: none; }
.poem-card.wide { grid-column: span 2; min-height: 472px; padding: 28px; }
.poem-card h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; font-size: 42px; line-height: 1.02; margin: 48px 0 22px; }
.wide h3 { font-size: 56px; margin-top: 54px; max-width: 540px; }
.poem-excerpt { position: absolute; right: 35px; bottom: 92px; max-width: 235px; color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.poem-excerpt p { margin: 0; }
.card-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.author { display: flex; align-items: center; gap: 10px; }
.author-dot { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #1b1a20; color: var(--muted); font-size: 8px; }
.author div { display: flex; flex-direction: column; gap: 2px; }
.author strong { font-size: 10px; }
.author small { font-size: 8px; color: var(--faint); }
.love-button { border: 0; background: transparent; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); cursor: pointer; padding: 4px; }
.love-button span { font-size: 16px; line-height: 1; transition: transform .18s ease; }
.love-button b { font-size: 9px; font-weight: 500; }
.love-button.loved { color: var(--accent); }
.love-button.loved span { transform: scale(1.16); }
.short-copy, .vertical-poem { color: var(--muted); font-family: var(--serif); font-size: 22px; line-height: 1.42; margin: 0; }
.compact span { font-size: 10px; color: var(--muted); }
.night-window { height: 122px; margin: -24px -24px 0; position: relative; background: linear-gradient(#11121a, #1b1820); overflow: hidden; border-bottom: 1px solid var(--line); }
.night-window::before { content: ""; position: absolute; inset: 18px 34px 0; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(90deg, transparent 49%, rgba(255,255,255,.06) 50%, transparent 51%); }
.night-window::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: rgba(196,181,253,.08); right: -60px; top: -95px; filter: blur(10px); }
.window-light { position: absolute; width: 12px; height: 18px; background: #9f8e6f; opacity: .55; box-shadow: 0 0 12px rgba(217,190,140,.15); }
.window-light.one { left: 23%; top: 50px; }.window-light.two { left: 49%; top: 29px; opacity: .25; }.window-light.three { right: 24%; top: 62px; width: 9px; height: 12px; }
.image-card h3 { margin: 35px 0 16px; }
.quote-card { background: linear-gradient(160deg, rgba(200,189,255,.07), rgba(255,255,255,.01) 55%); }
.quote-mark { font-family: var(--serif); font-size: 86px; line-height: .6; color: var(--accent); opacity: .6; margin-top: 70px; }
.quote-card h3 { margin-top: 18px; }
.minimal-card .vertical-poem { margin-top: 14px; padding-left: 32px; border-left: 1px solid var(--line-strong); }
.line-card .lines { display: flex; gap: 5px; margin: 8px 0 30px; }
.line-card .lines span { width: 28px; height: 1px; background: var(--accent-warm); opacity: .65; }.line-card .lines span:nth-child(2) { width: 50px; opacity: .35; }.line-card .lines span:nth-child(3) { width: 12px; opacity: .22; }
.big-word { font-family: var(--serif); font-size: 92px; color: var(--accent); letter-spacing: -.06em; margin: 46px 0 18px; line-height: .8; }

.authors { padding-block: 115px 135px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.authors h2 { font-size: clamp(54px, 5vw, 76px); line-height: .95; }
.authors h2 em { display: inline-block; margin-top: 7px; }
.author-list { border-top: 1px solid var(--line); }
.author-row { display: grid; grid-template-columns: 42px 1fr auto 24px; gap: 15px; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); transition: padding .2s ease, color .2s ease; }
.author-row:hover { padding-inline: 8px; color: var(--accent); }
.author-row > span { font-size: 9px; color: var(--faint); }.author-row strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }.author-row small { font-size: 9px; color: var(--faint); }.author-row i { font-style: normal; font-size: 14px; color: var(--muted); }

.newsletter { min-height: 520px; margin-bottom: 120px; display: grid; grid-template-columns: .9fr 1.1fr; background: #d5cafa; color: #17151d; overflow: hidden; }
.newsletter-art { position: relative; min-height: 520px; border-right: 1px solid rgba(23,21,29,.14); background: radial-gradient(circle at 55% 45%, rgba(255,255,255,.35), transparent 35%); }
.orbital { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(23,21,29,.17); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.orbital::before, .orbital::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(23,21,29,.11); left: 50%; top: 50%; transform: translate(-50%,-50%); }.orbital::before { width: 242px; height: 242px; }.orbital::after { width: 410px; height: 190px; transform: translate(-50%,-50%) rotate(-18deg); }
.newsletter-moon { position: absolute; width: 118px; height: 118px; border-radius: 50%; background: #211e28; left: 50%; top: 50%; transform: translate(-50%,-50%); box-shadow: inset 14px -10px 0 #312d3b; }
.newsletter-moon::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #d5cafa; left: -30px; top: -14px; }
.star { position: absolute; font-size: 16px; }.s1 { top: 18%; left: 20%; }.s2 { right: 17%; bottom: 24%; font-size: 10px; }.s3 { left: 21%; bottom: 18%; font-size: 12px; }
.newsletter-copy { padding: 74px 72px 62px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow.light { color: rgba(23,21,29,.56); margin-bottom: 24px; }
.newsletter h2 { font-size: clamp(57px, 5.4vw, 82px); line-height: .87; }.newsletter h2 em { color: #5b4e7b; }
.newsletter-copy > p:not(.eyebrow):not(.form-note) { max-width: 460px; font-size: 12px; line-height: 1.7; color: rgba(23,21,29,.62); margin: 26px 0 28px; }
.newsletter-form { display: flex; width: 100%; max-width: 500px; border-bottom: 1px solid rgba(23,21,29,.32); }
.newsletter-form input { flex: 1; border: 0; background: transparent; color: #17151d; padding: 13px 0; outline: none; font-size: 12px; min-width: 0; }.newsletter-form input::placeholder { color: rgba(23,21,29,.45); }
.newsletter-form button { border: 0; background: transparent; color: #17151d; cursor: pointer; padding: 13px 0 13px 20px; display: flex; gap: 20px; font-size: 11px; font-weight: 600; }
.form-note { color: rgba(23,21,29,.45); font-size: 8px; margin: 10px 0 0; }

.about { min-height: 350px; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 60px; border-top: 1px solid var(--line); }
.about > p { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }.about blockquote { margin: 0; font-family: var(--serif); font-size: 31px; line-height: 1.15; color: #c7c2c9; }.about a { align-self: center; font-size: 9px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; display: flex; gap: 15px; }

.site-footer { min-height: 118px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: center; gap: 40px; color: var(--faint); font-size: 9px; }.footer-brand { color: var(--ink); }.site-footer p { margin: 0; }.footer-links { display: flex; gap: 20px; }.footer-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 900px); }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; padding: 22px; display: none; flex-direction: column; align-items: flex-start; gap: 20px; background: #101014; border: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .quiet-button { display: none; }
  .menu-toggle { display: grid; width: 38px; height: 38px; place-content: center; gap: 5px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }.menu-toggle span { display: block; width: 14px; height: 1px; background: var(--ink); transition: .2s ease; }.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; gap: 65px; padding-top: 72px; }
  .featured-poem { max-width: 620px; width: 100%; justify-self: end; }
  .poem-grid { grid-template-columns: repeat(2, 1fr); }.poem-card.wide { grid-column: span 2; }
  .authors { grid-template-columns: 1fr; gap: 60px; }.authors-intro { max-width: 520px; }
  .newsletter-copy { padding: 56px 42px; }
  .newsletter { grid-template-columns: .8fr 1.2fr; }
  .about { grid-template-columns: 1fr 1.6fr; }.about a { display: none; }
  .site-footer { grid-template-columns: 1fr auto; }.site-footer p { display: none; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100vw - 30px); }
  .site-header { height: 74px; }
  .hero { min-height: auto; padding: 64px 0 72px; gap: 54px; }
  .hero h1 { font-size: clamp(59px, 17vw, 84px); }
  .hero-intro { font-size: 13px; margin-top: 28px; }
  .featured-poem { min-height: 450px; padding: 20px; }.featured-poem blockquote { font-size: 32px; }.moon-card svg { left: -20px; width: calc(100% + 40px); }
  .poems-section { padding-block: 86px 96px; }.section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 32px; }.section-heading > p { max-width: 280px; }.section-heading h2 { font-size: 54px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; margin-inline: -15px; padding-inline: 15px; scrollbar-width: none; }.filters::-webkit-scrollbar { display: none; }.filter { flex: 0 0 auto; }
  .poem-grid { grid-template-columns: 1fr; }.poem-card, .poem-card.wide { grid-column: auto; min-height: 390px; }.poem-card.wide { min-height: 510px; }.wide h3 { font-size: 47px; }.poem-excerpt { left: 28px; right: auto; bottom: 88px; }.poem-card h3 { font-size: 38px; }
  .authors { padding-block: 88px 100px; }.authors h2 { font-size: 56px; }.author-row { grid-template-columns: 32px 1fr auto 18px; }
  .newsletter { grid-template-columns: 1fr; margin-bottom: 76px; }.newsletter-art { min-height: 280px; border-right: 0; border-bottom: 1px solid rgba(23,21,29,.14); }.orbital { width: 210px; height: 210px; }.orbital::before { width: 155px; height: 155px; }.orbital::after { width: 270px; height: 130px; }.newsletter-moon { width: 90px; height: 90px; }.newsletter-moon::after { width: 80px; height: 80px; }.newsletter-copy { padding: 48px 28px 45px; }.newsletter h2 { font-size: 59px; }
  .about { min-height: 320px; grid-template-columns: 1fr; gap: 28px; align-content: center; }.about blockquote { font-size: 28px; }
  .site-footer { min-height: 160px; grid-template-columns: 1fr auto; align-content: center; row-gap: 24px; }.footer-links { grid-column: 1 / -1; grid-row: 2; }.site-footer > span { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Poetry writing studio */
body.writer-open { overflow: hidden; }

.writer-studio {
  --writer-paper-size: 23px;
  --writer-left-width: clamp(300px, 18vw, 360px);
  --writer-right-width: clamp(390px, 24vw, 480px);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  background: #09090b;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.writer-studio.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.writer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(9,9,11,.96);
  backdrop-filter: blur(18px);
}

.writer-topbar-left, .writer-topbar-actions { display: flex; align-items: center; gap: 10px; }
.writer-brand { display: flex; align-items: center; gap: 9px; }
.writer-brand > div { display: flex; flex-direction: column; gap: 2px; }
.writer-brand strong { font-size: 11px; font-weight: 600; }
.writer-brand small { color: var(--faint); font-size: 8px; letter-spacing: .04em; }

.writer-icon-button, .writer-ghost-button, .writer-publish-button, .writer-tool, .writer-danger-button {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.writer-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}
.writer-icon-button:hover, .writer-ghost-button:hover, .writer-tool:hover { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,.035); }
.writer-ghost-button { padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 9px; }
.writer-publish-button { padding: 9px 13px 9px 16px; border-radius: 999px; border-color: var(--ink); background: var(--ink); color: var(--bg); font-size: 9px; font-weight: 600; display: inline-flex; align-items: center; gap: 14px; }
.writer-publish-button:hover { transform: translateY(-1px); background: white; }

.writer-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--writer-left-width) minmax(520px, 1fr) var(--writer-right-width);
  background: #0c0c0f;
}

.writer-sidebar {
  min-height: 0;
  overflow-y: auto;
  padding: 28px 26px;
  background: #0d0d10;
  scrollbar-width: thin;
  scrollbar-color: #2a2830 transparent;
}
.writer-sidebar-left { border-right: 1px solid var(--line); }
.writer-sidebar-right { border-left: 1px solid var(--line); }
.writer-panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.writer-panel-heading > span { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: #d7d1d8; }
.writer-panel-heading small { color: var(--faint); font-size: 9px; }

.writer-field { display: block; margin-bottom: 23px; }
.writer-field > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.writer-field > small { display: block; margin-top: 7px; color: var(--faint); font-size: 8px; line-height: 1.5; }
.writer-field input, .writer-field select {
  width: 100%;
  height: 41px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #111115;
  color: var(--ink);
  padding: 0 12px;
  font-size: 10px;
}
.writer-field input:focus, .writer-field select:focus { border-color: rgba(200,189,255,.45); }
.writer-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b6870 50%), linear-gradient(135deg, #6b6870 50%, transparent 50%); background-position: calc(100% - 13px) 15px, calc(100% - 9px) 15px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }

.writer-chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.writer-chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 11px; font-size: 9px; cursor: pointer; }
.writer-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.writer-chip.active { background: rgba(200,189,255,.12); color: var(--accent); border-color: rgba(200,189,255,.28); }

.writer-stat-block { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin: 27px 0 18px; }
.writer-stat-block div { min-height: 66px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.writer-stat-block div:nth-child(odd) { border-right: 1px solid var(--line); }
.writer-stat-block div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.writer-stat-block span { color: var(--faint); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.writer-stat-block strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.writer-danger-button { width: 100%; border-radius: 7px; padding: 10px; color: #806b70; font-size: 9px; }
.writer-danger-button:hover { border-color: rgba(173,92,106,.35); background: rgba(173,92,106,.06); color: #bd8791; }

.writer-canvas { min-height: 0; overflow-y: auto; background: radial-gradient(circle at 50% 10%, rgba(200,189,255,.035), transparent 32%), #0b0b0e; }
.writer-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,14,.9);
  backdrop-filter: blur(16px);
}
.writer-tool-group { display: flex; align-items: center; gap: 5px; }
.writer-tool { min-width: 31px; height: 29px; padding: 0 8px; border-radius: 6px; color: var(--muted); font-family: var(--serif); font-size: 14px; }
.writer-tool:last-child { font-family: var(--sans); font-size: 8px; }

.writer-paper {
  width: min(760px, calc(100% - 70px));
  min-height: calc(100vh - 178px);
  margin: 38px auto 70px;
  padding: 68px 74px 46px;
  border: 1px solid rgba(255,255,255,.08);
  background: #101014;
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
  display: flex;
  flex-direction: column;
}
.writer-eyebrow { margin: 0 0 30px; display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 8px; text-transform: uppercase; letter-spacing: .16em; }
.writer-eyebrow span { width: 20px; height: 1px; background: currentColor; }
.poem-title-input, .poem-subtitle-input, .poem-body-input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); }
.poem-title-input { padding: 0; font-family: var(--serif); font-size: clamp(46px, 5vw, 72px); line-height: .95; letter-spacing: -.04em; }
.poem-title-input::placeholder { color: #444148; }
.poem-subtitle-input { margin-top: 18px; padding: 0; color: var(--muted); font-family: var(--serif); font-size: 18px; }
.poem-subtitle-input::placeholder { color: #343239; }
.poem-body-input {
  flex: 1;
  min-height: 470px;
  resize: none;
  margin-top: 58px;
  padding: 0;
  font-family: var(--serif);
  font-size: var(--writer-paper-size);
  line-height: 1.72;
  letter-spacing: .005em;
  caret-color: var(--accent);
}
.poem-body-input::placeholder { color: #343239; }
.writer-paper-footer { margin-top: 55px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--faint); font-size: 8px; }

.poem-preview-card { min-height: 440px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(200,189,255,.05), rgba(255,255,255,.012)); padding: 24px; }
.preview-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.poem-preview-card h2 { margin: 60px 0 0; font-family: var(--serif); font-size: 48px; line-height: .98; letter-spacing: -.035em; font-weight: 400; overflow-wrap: anywhere; }
.preview-subtitle { margin: 14px 0 0; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.preview-body { margin-top: 46px; min-height: 190px; white-space: pre-wrap; overflow-wrap: anywhere; color: #ccc7cd; font-family: var(--serif); font-size: 20px; line-height: 1.63; }
.preview-footer { margin-top: 42px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.preview-footer > span { font-size: 10px; color: var(--muted); }
.preview-footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.preview-footer small { padding: 5px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--faint); font-size: 7px; }
.writer-tips { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--faint); }
.writer-tips > span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.writer-tips p { margin: 10px 0 20px; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.writer-tips kbd { display: inline-grid; min-width: 23px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #111115; font-family: var(--sans); font-size: 7px; }
.writer-tips > small { margin-left: 9px; font-size: 7px; }

.writer-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 110;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #18171d;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  color: #ddd8df;
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: .2s ease;
}
.writer-toast.show { opacity: 1; transform: translate(-50%, 0); }

.writer-studio.focus-mode .writer-sidebar { display: none; }
.writer-studio.focus-mode .writer-layout { grid-template-columns: 1fr; }
.writer-studio.focus-mode .writer-paper { width: min(820px, calc(100% - 80px)); }
.writer-studio.preview-hidden .writer-sidebar-right { display: none; }
.writer-studio.preview-hidden:not(.focus-mode) .writer-layout { grid-template-columns: var(--writer-left-width) minmax(520px, 1fr); }

@media (max-width: 1280px) {
  .writer-studio { --writer-left-width: 260px; }
  .writer-layout { grid-template-columns: var(--writer-left-width) minmax(430px, 1fr); }
  .writer-sidebar-right { display: none; }
  .writer-paper { width: min(720px, calc(100% - 48px)); padding-inline: 58px; }
  .writer-studio.preview-popover .writer-sidebar-right { display: block; position: absolute; top: 68px; right: 0; bottom: 0; z-index: 8; width: min(420px, 42vw); box-shadow: -20px 0 60px rgba(0,0,0,.38); }
}

@media (max-width: 720px) {
  .writer-studio { grid-template-rows: auto minmax(0, 1fr); }
  .writer-topbar { min-height: 66px; padding: 10px 13px; }
  .writer-brand small { display: none; }
  .writer-topbar-actions { gap: 5px; }
  .writer-ghost-button { display: none; }
  .writer-publish-button { padding: 9px 11px; gap: 8px; }
  .writer-layout { display: block; overflow-y: auto; }
  .writer-sidebar-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .writer-sidebar-left .writer-field { margin-bottom: 16px; }
  .writer-sidebar-left .writer-field:nth-of-type(3), .writer-sidebar-left .writer-field:nth-of-type(4), .writer-stat-block, .writer-danger-button { display: none; }
  .writer-panel-heading { margin-bottom: 14px; padding-bottom: 12px; }
  .writer-canvas { overflow: visible; }
  .writer-toolbar { top: 0; height: 48px; padding-inline: 12px; }
  .writer-tool { min-width: 29px; padding-inline: 7px; }
  .writer-paper { width: 100%; min-height: 680px; margin: 0; padding: 48px 22px 38px; border: 0; box-shadow: none; }
  .poem-title-input { font-size: 52px; }
  .poem-body-input { min-height: 420px; margin-top: 44px; }
  .writer-studio.preview-popover .writer-sidebar-right { top: 66px; width: min(92vw, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  .writer-studio, .writer-toast, .writer-icon-button, .writer-ghost-button, .writer-publish-button, .writer-tool, .writer-danger-button {
    transition-duration: .01ms !important;
  }
}
