/* Posteando public pages. Warm editorial: cream paper, navy ink, Posteando blue, mango accent. */
:root {
  color-scheme: light;
  --paper: oklch(97.4% 0.014 80);
  --paper-deep: oklch(94.6% 0.022 78);
  --surface: oklch(99.2% 0.006 80);
  --ink: oklch(24% 0.035 265);
  --ink-soft: oklch(42% 0.03 262);
  --muted: oklch(50% 0.025 262);
  --line: oklch(88% 0.02 78);
  --blue: oklch(49% 0.17 264);
  --blue-deep: oklch(40% 0.15 264);
  --blue-wash: oklch(94% 0.03 262);
  --mango: oklch(81% 0.15 72);
  --mango-wash: oklch(93% 0.06 80);
  --terracotta: oklch(60% 0.13 42);
  --sage: oklch(68% 0.05 140);
  --radius: 22px;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Onest', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font: 100%/1.6 var(--body);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.22em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 520; font-variation-settings: 'SOFT' 50, 'opsz' 96; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.9rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; font-variation-settings: 'SOFT' 50, 'opsz' 36; }
em { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.mark { background: linear-gradient(transparent 62%, var(--mango) 62%, var(--mango) 90%, transparent 90%); padding: 0 0.06em; }

.site-header, main, .site-footer { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip-link { position: fixed; left: 24px; top: -100px; z-index: 5; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--mango); margin-left: -0.32em; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: 0.94rem; text-decoration: none; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.site-header nav a:hover { background: var(--paper-deep); color: var(--ink); }
.site-header nav a[aria-current] { color: var(--ink); font-weight: 600; }
.site-header nav .login { margin-left: 10px; background: var(--ink); color: var(--paper); font-weight: 600; padding-inline: 20px; }
.site-header nav .login:hover { background: var(--blue-deep); color: var(--paper); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); max-width: 44ch; margin-top: 26px; }
.small { font-size: 0.82rem; line-height: 1.65; color: var(--muted); max-width: 52ch; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 36px 0 24px; }
.button { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 14px 26px; background: var(--blue); color: var(--surface); border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: 0 1px 0 oklch(100% 0 0 / 0.25) inset, 0 10px 28px oklch(49% 0.17 264 / 0.25); transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.button:hover { background: var(--blue-deep); transform: translateY(-1px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink); }
.text-link:hover { color: var(--blue); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 6vw, 88px); padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 8vw, 112px); }
.hero h1 em { color: var(--blue); }
.hero-art { position: relative; }
.hero-art .frame { border-radius: 32px 32px 32px 140px; overflow: hidden; background: var(--paper-deep); aspect-ratio: 3 / 2; box-shadow: 0 40px 80px -40px oklch(24% 0.035 265 / 0.35); }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.post-chip { position: absolute; left: clamp(-28px, -2vw, -12px); bottom: clamp(18px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 18px 14px 14px; background: var(--surface); border-radius: 18px; box-shadow: 0 18px 40px -18px oklch(24% 0.035 265 / 0.45); max-width: 260px; animation: rise 0.9s var(--ease) 0.25s both; }
.post-chip .dot { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--mango-wash); display: grid; place-items: center; color: var(--terracotta); font-weight: 700; font-size: 0.9rem; }
.post-chip strong { font-size: 0.9rem; }
.post-chip span { font-size: 0.78rem; color: var(--muted); }
.post-chip .ok { color: oklch(48% 0.09 150); font-weight: 600; }

/* Steps */
.steps { padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); }
.steps-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 60px; margin-bottom: clamp(32px, 4vw, 56px); }
.steps-head p { max-width: 40ch; color: var(--ink-soft); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li:nth-child(2) { margin-top: clamp(0px, 4vw, 56px); }
.steps li:nth-child(3) { margin-top: clamp(0px, 8vw, 112px); }
.steps figure { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); aspect-ratio: 1; }
.steps figure img { width: 100%; height: 100%; object-fit: cover; }
.steps li h3::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--terracotta); margin-bottom: 10px; }
.steps li p { margin-top: 10px; color: var(--ink-soft); max-width: 34ch; }

