/* MossAtlas: photo-grid social network for nature writers. Moss green + stone grey, Lexend. Prefix: ma- */

:root {
  --bg: #f3f5f0;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --surface-3: #e4e9de;
  --line: #d9dfd3;
  --line-2: #c7cfc0;
  --ink: #1b241c;
  --ink-2: #465046;
  --ink-3: #5f685e;
  --moss: #2f5a33;
  --moss-2: #2f6b33;
  --moss-hi: #3e7a3f;
  --moss-soft: #e2ecd6;
  --lichen: #b7d08a;
  --btn: #2f5a33;
  --btn-ink: #ffffff;
  --btn-hover: #24472a;
  --focus: #7aa83f;
  --shadow: 0 1px 2px rgba(27, 36, 28, 0.06), 0 8px 24px -12px rgba(27, 36, 28, 0.18);
  --shadow-lg: 0 2px 6px rgba(27, 36, 28, 0.06), 0 24px 60px -24px rgba(27, 36, 28, 0.32);
  --ring: conic-gradient(from 210deg, #2f5a33, #6f9a4c, #c3d68a, #a2aa9c, #4f7d43, #2f5a33);
  --t0-bg: #2f5a33; --t0-fg: #eef5e3;
  --t1-bg: #dbe7c9; --t1-fg: #213b22;
  --t2-bg: #5c645b; --t2-fg: #f2f4ee;
  --t3-bg: #e8e5d8; --t3-fg: #353a32;
  --ok-bg: #e3efd6; --ok-ink: #1f4a22; --ok-line: #9cc27a;
  --warn-bg: #fbefd9; --warn-ink: #6a4206; --warn-line: #e3b25c;
  --r: 16px;
  --rail: 0px;
  --font: 'Lexend', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111512;
    --surface: #181d19;
    --surface-2: #20271f;
    --surface-3: #283027;
    --line: #2b342c;
    --line-2: #3a453a;
    --ink: #e6ebe2;
    --ink-2: #bcc5b8;
    --ink-3: #9aa596;
    --moss: #8fbf72;
    --moss-2: #a3cf86;
    --moss-hi: #a3cf86;
    --moss-soft: #223020;
    --lichen: #c3d68a;
    --btn: #8fbf72;
    --btn-ink: #0f1a10;
    --btn-hover: #a3cf86;
    --focus: #c3d68a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --ring: conic-gradient(from 210deg, #5d8f4c, #a3cf86, #d9e6a8, #7b8577, #5d8f4c);
    --t0-bg: #355f36; --t0-fg: #eef5e3;
    --t1-bg: #2a3a25; --t1-fg: #d7e6c3;
    --t2-bg: #434a42; --t2-fg: #eef0ea;
    --t3-bg: #2f312b; --t3-fg: #dcd9cc;
    --ok-bg: #1d2e1b; --ok-ink: #cfe8bb; --ok-line: #4f7d43;
    --warn-bg: #33270f; --warn-ink: #f3d9a4; --warn-line: #8a6420;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--moss-hi); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.36em; }

.ma-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ma-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.ma-skip:focus { top: 12px; color: var(--btn-ink); }
.ma-i { width: 20px; height: 20px; flex: none; }

/* ── App shell: left rail (desktop) / top bar (mobile) ───────────────────────────────────────────── */
.ma-rail {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 62px; padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ma-brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; border-radius: 12px; }
.ma-brand__svg { height: 36px; width: auto; }
.ma-brand__svg text { fill: var(--ink); }
.ma-brand__svg tspan { fill: var(--moss-hi); }
.ma-brand .ma-mark { display: none; width: 44px; height: 44px; }
.ma-burger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 500; font-size: 0.95rem;
}
.ma-burger[aria-expanded='true'] { background: var(--moss-soft); border-color: var(--moss); }
.ma-nav { display: none; position: absolute; left: 0; right: 0; top: 62px; padding: 10px 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ma-nav.is-open { display: block; }
.ma-nav ul { list-style: none; display: grid; gap: 2px; }
.ma-nav__a, .ma-nav__in {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 400; font-size: 1rem;
}
.ma-nav__a .ma-i, .ma-nav__in .ma-i { width: 24px; height: 24px; }
.ma-nav__a:hover { background: var(--surface-2); color: var(--ink); }
.ma-nav__a[aria-current='page'] { font-weight: 600; color: var(--moss-2); background: var(--moss-soft); }
.ma-nav__in { margin-top: 8px; justify-content: center; background: var(--btn); color: var(--btn-ink); border-radius: 999px; font-weight: 600; }
.ma-nav__in:hover { background: var(--btn-hover); color: var(--btn-ink); }

.ma-col { min-width: 0; }
.ma-main { display: block; max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; outline: none; }
.ma-main--wide { max-width: 1120px; }
.ma-main--land { max-width: 1240px; padding-top: 28px; }

@media (min-width: 900px) {
  :root { --rail: 84px; }
  .ma-rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); height: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px;
    padding: 22px 12px 20px; border-bottom: 0; border-right: 1px solid var(--line); background: var(--surface); backdrop-filter: none;
  }
  .ma-brand { justify-content: center; }
  .ma-brand__svg { display: none; }
  .ma-brand .ma-mark { display: block; }
  .ma-burger { display: none; }
  .ma-nav { display: flex; flex-direction: column; flex: 1; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .ma-nav ul { gap: 6px; }
  .ma-nav__a, .ma-nav__in { justify-content: center; padding: 0; min-height: 52px; }
  .ma-nav__a span, .ma-nav__in span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ma-nav__in { margin-top: auto; width: 52px; height: 52px; align-self: center; }
  .ma-col { margin-left: var(--rail); }
  .ma-main { padding: 36px 32px 72px; }
}
@media (min-width: 1280px) {
  :root { --rail: 248px; }
  .ma-rail { padding: 28px 16px 24px; }
  .ma-brand { justify-content: flex-start; padding: 0 10px 14px; }
  .ma-brand__svg { display: block; height: 38px; }
  .ma-brand .ma-mark { display: none; }
  .ma-nav__a, .ma-nav__in { justify-content: flex-start; padding: 0 14px; }
  .ma-nav__a span, .ma-nav__in span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .ma-nav__in { width: auto; height: auto; align-self: stretch; justify-content: center; }
}

/* ── Footer ───────────────────────────────────────────────────────────────────────────────────── */
.ma-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 16px 28px; }
.ma-foot__top { max-width: 1120px; margin: 0 auto; display: grid; gap: 32px; }
.ma-foot__brand p { color: var(--ink-3); font-size: 0.92rem; margin-top: 12px; max-width: 34ch; }
.ma-foot__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.ma-foot__logo .ma-mark { width: 34px; height: 34px; }
.ma-foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ma-foot__g h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.ma-foot__g ul { list-style: none; display: grid; gap: 6px; }
.ma-foot__g a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; display: inline-flex; align-items: center; gap: 6px; }
.ma-foot__g a .ma-i { width: 16px; height: 16px; color: var(--moss-hi); }
.ma-foot__g a:hover, .ma-foot__g a[aria-current='page'] { color: var(--moss-2); text-decoration: underline; }
.ma-foot__base { max-width: 1120px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: 0.86rem; }
@media (min-width: 760px) {
  .ma-foot { padding: 48px 32px 32px; }
  .ma-foot__top { grid-template-columns: 1.1fr 2fr; }
  .ma-foot__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Buttons, pills, chips ───────────────────────────────────────────────────────────────────── */
.ma-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--btn);
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.ma-btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-ink); }
.ma-btn:active { transform: translateY(1px); }
.ma-btn .ma-i { width: 18px; height: 18px; }
.ma-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.ma-btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.ma-btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.ma-btn--block { width: 100%; }
.ma-btn--light { background: #f4f8ee; color: #1d3a20; border-color: #f4f8ee; }
.ma-btn--light:hover { background: #ffffff; color: #1d3a20; border-color: #fff; }
.ma-btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.ma-btn--line:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

.ma-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.ma-pill:hover { border-color: var(--moss); color: var(--moss-2); }
.ma-pill .ma-i { width: 16px; height: 16px; }
.ma-pill--soft { background: var(--moss-soft); border-color: transparent; color: var(--moss-2); min-height: 30px; padding: 0 12px; font-size: 0.82rem; }
.ma-pill--soft:hover { border-color: var(--moss); }
.ma-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--moss-soft); color: var(--moss-2); font-size: 0.86rem; font-weight: 500; }
.ma-chip .ma-i { width: 18px; height: 18px; }
.ma-kicker { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--moss-2); }
.ma-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.ma-link .ma-i { width: 18px; height: 18px; transition: transform 0.15s; }
.ma-link:hover .ma-i { transform: translateX(3px); }
.ma-ticks { list-style: none; display: grid; gap: 10px; }
.ma-ticks li { position: relative; padding-left: 30px; }
.ma-ticks li::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--moss-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%233e7a3f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ── Avatars: story ring + initials ──────────────────────────────────────────────────────────── */
.ma-ring { display: inline-grid; place-items: center; flex: none; border-radius: 50%; padding: 2.5px; background: var(--ring); text-decoration: none; }
.ma-ring img { border-radius: 50%; border: 2.5px solid var(--surface); background: var(--surface-2); object-fit: cover; aspect-ratio: 1; }
.ma-ring--xs img { width: 28px; height: 28px; border-width: 2px; }
.ma-ring--xs { padding: 2px; }
.ma-ring--sm img { width: 40px; height: 40px; }
.ma-ring--md img { width: 56px; height: 56px; border-width: 3px; }
.ma-ring--xl { padding: 4px; }
.ma-ring--xl img { width: 104px; height: 104px; border-width: 4px; }
.ma-av { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.ma-av--you { background: var(--surface-3); color: var(--ink-3); }
.ma-tone0 { background: var(--t0-bg); color: var(--t0-fg); }
.ma-tone1 { background: var(--t1-bg); color: var(--t1-fg); }
.ma-tone2 { background: var(--t2-bg); color: var(--t2-fg); }
.ma-tone3 { background: var(--t3-bg); color: var(--t3-fg); }

/* ── Forms ─────────────────────────────────────────────────────────────────────────────────────── */
.ma-input {
  display: block; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 1rem;
}
.ma-input::placeholder { color: var(--ink-3); }
.ma-input:hover { border-color: var(--ink-3); }
.ma-input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 45%, transparent); }
.ma-input--area { min-height: 120px; resize: vertical; line-height: 1.55; }
.ma-select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235f685e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.ma-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
label { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }

