/* ============================================================
   The Naked Journal
   Its own stylesheet on purpose: the home page's scroll
   choreography is delicate, so nothing here can reach it.
   Tokens mirror styles.css so the two feel like one site.
   ============================================================ */

:root {
  --ink: #1c1014;
  --dark: #16090f;
  --pink: #ff3fa8;
  --pink-soft: #ff6fc0;
  --pink-pale: #ffb3e0;
  --paper: #f7f2f5;
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.30);
  --rule: rgba(255, 255, 255, 0.10);
  --font: 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Iowan Old Style', 'Charter', 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

.art-body {
  margin: 0;
  background: var(--dark);
  color: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* A single soft aurora, echoing the home page without the machinery. */
.art-body::before {
  content: '';
  position: fixed;
  top: -30vh;
  left: 50%;
  width: min(1100px, 160vw);
  height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 63, 168, 0.20) 0%, rgba(255, 63, 168, 0.06) 42%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(255, 63, 168, 0.32); }

:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.art-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px calc(14px + env(safe-area-inset-top, 0px));
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(22, 9, 15, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.art-mark-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px;
  margin: -6px;
  color: var(--pink);
  cursor: pointer;
  line-height: 0;
  border-radius: 10px;
  transition: transform 120ms ease, color 120ms ease;
}
.art-mark-btn:active { transform: scale(0.92); }
.art-mark-btn[aria-expanded="true"] { color: var(--pink-pale); }

.art-header-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}
.art-header-cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 16px;
  border-radius: 9999px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.14) 100%);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Logo menu (shared with the home page — see styles.css for the
   home page's copy of .site-menu, which must stay in sync)
   ------------------------------------------------------------ */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.site-menu[hidden] { display: none !important; }
.site-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 7, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: menuFade 180ms ease both;
}
.site-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(76px + env(safe-area-inset-top, 0px)) 26px 30px;
  background: linear-gradient(180deg, #21101a 0%, #180a11 100%);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuDrop 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.site-menu-panel a {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-menu-panel a:last-child { border-bottom: 0; color: var(--pink-soft); }
.site-menu-close {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 22px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
@keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.art-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px 64px;
}

.art-hero { padding: 46px 0 30px; }
.art-hero-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.art-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  background-image: linear-gradient(180deg, #ffffff 0%, #f6e6ef 34%, #ffb3e0 78%, #ff6fc0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.art-hero-dek {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}

.art-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 22px;
  margin: 0 -22px 6px;
  padding-left: 22px;
  padding-right: 22px;
  scrollbar-width: none;
}
.art-chips::-webkit-scrollbar { display: none; }
.art-chip {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 9999px;
  border: 1px solid var(--rule);
  color: var(--muted);
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.art-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.art-chip.is-active {
  color: var(--dark);
  background: var(--pink-pale);
  border-color: var(--pink-pale);
  font-weight: 600;
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.art-card {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.art-card a { display: block; }
.art-card-cat {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
.art-card-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: #ffffff;
  transition: color 120ms ease;
}
.art-card a:hover .art-card-title { color: var(--pink-pale); }
.art-card-dek {
  margin: 0 0 11px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.art-card-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.art-card--featured {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
  padding: 4px 0 30px;
}
.art-card--featured .art-card-title {
  font-size: clamp(27px, 6.4vw, 34px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 11px;
}
.art-card--featured .art-card-dek { font-size: 17px; }

.art-grid { margin-top: 6px; }
.art-empty { color: var(--muted); padding: 40px 0; }

/* ------------------------------------------------------------
   Article
   ------------------------------------------------------------ */
.art-crumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 26px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.art-crumbs a:hover { color: var(--pink-pale); }

.art-article-head { padding: 20px 0 26px; }
.art-article-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 7.6vw, 44px);
  line-height: 1.09;
  letter-spacing: -0.033em;
  font-weight: 700;
  color: #ffffff;
}
.art-dek {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.66);
}

.art-prose {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.84);
}
.art-prose > *:first-child { margin-top: 0; }
.art-prose p { margin: 0 0 1.3em; }
.art-prose h2 {
  font-family: var(--font);
  margin: 2.1em 0 0.6em;
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #ffffff;
}
.art-prose h3 {
  font-family: var(--font);
  margin: 1.8em 0 0.5em;
  font-size: 19px;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: #ffffff;
}
.art-prose ul, .art-prose ol { margin: 0 0 1.3em; padding-left: 1.25em; }
.art-prose li { margin-bottom: 0.6em; }
.art-prose li::marker { color: var(--pink); }
.art-prose strong { color: #ffffff; font-weight: 600; }
.art-prose a {
  color: var(--pink-pale);
  text-decoration: underline;
  text-decoration-color: rgba(255, 179, 224, 0.4);
  text-underline-offset: 3px;
}
.art-prose a:hover { text-decoration-color: var(--pink-pale); }
.art-prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--pink);
  color: #ffffff;
}
.art-prose blockquote p { margin: 0; }
.art-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
.art-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}
.art-tags a {
  display: block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.art-tags a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.24); }

.art-sources {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.art-sources h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.art-sources ul { margin: 0; padding-left: 1.1em; }
.art-sources li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 7px;
}

.art-disclaimer {
  margin: 26px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--faint);
}

.art-related { margin-top: 46px; }
.art-related > h2 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------
   App CTA
   ------------------------------------------------------------ */
.app-cta {
  margin: 46px 0 0;
  padding: 30px 26px 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 63, 168, 0.22);
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(255, 63, 168, 0.16) 0%, transparent 62%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}
.app-cta-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}
.app-cta h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: #ffffff;
}
.app-cta p {
  margin: 0 auto 22px;
  max-width: 44ch;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--muted);
}
.app-cta em { color: var(--pink-pale); font-style: normal; }

.art-btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
  background: linear-gradient(180deg, #ffffff 0%, #ffd9ee 100%);
  box-shadow: 0 10px 30px rgba(255, 63, 168, 0.22);
  transition: transform 120ms ease;
}
.art-btn:active { transform: scale(0.96); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.art-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 24px calc(44px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  max-width: 720px;
  margin: 0 auto;
}
.art-footer .mark { color: rgba(255, 255, 255, 0.45); margin: 0 auto 18px; }
.art-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.art-footer nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.art-footer nav a:hover { color: #ffffff; }
.art-footer .legal {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--faint);
  margin: 0 auto;
  max-width: 60ch;
}
.art-footer .disclaimer { margin-top: 12px; }

/* ------------------------------------------------------------
   Wider screens: the column stays a column, it just breathes.
   ------------------------------------------------------------ */
@media (min-width: 700px) {
  .art-main { padding-left: 34px; padding-right: 34px; }
  .art-chips { margin-left: -34px; margin-right: -34px; padding-left: 34px; padding-right: 34px; }
  .art-hero { padding-top: 62px; }
  .art-prose { font-size: 19.5px; }
  .site-menu-panel { padding-left: 34px; padding-right: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-backdrop, .site-menu-panel { animation: none; }
  * { transition-duration: 1ms !important; }
}