/* Features */
.section { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section-title h2 em { color: var(--blue); }
.feature-list article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; }
.feature-list article:first-child { padding-top: 4px; }
.feature-list article + article { border-top: 1px solid var(--line); }
.feature-list article > span { font-family: var(--display); font-size: 1.4rem; color: var(--mango); font-weight: 600; line-height: 1.3; -webkit-text-stroke: 0.4px var(--terracotta); }
.feature-list p { margin-top: 10px; color: var(--ink-soft); }

/* Plan */
.notice { position: relative; display: grid; gap: 14px; padding: clamp(28px, 4vw, 52px); margin: 8px 0 clamp(56px, 8vw, 104px); border-radius: 32px; background: var(--ink); color: var(--paper); overflow: hidden; }
.notice::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, oklch(81% 0.15 72 / 0.55), transparent 70%); pointer-events: none; }
.notice h2 { color: var(--paper); max-width: 22ch; }
.notice p { color: oklch(88% 0.02 262); max-width: 68ch; }
.notice strong { color: var(--mango); font-weight: 600; }
.notice a { color: var(--paper); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }

/* Inner pages */
.page-heading { padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); max-width: 860px; }
.page-heading .lead { max-width: 58ch; }
.copy { max-width: 70ch; font-size: 1.04rem; }
.copy h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin: 0 0 16px; }
.copy p { margin-bottom: 16px; color: var(--ink-soft); }
.copy section { scroll-margin-top: 26px; }
.copy section + section { margin-top: 48px; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); margin-bottom: 96px; }
.outline { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--line); }
.outline a { display: flex; align-items: center; min-height: 40px; font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; }
.outline a:hover { color: var(--blue); }

.channel-list { margin-bottom: 48px; border-top: 1px solid var(--line); }
.channel-list article { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding: 30px 0; border-bottom: 1px solid var(--line); }
.channel-list h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-bottom: 12px; }
.channel-list p { color: var(--ink-soft); max-width: 62ch; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: oklch(93% 0.05 150); color: oklch(38% 0.08 150); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.muted { background: var(--paper-deep); color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); margin-bottom: 96px; }
.contact-card { align-self: start; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--surface); box-shadow: 0 30px 60px -40px oklch(24% 0.035 265 / 0.4); }
.contact-card h2 { margin-bottom: 18px; }
.contact-card p { margin: 14px 0; color: var(--ink-soft); }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.05rem; }
.contact-layout .copy h2:not(:first-child) { margin-top: 36px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: start; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.site-footer > div p { margin-top: 6px; color: var(--ink-soft); font-family: var(--display); font-style: italic; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.footer-note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero > div:first-child > * { animation: rise 0.8s var(--ease) both; }
.hero > div:first-child > *:nth-child(2) { animation-delay: 0.06s; }
.hero > div:first-child > *:nth-child(3) { animation-delay: 0.12s; }
.hero > div:first-child > *:nth-child(4) { animation-delay: 0.18s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { margin-bottom: 28px; }
  .post-chip { left: 12px; bottom: -26px; }
  .section, .contact-layout { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(n) { margin-top: 0; }
  .guide-layout { grid-template-columns: 1fr; }
  .outline { position: static; display: grid; grid-template-columns: 1fr 1fr; border-left: 0; padding: 12px 16px; background: var(--paper-deep); border-radius: 16px; }
  .channel-list article { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .site-header { flex-wrap: wrap; padding: 14px 0 6px; gap: 10px; }
  .site-header nav { width: calc(100% + 10px); margin-left: -10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { padding-inline: 10px; font-size: 0.88rem; white-space: nowrap; }
  .site-header nav a[aria-current] { display: none; }
  .site-header { position: relative; }
  .site-header nav .login { position: absolute; right: 0; top: 12px; margin: 0; padding-inline: 16px; }
  .post-chip { padding: 10px 14px 10px 10px; max-width: 220px; gap: 2px 10px; }
  .post-chip .dot { width: 34px; height: 34px; font-size: 0.8rem; }
  .steps ol { grid-template-columns: 1fr; }
  .hero-art .frame { border-radius: 24px 24px 24px 80px; }
  .site-footer { grid-template-columns: 1fr; }
  .notice { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --ink-soft: var(--ink); --line: var(--ink); }
  a { text-decoration: underline; }
}