/* ── Landing ───────────────────────────────────────────────────────────────────────────────────── */
.ma-hero { display: grid; gap: 36px; align-items: center; }
.ma-hero__copy { display: grid; gap: 22px; justify-items: start; }
.ma-hero__h { font-size: clamp(2.3rem, 6.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; max-width: 13ch; }
.ma-hero__h span { color: var(--moss-hi); }
.ma-hero__p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); font-weight: 300; max-width: 46ch; line-height: 1.65; }
.ma-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ma-hl { list-style: none; display: flex; gap: 14px; overflow-x: auto; max-width: 100%; padding: 4px 2px 8px; scrollbar-width: none; }
.ma-hl::-webkit-scrollbar { display: none; }
.ma-hl li { display: grid; justify-items: center; gap: 6px; flex: none; }
.ma-hl__ring { display: block; border-radius: 50%; padding: 3px; background: var(--ring); }
.ma-hl__ring img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--bg); object-fit: cover; }
.ma-hl__l { font-size: 0.8rem; color: var(--ink-2); }
.ma-hero__side { position: relative; }
.ma-hero__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); background: var(--surface-3); }
.ma-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ma-signin {
  position: relative; margin: -72px 14px 0; display: grid; gap: 14px; padding: 24px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.ma-signin__top { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.ma-signin__top .ma-mark { width: 38px; height: 38px; }
.ma-signin__top h2 { font-size: 1.15rem; }
.ma-signin__f { display: grid; gap: 6px; }
.ma-signin__note { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-2); justify-content: center; }
.ma-signin__note .ma-i { width: 16px; height: 16px; color: var(--moss-hi); }
.ma-signin__alt { font-size: 0.86rem; color: var(--ink-3); text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 1000px) {
  .ma-hero { grid-template-columns: 1.02fr 0.98fr; gap: 56px; min-height: 620px; }
  .ma-hero__photo { aspect-ratio: 4 / 5; }
  .ma-signin { position: absolute; left: -8px; bottom: -28px; width: 320px; margin: 0; }
  .ma-hero__photo { margin-left: 120px; }
}

.ma-band { display: grid; gap: 40px; align-items: center; margin-top: 88px; padding: 32px 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.ma-band__text { display: grid; gap: 16px; align-content: start; }
.ma-band__text h2, .ma-split__text h2, .ma-lf__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; }
.ma-band__text > p:not(.ma-kicker) { color: var(--ink-2); font-weight: 300; font-size: 1.06rem; max-width: 48ch; }
.ma-phone { justify-self: center; width: min(300px, 100%); border-radius: 38px; border: 10px solid #1b231c; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-lg); }
.ma-phone__bar { height: 26px; display: grid; place-items: center; }
.ma-phone__bar span { width: 70px; height: 8px; border-radius: 8px; background: #1b231c; }
.ma-phone__cover { height: 72px; margin: 0 10px; border-radius: 14px; background-color: var(--moss); background-image: repeating-radial-gradient(circle at 24% 40%, transparent 0 10px, rgba(220, 232, 196, 0.25) 10px 11.5px); }
.ma-phone__id { display: flex; align-items: flex-end; gap: 10px; padding: 0 18px; margin-top: -26px; }
.ma-phone__av { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: var(--ring); }
.ma-phone__av .ma-mark { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--surface); }
.ma-phone__lines { display: grid; gap: 6px; flex: 1; padding-bottom: 6px; }
.ma-phone__lines i { display: block; height: 8px; border-radius: 6px; background: var(--surface-3); }
.ma-phone__lines i + i { width: 60%; }
.ma-phone__tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.ma-phone__tabs span { display: grid; place-items: center; height: 38px; color: var(--ink-3); }
.ma-phone__tabs span.is-on { color: var(--ink); box-shadow: inset 0 2px 0 var(--ink); }
.ma-phone__tabs .ma-i { width: 18px; height: 18px; }
.ma-phone__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ma-phone__grid li { aspect-ratio: 1; overflow: hidden; }
.ma-phone__grid img { width: 100%; height: 100%; object-fit: cover; }
.ma-phone__t { display: grid; align-content: center; gap: 5px; padding: 12px; }
.ma-phone__t i { display: block; height: 6px; border-radius: 4px; background: currentColor; opacity: 0.7; }
.ma-phone__t i:nth-child(2) { width: 80%; }
.ma-phone__t i:nth-child(3) { width: 55%; }
@media (min-width: 900px) {
  .ma-band { grid-template-columns: 1.1fr 0.9fr; padding: 56px; gap: 56px; }
}

.ma-lf { margin-top: 88px; }
.ma-lf__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ma-lf__grid { list-style: none; display: grid; gap: 16px; }
.ma-lf__c { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: border-color 0.15s, transform 0.15s; }
.ma-lf__c:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ma-lf__i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--moss-soft); color: var(--moss-2); margin-bottom: 4px; }
.ma-lf__i .ma-i { width: 24px; height: 24px; }
.ma-lf__c h3 { font-size: 1.08rem; }
.ma-lf__c p { color: var(--ink-2); font-size: 0.95rem; font-weight: 300; }
@media (min-width: 640px) { .ma-lf__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ma-lf__grid { grid-template-columns: repeat(4, 1fr); } }

