@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=Sarabun:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b1f2a;
  --ink-soft: #183744;
  --paper: #f4f0e7;
  --paper-deep: #e8e0d2;
  --sand: #d5b276;
  --copper: #bb765b;
  --muted: #6f7b78;
  --line: rgba(11,31,42,.16);
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Sarabun', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); }
body::selection { background: var(--sand); color: var(--ink); }
.page-glow { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 82% 13%, rgba(213,178,118,.22), transparent 24%), radial-gradient(circle at 7% 80%, rgba(187,118,91,.10), transparent 23%); z-index: -1; }
.site-header { height: 82px; padding: 0 clamp(22px, 5vw, 76px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 500; }
.wordmark-mark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 15px; line-height: 1; transform: rotate(-25deg); }
.header-note { color: var(--muted); }
.hero { max-width: 1240px; margin: 0 auto; padding: clamp(84px, 11vw, 154px) clamp(22px, 7vw, 110px) 98px; position: relative; }
.hero-kicker, .eyebrow, .rail-label, .toc-title { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--copper); }
.kicker-line { width: 44px; height: 1px; background: var(--copper); }
.hero h1 { max-width: 950px; margin: 23px 0 24px; font-family: var(--display); font-size: clamp(48px, 7vw, 106px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--copper); font-weight: 500; }
.hero-dek { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.7; }
.hero-meta { margin-top: 38px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.meta-dot { color: var(--copper); }
.wave-ornament { position: absolute; right: clamp(24px, 9vw, 140px); bottom: 34px; display: flex; align-items: end; gap: 4px; height: 52px; opacity: .7; }
.wave-ornament span { display: block; width: 2px; background: var(--sand); transform-origin: bottom; animation: tide 2.8s ease-in-out infinite; }
.wave-ornament span:nth-child(1){height:20px}.wave-ornament span:nth-child(2){height:37px;animation-delay:.18s}.wave-ornament span:nth-child(3){height:51px;animation-delay:.35s}.wave-ornament span:nth-child(4){height:29px;animation-delay:.5s}.wave-ornament span:nth-child(5){height:43px;animation-delay:.7s}
@keyframes tide { 50% { transform: scaleY(.45); opacity: .5; } }
.reading-layout { max-width: 1240px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 76px) 120px; display: grid; grid-template-columns: 130px minmax(0, 690px) 190px; gap: clamp(28px, 5vw, 76px); align-items: start; }
.side-rail { position: sticky; top: 32px; padding-top: 9px; color: var(--muted); }
.rail-number { margin-top: 26px; color: var(--copper); font-family: var(--display); font-size: 58px; line-height: 1; }
.rail-rule { width: 27px; height: 1px; margin: 17px 0 15px; background: var(--ink); }
.rail-caption { font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: .03em; }
.article-shell { min-width: 0; }
.article-tools { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.tiny-icon { color: var(--copper); font-size: 15px; margin-right: 5px; }
.share-button, .share-actions button { border: 1px solid var(--ink); border-radius: 0; padding: 11px 14px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; transition: .2s ease; }
.share-button:hover, .share-actions button:hover { background: var(--ink); color: var(--paper); }
.share-button span { margin-right: 6px; color: var(--copper); }
.article-content { padding-top: 36px; font-size: 18px; line-height: 1.92; color: #2d3b3d; }
.article-content h1 { display: none; }
.article-content h2 { position: relative; margin: 74px 0 20px; color: var(--ink); font-family: var(--display); font-size: clamp(30px, 3.8vw, 43px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; scroll-margin-top: 28px; }
.article-content h2::before { content: '§'; position: absolute; left: -38px; top: 2px; color: var(--copper); font-family: var(--mono); font-size: 15px; }
.article-content h3 { margin: 42px 0 13px; font-size: 22px; }
.article-content p { margin: 0 0 24px; }
.article-content p:first-of-type::first-letter { float: left; padding: 8px 9px 0 0; color: var(--copper); font-family: var(--display); font-size: 74px; line-height: .74; }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-endmark { display: flex; justify-content: center; align-items: center; gap: 13px; margin: 70px 0 72px; color: var(--copper); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; }
.article-endmark span:first-child, .article-endmark span:last-child { font-size: 16px; }
.share-card { display: flex; justify-content: space-between; align-items: end; gap: 22px; padding: 31px 28px; background: var(--ink); color: var(--paper); }
.share-card .eyebrow { margin: 0 0 12px; color: var(--sand); }
.share-card h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 35px); font-weight: 500; line-height: 1.1; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.share-actions button { border-color: var(--paper); color: var(--paper); white-space: nowrap; }
.share-actions button:hover { background: var(--paper); color: var(--ink); }
.share-actions .copy-button { border-color: rgba(244,240,231,.45); color: rgba(244,240,231,.75); }
.toc { position: sticky; top: 32px; padding-top: 8px; }
.toc-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.toc-title span { color: var(--muted); font-size: 8px; }
.toc ol { list-style: none; padding: 0; margin: 16px 0 34px; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.4; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--copper); font-family: var(--mono); font-size: 9px; padding-top: 2px; }
.toc a:hover, .toc a.active { color: var(--ink); }
.future-slot { padding: 17px 14px; border: 1px dashed rgba(11,31,42,.28); color: var(--muted); }
.slot-label { display: block; margin-bottom: 13px; color: var(--copper); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.future-slot strong { display: block; color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 500; line-height: 1.2; }
.future-slot small { display: block; margin-top: 13px; font-family: var(--mono); font-size: 8px; }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 26px clamp(22px, 5vw, 76px) 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 17px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .reading-layout { grid-template-columns: 1fr minmax(0, 190px); } .side-rail { display: none; } }
@media (max-width: 700px) { .site-header { height: 68px; } .header-note { display: none; } .hero { padding-top: 70px; padding-bottom: 85px; } .hero h1 { font-size: clamp(46px, 14vw, 78px); } .hero-dek { font-size: 16px; line-height: 1.65; } .wave-ornament { right: 24px; bottom: 20px; } .reading-layout { display: block; padding-bottom: 80px; } .toc { position: static; margin-top: 58px; padding: 18px 0 0; border-top: 1px solid var(--line); } .toc ol { columns: 2; column-gap: 23px; } .toc li { break-inside: avoid; } .article-content { font-size: 17px; line-height: 1.85; } .article-content h2 { margin-top: 58px; } .article-content h2::before { display: none; } .share-card { display: block; padding: 25px 21px; } .share-actions { justify-content: flex-start; margin-top: 23px; } .site-footer { display: grid; gap: 8px; } }

/* rueangmakstory home and visitor counter */
.site-nav { display: flex; align-items: center; gap: 24px; }
.home-link { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.home-link:hover { color: var(--copper); }
.home-link:first-letter { color: var(--copper); }
.article-home-button { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.article-home-button:hover { color: var(--copper); }
.home-main { max-width: 1240px; margin: 0 auto; }
.home-hero { min-height: 505px; padding: clamp(75px, 10vw, 130px) clamp(22px, 7vw, 110px) 58px; position: relative; border-bottom: 1px solid var(--line); }
.home-hero h1 { max-width: 800px; margin: 23px 0 22px; font-family: var(--display); font-size: clamp(54px, 8vw, 112px); font-weight: 500; line-height: .97; letter-spacing: -.05em; }
.home-hero h1 em { color: var(--copper); font-weight: 500; }
.home-dek { max-width: 480px; color: var(--ink-soft); font-size: 18px; line-height: 1.75; }
.home-hero-bottom { position: absolute; right: clamp(22px, 7vw, 110px); bottom: 53px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.home-wave { color: var(--sand); font-size: 23px; letter-spacing: -.28em; }
.story-index { padding: 62px clamp(22px, 7vw, 110px) 118px; }
.index-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 24px; }
.index-heading h2 { margin: 11px 0 0; font-family: var(--display); font-size: clamp(33px, 4vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.home-counter { min-width: 150px; padding: 11px 0 0 20px; border-left: 1px solid var(--line); }
.counter-label { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.home-counter strong { display: block; margin-top: 6px; color: var(--copper); font-family: var(--display); font-size: 25px; font-weight: 500; }
.story-card { display: grid; grid-template-columns: 78px minmax(0, 1fr) 160px; gap: 30px; padding: 35px 0 36px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.story-card-number { color: var(--copper); font-family: var(--display); font-size: 42px; line-height: 1; }
.story-category { margin: 0 0 17px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.story-card h3 { margin: 0 0 18px; color: var(--ink); font-family: var(--display); font-size: clamp(31px, 4vw, 50px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.story-card h3 em { color: var(--copper); font-weight: 500; }
.story-card-main > p:not(.story-category) { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.read-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 27px; color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.read-link span { color: var(--copper); font-size: 17px; transition: transform .2s; }
.read-link:hover span { transform: translate(3px, -3px); }
.story-card-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.7; text-align: right; text-transform: uppercase; }
.submerged-mark { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid var(--sand); border-radius: 50%; color: var(--copper); font-size: 42px; transform: rotate(-25deg); }
.future-index { display: grid; grid-template-columns: 78px minmax(0, 1fr) 160px; gap: 30px; padding-top: 24px; color: var(--muted); }
.future-index span { grid-column: 2; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.future-index strong { grid-column: 2; margin-top: -20px; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 500; }
.future-index small { grid-column: 3; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.6; }
.future-slot a { display: inline-block; margin-top: 13px; color: var(--copper); font-family: var(--mono); font-size: 9px; text-decoration: none; }
.future-slot a:hover { color: var(--ink); }
@media (max-width: 700px) { .site-nav { gap: 12px; } .site-nav .header-note { display: none; } .home-hero { min-height: 545px; padding-top: 70px; } .home-hero h1 { font-size: clamp(51px, 15vw, 78px); } .home-dek { font-size: 16px; } .home-hero-bottom { left: 22px; right: auto; bottom: 36px; } .index-heading { align-items: start; flex-direction: column; } .home-counter { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 13px; width: 100%; } .story-card { grid-template-columns: 40px minmax(0, 1fr); gap: 15px; } .story-card-side { display: none; } .story-card-number { font-size: 30px; } .story-card h3 { font-size: 36px; } .future-index { grid-template-columns: 40px 1fr; gap: 15px; } .future-index span, .future-index strong { grid-column: 2; } .future-index small { grid-column: 2; margin-top: 2px; } .article-tools { flex-wrap: wrap; gap: 13px; } .article-home-button { order: -1; width: 100%; } }
