:root {
  color-scheme: dark;
  font-family: system-ui, 'Malgun Gothic', sans-serif;
  color: #f0f4ef;
  background: #090b0a;
  --accent: #8be2c2;
  --line: #29352f;
  --muted: #b6c5bc;
  line-height: 1.75;
}
* { box-sizing: border-box; }
body, p, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.22; word-break: keep-all; }
h1 { font-size: clamp(2.25rem, 5.8vw, 4.9rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.14rem; margin: 1.45rem 0 .5rem; }
.wrap { width: min(76rem, calc(100% - 2.4rem)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; padding: .5rem; transform: translateY(-200%); background: #17231d; z-index: 4; }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--line); }
.header, .footer, .header nav, .footer nav, .actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.15rem;
}
.header, .footer { justify-content: space-between; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.35rem; font-weight: 900; color: inherit; text-decoration: none; }
.brand-mark { width: 2.1rem; height: 2.1rem; background: url('/logo.svg') center / contain no-repeat; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.header nav, .footer nav { font-size: .9rem; }
.button, .header-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border-radius: .4rem; font-weight: 800; text-decoration: none; }
.button { background: var(--accent); color: #112a21; }
.button:hover { background: #bbf5dd; }
.header-contact { color: var(--accent); border: 1px solid var(--line); }
.header-contact:hover { border-color: var(--accent); }
.landing { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 1rem; padding-block: 1.2rem 2rem; }
.hero { display: grid; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #102219; }
.hero > * { grid-area: 1 / 1; }
.hero .cover { position: relative; z-index: -1; min-height: 100%; }
.hero .cover img { position: absolute; inset: 0; }
.hero .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #07110ef7, #07110eb3 64%, #07110e50); }
.hero-copy { align-self: end; padding: clamp(1.35rem, 5vw, 3.5rem); min-height: 20rem; display: flex; flex-direction: column; justify-content: end; }
.hero-copy p { max-width: 34ch; color: #e0ebe3; }
.actions { margin-top: 1.2rem; }
.directory { padding: 1.3rem; background: #111a15; border: 1px solid var(--line); border-radius: .9rem; }
.directory h2, .related-guides h2 { font-size: 1.25rem; margin-bottom: .65rem; }
.guide-list, .contents ul { margin: 0; padding: 0; list-style: none; }
.guide-list li { border-top: 1px solid var(--line); }
.guide-list a { display: grid; gap: .1rem; padding-block: .6rem; text-decoration: none; color: inherit; }
.guide-list a:hover strong { color: var(--accent); text-decoration: underline; }
.guide-list span { color: var(--muted); font-size: .875rem; }
.reading-layout { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3.1fr); align-items: start; gap: clamp(1.5rem, 6vw, 5rem); padding-block: 2rem 3rem; }
.contents { position: sticky; top: 1.25rem; border-left: 2px solid #38634f; padding: .45rem 0 .45rem 1rem; }
.contents strong { display: block; margin-bottom: .45rem; }
.contents li + li { margin-top: .5rem; }
.contents a { font-size: .92rem; }
.article-row { padding-bottom: 2.3rem; margin-bottom: 2.3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.article-row p, .intro { color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.guide-lead { padding-top: 2rem; }
.guide-lead nav { display: flex; gap: .8rem; margin-bottom: 1rem; color: var(--muted); }
.guide-lead h1 { max-width: 24ch; font-size: clamp(2rem, 5vw, 3.8rem); }
.guide-lead .cover { margin-top: 1.4rem; aspect-ratio: 3 / 1; }
.illustration { aspect-ratio: 3 / 1; margin-bottom: 1.15rem; }
.illustration, .guide-lead .cover { overflow: hidden; border-radius: .55rem; border: 1px solid var(--line); background: #142019; }
figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.byline { color: var(--muted); margin-top: .85rem; font-size: .9rem; }
.sale-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.35rem; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: .7rem; background: #111a15; }
.sale-cta h2 { margin-bottom: .3rem; }
.related-guides { padding-bottom: 2rem; }
footer { border-top: 1px solid var(--line); }
.footer { padding-bottom: 6rem; }
.editor-page, .editor-public { max-width: 50rem; padding-block: 2rem 5rem; }
.editor-page label { display: grid; gap: .35rem; margin-top: 1rem; }
.editor-page small { color: var(--muted); }
.editor-page input:not([type="checkbox"]), .editor-page textarea { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: .4rem; background: #111a15; color: inherit; font: inherit; }
.editor-page textarea { resize: vertical; }
.editor-page .checkbox { display: flex; align-items: center; }
.editor-page button { cursor: pointer; border: 0; font: inherit; font-weight: 800; }
.editor-page button:disabled { opacity: .6; cursor: wait; }
.editor-page .editor-secondary { color: #ccf7e7; background: #223e33; }
.editor-page :is(input, textarea, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.editor-page #status { min-height: 1.7rem; margin-top: .5rem; }
.editor-thumb { width: min(100%, 14rem); margin-top: .65rem; }
.editor-public img { width: 100%; max-height: 36rem; object-fit: contain; margin-bottom: 1.3rem; }
.editor-public p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 1rem; }
.editor-posts { padding-block: 1rem 2.5rem; }
.floating-contact {
  position: fixed; z-index: 3; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .65rem;
  min-height: 48px; padding: .55rem .9rem; border: 1px solid #507c69; border-radius: .65rem;
  background: #132820; color: #ccf7e7; text-decoration: none; box-shadow: 0 .5rem 1.4rem #0007;
  animation: market-dock-in .48s ease-out both;
}
.floating-contact::before { content: ''; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); animation: market-signal 2.8s ease-out infinite; }
.floating-contact:hover { border-color: var(--accent); }
@keyframes market-dock-in { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: none; } }
@keyframes market-signal { 0%, 45% { box-shadow: 0 0 0 0 #8be2c285; } 82%, 100% { box-shadow: 0 0 0 .45rem #8be2c200; } }
@media (max-width: 50rem) {
  .landing, .reading-layout { grid-template-columns: 1fr; }
  .contents { position: static; }
  .header nav { order: 1; width: 100%; }
  .hero-copy { min-height: 17rem; }
  .illustration, .guide-lead .cover { aspect-ratio: 2 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-contact, .floating-contact::before { animation: none; }
}