.ma-split { display: grid; gap: 32px; align-items: center; margin-top: 88px; }
.ma-split__img { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.ma-split__img img { width: 100%; height: 100%; object-fit: cover; }
.ma-split__text { display: grid; gap: 16px; }
.ma-split__text > p:not(.ma-kicker) { color: var(--ink-2); font-weight: 300; font-size: 1.04rem; max-width: 50ch; }
@media (min-width: 900px) { .ma-split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.ma-cta { position: relative; margin-top: 88px; border-radius: 28px; overflow: hidden; background: #1d3420; color: #f2f7ea; }
.ma-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 34, 20, 0.92) 0%, rgba(22, 42, 25, 0.78) 45%, rgba(22, 42, 25, 0.18) 100%); z-index: 1; }
.ma-cta__in { position: relative; z-index: 2; display: grid; gap: 16px; padding: 44px 24px; max-width: 640px; }
.ma-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; }
.ma-cta p { color: #dbe7cf; font-weight: 300; font-size: 1.06rem; }
.ma-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (min-width: 760px) { .ma-cta__in { padding: 64px 56px; } }

/* ── Profile ───────────────────────────────────────────────────────────────────────────────────── */
.ma-cover { height: 150px; border-radius: 20px; overflow: hidden; background: var(--moss); }
.ma-cover img { width: 100%; height: 100%; object-fit: cover; }
.ma-cover__topo {
  display: block; width: 100%; height: 100%;
  background-color: var(--t0-bg);
  background-image:
    repeating-radial-gradient(circle at 24% 42%, transparent 0 16px, rgba(214, 230, 186, 0.24) 16px 17.5px),
    repeating-radial-gradient(circle at 80% 78%, transparent 0 22px, rgba(214, 230, 186, 0.16) 22px 23.5px);
}
.ma-ph { display: grid; gap: 14px; padding: 0 4px; }
.ma-ph > .ma-ring { margin-top: -54px; justify-self: start; align-self: start; box-shadow: 0 0 0 4px var(--bg); }
.ma-ph__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ma-ph__name { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.03em; }
.ma-ph__handle { color: var(--ink-3); font-size: 1rem; margin-top: 2px; }
.ma-ph__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; color: var(--ink-2); font-size: 0.97rem; }
.ma-stats strong { color: var(--ink); font-weight: 600; }
.ma-stats--sm { justify-content: center; gap: 4px 16px; font-size: 0.88rem; margin-top: 10px; }
.ma-ph__bio { margin-top: 12px; max-width: 60ch; color: var(--ink); line-height: 1.6; }
.ma-ph__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 0.92rem; color: var(--ink-3); }
.ma-ph__meta span, .ma-ph__meta a { display: inline-flex; align-items: center; gap: 6px; }
.ma-ph__meta a { font-weight: 500; text-decoration: none; }
.ma-ph__meta a:hover { text-decoration: underline; }
.ma-ph__meta .ma-i { width: 17px; height: 17px; }
@media (min-width: 720px) {
  .ma-cover { height: 230px; }
  .ma-ph { grid-template-columns: auto 1fr; gap: 28px; padding: 0 24px; }
  .ma-ph > .ma-ring { margin-top: -64px; }
  .ma-ring--xl img { width: 148px; height: 148px; }
  .ma-ph__main { padding-top: 18px; }
}

.ma-cats { margin-top: 28px; }
.ma-hlc { list-style: none; display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }
.ma-hlc li { flex: none; }
.ma-hlc__a { display: grid; justify-items: center; gap: 4px; width: 88px; text-decoration: none; color: var(--ink); border-radius: 14px; padding: 4px 0; }
.ma-hlc__ring { display: block; padding: 3px; border-radius: 50%; background: var(--line-2); transition: background 0.2s; }
.ma-hlc__a:hover .ma-hlc__ring, .ma-hlc__a[aria-current='page'] .ma-hlc__ring { background: var(--ring); }
.ma-hlc__in { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--bg); font-weight: 600; font-size: 1.05rem; }
.ma-hlc__l { font-size: 0.84rem; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.ma-hlc__n { font-size: 0.75rem; color: var(--ink-3); }
.ma-hlc__a[aria-current='page'] .ma-hlc__l { color: var(--moss-2); font-weight: 600; }

.ma-pinned { margin-top: 20px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ma-pinned__h { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 10px; }
.ma-pinned__h .ma-i { width: 16px; height: 16px; color: var(--moss-hi); }
.ma-pinned > p { color: var(--ink-2); }

.ma-tabs { display: flex; justify-content: center; gap: 4px; margin-top: 28px; border-top: 1px solid var(--line); }
.ma-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; margin-top: -1px;
  color: var(--ink-3); text-decoration: none; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; border-top: 2px solid transparent;
}
.ma-tab .ma-i { width: 18px; height: 18px; }
.ma-tab:hover { color: var(--ink); }
.ma-prof:not(:has(#feed:target)) .ma-tab--posts, .ma-prof:has(#feed:target) .ma-tab--feed { color: var(--ink); border-top-color: var(--ink); }
.ma-panel { scroll-margin-top: 80px; }
.ma-panel--feed { display: none; }
.ma-panel--feed:target { display: block; }
.ma-prof:has(#feed:target) .ma-panel--posts { display: none; }
@media (max-width: 520px) {
  .ma-tabs { justify-content: space-around; }
  .ma-tab { padding: 0 16px; }
  .ma-tab .ma-i { width: 22px; height: 22px; }
  .ma-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Square grid */
.ma-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.ma-grid__i { min-width: 0; }
.ma-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-3); color: inherit; text-decoration: none; border-radius: 4px; }
.ma-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ma-tile:hover .ma-tile__img { transform: scale(1.03); }
.ma-tile__txt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10% 9%; }
.ma-tile__k { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-tile__tt { font-weight: 600; font-size: clamp(0.8rem, 2.2vw, 1.25rem); line-height: 1.25; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ma-tile__ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 12%;
  background: rgba(17, 30, 19, 0.62); color: #fff; text-align: center; opacity: 0; transition: opacity 0.18s;
}
.ma-tile__ot { font-weight: 600; font-size: 0.98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-tile__oc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ma-tile__oc .ma-i { width: 20px; height: 20px; }
.ma-tile--text .ma-tile__ot { display: none; }
.ma-tile:hover .ma-tile__ov, .ma-tile:focus-visible .ma-tile__ov { opacity: 1; }
.ma-tile:focus-visible { outline-offset: -3px; }
@media (min-width: 720px) {
  .ma-grid { gap: 8px; }
  .ma-tile { border-radius: 10px; }
}
@media (max-width: 520px) {
  .ma-tile__k { display: none; }
  .ma-tile__txt { justify-content: center; padding: 10px; }
  .ma-tile__tt { font-size: 0.78rem; -webkit-line-clamp: 5; }
}
.ma-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* Feed cards */
.ma-feed { display: grid; gap: 22px; max-width: 600px; margin: 8px auto 0; }
.ma-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ma-card__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ma-card__who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ma-card__name { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.ma-card__name:hover { color: var(--moss-2); text-decoration: underline; }
.ma-card__sub { color: var(--ink-3); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-card__head .ma-pill--soft { max-width: 40%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 30px; }
.ma-card__media { display: block; aspect-ratio: 1; background: var(--surface-3); overflow: hidden; }
.ma-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ma-card__txt { display: flex; align-items: center; height: 100%; padding: 12%; }
.ma-card__txt span { font-weight: 600; font-size: clamp(1.3rem, 4.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.ma-card__media:has(.ma-card__txt) { aspect-ratio: 5 / 4; }
.ma-card__body { padding: 12px 18px 20px; display: grid; gap: 10px; }
.ma-card__t { font-size: 1.2rem; line-height: 1.3; }
.ma-card__t a { color: var(--ink); text-decoration: none; }
.ma-card__t a:hover { color: var(--moss-2); text-decoration: underline; }
.ma-card__ex { color: var(--ink-2); font-size: 0.96rem; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: -8px; }
.ma-act { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.ma-act .ma-i { width: 22px; height: 22px; }
a.ma-act:hover { background: var(--surface-2); color: var(--moss-2); }
.ma-act--meta { color: var(--ink-3); font-weight: 400; font-size: 0.86rem; }
.ma-act--meta .ma-i { width: 18px; height: 18px; }
.ma-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.9rem; }
.ma-tags a { color: var(--moss-2); text-decoration: none; font-weight: 500; }
.ma-tags a:hover { text-decoration: underline; }
.ma-tags--lg { margin-top: 28px; gap: 8px; }
.ma-tags--lg a { padding: 6px 14px; border-radius: 999px; background: var(--moss-soft); }

.ma-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.ma-pager__pos { color: var(--ink-3); font-size: 0.9rem; }
.ma-pager__gap { min-width: 90px; }

/* ── Category / topic ──────────────────────────────────────────────────────────────────────────── */
.ma-back { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.ma-back strong { color: var(--ink); font-weight: 600; }
.ma-back:hover { border-color: var(--moss); }
.ma-sub__head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 20px; margin: 24px 0 8px; }
.ma-sub__badge { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--lichen); }
.ma-sub__badge .ma-i { width: 34px; height: 34px; }
.ma-sub__badge--hash { background: var(--t0-bg); color: var(--t0-fg); }
.ma-sub__h { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.03em; margin-top: 4px; }
.ma-sub__h span { color: var(--moss-hi); margin-right: 2px; }
.ma-sub__n { color: var(--ink-3); margin-top: 4px; font-size: 0.95rem; }
.ma-sub__rss { grid-column: 1 / -1; justify-self: start; }
.ma-cats--sub { margin: 18px 0 18px; }
.ma-sub--topic .ma-sub__head { max-width: 600px; margin: 8px auto 20px; }
@media (min-width: 720px) {
  .ma-sub__head { grid-template-columns: auto 1fr auto; }
  .ma-sub__rss { grid-column: auto; }
  .ma-sub__badge { width: 96px; height: 96px; }
}

/* ── Post ──────────────────────────────────────────────────────────────────────────────────────── */
.ma-xpw { display: grid; gap: 28px; }
@media (min-width: 1100px) {
  .ma-xpw { grid-template-columns: minmax(0, 700px) 300px; justify-content: center; gap: 32px; align-items: start; }
  .ma-side { position: sticky; top: 28px; }
}
.ma-xp { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-width: 0; }
.ma-xp__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.ma-xp__who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ma-xp__who span { color: var(--ink-3); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-xp__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.ma-xp__name:hover { color: var(--moss-2); text-decoration: underline; }
.ma-xp__media { margin: 0; aspect-ratio: 4 / 3; background: var(--surface-3); }
.ma-xp__media img { width: 100%; height: 100%; object-fit: cover; }
.ma-xp__body { padding: 12px 20px 28px; }
.ma-xp__body--plain { border-top: 1px solid var(--line); padding-top: 16px; }
.ma-xp__t { font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.16; letter-spacing: -0.03em; margin-top: 14px; }
.ma-xp__upd { color: var(--ink-3); font-size: 0.88rem; margin-top: 8px; }
@media (max-width: 520px) { .ma-xp__follow span, .ma-xp__follow { font-size: 0.82rem; padding: 0 12px; } }
@media (min-width: 720px) { .ma-xp__body { padding: 14px 40px 36px; } }

.ma-toc { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.ma-toc summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.ma-toc summary::-webkit-details-marker { display: none; }
.ma-toc summary span { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 0.85rem; }
.ma-toc summary .ma-i { color: var(--moss-hi); }
.ma-toc ol { margin: 0; padding: 0 16px 14px 40px; display: grid; gap: 6px; font-size: 0.95rem; }
.ma-toc li::marker { color: var(--ink-3); }
.ma-toc a { color: var(--ink-2); text-decoration: none; }
.ma-toc a:hover { color: var(--moss-2); text-decoration: underline; }

.ma-prose { overflow-wrap: break-word; }
.ma-prose > * + * { margin-top: 1.05em; }
.ma-prose h2 { font-size: 1.4rem; margin-top: 1.8em; letter-spacing: -0.02em; scroll-margin-top: 80px; }
.ma-prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.ma-prose h2 + *, .ma-prose h3 + * { margin-top: 0.6em; }
.ma-prose ul, .ma-prose ol { padding-left: 1.4em; }
.ma-prose li + li { margin-top: 0.4em; }
.ma-prose li::marker { color: var(--moss-hi); }
.ma-prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 20px; border-left: 4px solid var(--lichen); background: var(--moss-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.ma-prose img { border-radius: 14px; }
.ma-prose figure { margin-left: 0; margin-right: 0; }
.ma-prose figcaption { color: var(--ink-3); font-size: 0.88rem; margin-top: 8px; }
.ma-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.ma-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.ma-prose th, .ma-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ma-prose th { font-weight: 600; background: var(--surface-2); }
.ma-prose pre { overflow-x: auto; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.ma-prose--post { margin-top: 26px; font-size: 1.07rem; line-height: 1.78; font-weight: 350; }
.ma-prose--post strong, .ma-prose--post b { font-weight: 600; }
.ma-prose--post > p:first-child { font-size: 1.14rem; color: var(--ink); }
.ma-prose--hub > * + * { margin-top: 0.7em; }
.ma-prose--hub h3 { font-size: 1rem; margin-top: 1.1em; }

.ma-thread { border-top: 1px solid var(--line); padding: 24px 20px 28px; background: var(--surface); }
@media (min-width: 720px) { .ma-thread { padding: 28px 40px 36px; } }
.ma-thread__h { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; scroll-margin-top: 80px; }
.ma-thread__h span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--moss-soft); color: var(--moss-2); font-size: 0.85rem; }
.ma-thread__none { color: var(--ink-3); margin-top: 12px; }
.ma-replies { list-style: none; display: grid; gap: 16px; margin-top: 18px; }
.ma-reply { display: flex; gap: 12px; align-items: flex-start; scroll-margin-top: 80px; }
.ma-reply__b { flex: 1; min-width: 0; background: var(--surface-2); border-radius: 4px 18px 18px 18px; padding: 10px 16px 12px; }
.ma-reply--author .ma-reply__b { background: var(--moss-soft); }
.ma-reply__h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.9rem; }
.ma-reply__h strong { font-weight: 600; }
.ma-reply__h time { color: var(--ink-3); font-size: 0.82rem; }
.ma-badge { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; }
.ma-reply__t { margin-top: 4px; font-size: 0.97rem; }
.ma-reply__t p + p { margin-top: 0.6em; }

.ma-compose { position: relative; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.ma-compose__h { font-size: 1.05rem; margin-bottom: 14px; }
.ma-compose__row { display: flex; gap: 12px; align-items: flex-start; }
.ma-compose__fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ma-compose__fields label + .ma-input, .ma-compose__fields .ma-input + label { margin-top: 0; }
.ma-compose__fields .ma-input + label { margin-top: 10px; }
.ma-compose__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ma-compose__note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.88rem; }
.ma-compose__note .ma-i { width: 17px; height: 17px; color: var(--moss-hi); }
.ma-compose__status { min-height: 1.4em; font-size: 0.92rem; color: var(--ink-2); }
.ma-compose__status:not(:empty) { padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); margin-top: 6px; }
.ma-compose__status[data-state='invalid']:not(:empty), .ma-compose__status[data-state='error']:not(:empty) { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }

.ma-side { display: grid; gap: 20px; min-width: 0; }
.ma-wcard { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding-bottom: 20px; }
.ma-wcard__cover { display: block; height: 84px; background: var(--moss); }
.ma-wcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.ma-wcard > .ma-ring { margin-top: -32px; box-shadow: 0 0 0 3px var(--surface); }
.ma-wcard__n { font-size: 1.1rem; margin-top: 8px; padding: 0 16px; }
.ma-wcard__n a { color: var(--ink); text-decoration: none; }
.ma-wcard__n a:hover { color: var(--moss-2); text-decoration: underline; }
.ma-wcard__h { color: var(--ink-3); font-size: 0.88rem; }
.ma-wcard__bio { color: var(--ink-2); font-size: 0.92rem; padding: 0 20px; margin-top: 10px; font-weight: 300; }
.ma-wcard__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; padding: 0 16px; }
.ma-more { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; }
.ma-more__h { font-size: 0.98rem; }
.ma-more .ma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ma-more .ma-tile { border-radius: 10px; }
.ma-more .ma-tile__k { display: none; }
.ma-more .ma-tile__txt { justify-content: center; padding: 12px; }
.ma-more .ma-tile__tt { font-size: 0.84rem; -webkit-line-clamp: 5; }
.ma-more .ma-tile__ot { font-size: 0.84rem; }
@media (min-width: 700px) and (max-width: 1099px) { .ma-more .ma-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Static pages ──────────────────────────────────────────────────────────────────────────────── */
.ma-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ma-doc__menu { min-width: 0; }
.ma-doc__menu ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ma-doc__menu a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.ma-doc__menu a .ma-i { width: 18px; height: 18px; }
.ma-doc__menu a:hover { color: var(--ink); border-color: var(--line-2); }
.ma-doc__menu a[aria-current='page'] { background: var(--moss-soft); color: var(--moss-2); border-color: transparent; font-weight: 600; }
.ma-doc__card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px 32px; }
.ma-doc__head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.ma-doc__h { font-size: clamp(1.8rem, 4.4vw, 2.6rem); letter-spacing: -0.035em; margin-top: 6px; }
.ma-doc__toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ma-doc__toc a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; font-size: 0.84rem; }
.ma-doc__toc a:hover { background: var(--moss-soft); color: var(--moss-2); }
.ma-prose--doc { max-width: 70ch; font-size: 1.02rem; line-height: 1.72; color: var(--ink); }
.ma-prose--doc p, .ma-prose--doc li { color: var(--ink-2); }
.ma-prose--doc h2 { color: var(--ink); }
.ma-lede { font-size: 1.14rem; line-height: 1.6; color: var(--ink) !important; font-weight: 300; }
.ma-updated { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3) !important; font-size: 0.86rem; }
.ma-qas { display: grid; gap: 8px; }
.ma-qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ma-qa[open] { background: var(--surface-2); }
.ma-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
.ma-qa summary::-webkit-details-marker { display: none; }
.ma-qa summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-2); font-size: 1.2rem; font-weight: 400; transition: transform 0.2s; }
.ma-qa[open] summary::after { transform: rotate(45deg); }
.ma-qa__a { padding: 0 16px 16px; }
.ma-qa__a > * + * { margin-top: 0.7em; }
.ma-qa__a ul { padding-left: 1.3em; }
.ma-feats { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.ma-feats li + li { margin-top: 0; }
.ma-feat { padding: 18px 18px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; gap: 6px; align-content: start; }
.ma-feat__i { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--moss-soft); color: var(--moss-2); margin-bottom: 4px; }
.ma-feat h3 { margin-top: 0; font-size: 1.02rem; color: var(--ink); }
.ma-feat p { font-size: 0.94rem; margin: 0; }
@media (min-width: 640px) { .ma-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ma-callout { margin-top: 2em; padding: 22px 24px; border-radius: 18px; background: var(--moss-soft); }
.ma-callout h2 { margin-top: 0; font-size: 1.2rem; }
.ma-callout p { color: var(--ink) !important; margin-top: 0.5em; }
@media (min-width: 900px) {
  .ma-doc { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
  .ma-doc__menu { position: sticky; top: 28px; }
  .ma-doc__menu ul { flex-direction: column; overflow: visible; gap: 4px; padding: 0; }
  .ma-doc__menu a { display: flex; background: none; border-color: transparent; min-height: 44px; border-radius: 12px; }
  .ma-doc__menu a:hover { background: var(--surface); }
  .ma-doc__card { padding: 40px 48px 48px; }
}

.ma-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); margin-bottom: 18px; }
.ma-alert--warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.ma-cform { margin-top: 32px; padding: 24px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); max-width: 70ch; }
.ma-cform h2 { font-size: 1.25rem; margin-bottom: 16px; }
.ma-form { display: grid; gap: 16px; }
.ma-form__two { display: grid; gap: 16px; }
.ma-field { display: grid; gap: 6px; }
.ma-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ma-form__foot p { color: var(--ink-3); font-size: 0.88rem; }
@media (min-width: 640px) { .ma-form__two { grid-template-columns: 1fr 1fr; } .ma-cform { padding: 28px; } }

/* ── 404 ───────────────────────────────────────────────────────────────────────────────────────── */
.ma-lost { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 8px; }
.ma-lost__badge { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-2); box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--lichen); margin-bottom: 8px; }
.ma-lost__badge .ma-i { width: 44px; height: 44px; }
.ma-lost__h { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.03em; }
.ma-lost > p:not(.ma-kicker) { color: var(--ink-2); max-width: 46ch; }
.ma-lost__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
