/* annotated — Path-inspired.
 *
 * The reference is Path (2011–2015): warm paper rather than a screen, a deep
 * red chrome, a vertical timeline thread with circular nodes hanging off it,
 * a serif for anything editorial, and the red radial "+".
 * Mobile is the primary width; everything else is that layout with more room.
 */

:root {
  /* Paper */
  --paper:        #f2ece1;
  --paper-warm:   #ece4d6;
  --card:         #fffdf9;
  --card-sunken:  #f7f1e6;

  /* Ink */
  --ink:          #2f2823;
  --ink-dim:      #7b6d5f;
  --ink-faint:    #a99a88;
  --rule:         #e2d7c4;
  --rule-soft:    #ece3d4;

  /* Path red */
  --red:          #c8352f;
  --red-bright:   #de4a3f;
  --red-deep:     #8f241f;
  --chrome:       #4a1a18;
  --chrome-2:     #611f1c;

  /* Accents */
  --claim:        #a9701c;
  --claim-soft:   #f6ead2;
  --green:        #4f7a4a;
  --blue:         #3f6d94;

  --radius:       14px;
  --radius-lg:    20px;
  --thread:       #ddd0ba;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(74, 26, 24, .07), 0 1px 1px rgba(74, 26, 24, .04);
  --shadow:    0 2px 6px rgba(74, 26, 24, .09), 0 1px 2px rgba(74, 26, 24, .06);
  --shadow-lg: 0 10px 30px rgba(74, 26, 24, .16), 0 2px 8px rgba(74, 26, 24, .08);

  --wrap: 720px;
  --bar-h: 54px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  /* A faint warm grain, the way Path's paper had tooth. */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(200, 53, 47, .05), transparent 45%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }
.muted { color: var(--ink-dim); }
.small { font-size: 13px; }

/* ------------------------------------------------------------------ chrome */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--chrome-2), var(--chrome));
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 2px 10px rgba(74, 26, 24, .22);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: var(--bar-h); }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark {
  width: 27px; height: 27px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--red-bright), var(--red-deep));
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 3px rgba(0, 0, 0, .3);
  flex: none;
}
.brand-word {
  font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: #fdf6ee;
}

.topnav { display: flex; gap: 18px; margin-left: 6px; font-size: 14px; }
.topnav a { color: rgba(253, 246, 238, .68); text-decoration: none; padding: 4px 0; white-space: nowrap; }
.topnav a:hover, .topnav a.is-current { color: #fff; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me { display: flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13.5px; color: rgba(253, 246, 238, .8); }
.me:hover { color: #fff; }

.site-footer {
  border-top: 1px solid var(--rule); margin-top: 56px; padding: 26px 0 40px;
  color: var(--ink-faint);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: var(--ink-faint); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ------------------------------------------------------------------- atoms */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap; min-height: 40px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 34px; }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #e6564a, var(--red-deep)); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--rule); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cbb99f; }
.btn-claim { background: var(--card); color: var(--claim); border-color: #dcc79b; box-shadow: var(--shadow-sm); }
.btn-claim:hover { background: var(--claim-soft); }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-x { background: #17171a; color: #fff; }
.btn-google { background: var(--card); color: var(--ink); border-color: var(--rule); box-shadow: var(--shadow-sm); }
.glyph { font-weight: 700; }

/* Buttons that sit on the red chrome. */
.topbar-right .btn-ghost {
  background: rgba(255, 255, 255, .12); color: #fdf6ee;
  border-color: rgba(255, 255, 255, .26); box-shadow: none;
}
.topbar-right .btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.topbar-right .btn-primary { background: #fdf6ee; color: var(--chrome); box-shadow: none; }
.topbar-right .btn-primary:hover { background: #fff; }

.avatar {
  border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 3px var(--card), 0 1px 3px rgba(74, 26, 24, .22);
}
.avatar-fallback {
  display: inline-grid; place-items: center; color: #fff; font-weight: 700;
  font-family: var(--serif);
}

.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule);
  color: var(--ink-dim); background: var(--card-sunken); white-space: nowrap;
}
.badge-youtube { color: var(--red); border-color: #eec4bf; background: #fbeeec; }
.badge-article { color: var(--blue); border-color: #c3d5e4; background: #eef4f9; }
.badge-podcast { color: var(--green); border-color: #c7d8c4; background: #eef4ed; }

.section-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 36px 0 14px; font-weight: 600;
}
.page-title {
  font-family: var(--serif); font-size: clamp(30px, 7vw, 40px); letter-spacing: -0.015em;
  margin: 32px 0 8px; font-weight: 600; line-height: 1.12;
}
.lede { color: var(--ink-dim); font-size: 16.5px; margin: 0 0 26px; }
.hint { color: var(--ink-faint); font-size: 13px; margin: 6px 0 16px; }
code {
  font-family: var(--mono); font-size: .88em; background: var(--card-sunken);
  padding: 2px 6px; border-radius: 5px; border: 1px solid var(--rule-soft);
}

/* -------------------------------------------------------------------- hero */

.hero {
  border-bottom: 1px solid var(--rule); padding: 52px 0 44px;
  background:
    radial-gradient(700px 300px at 15% -20%, rgba(200, 53, 47, .1), transparent 62%);
}
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(38px, 11vw, 62px); line-height: 1.02;
  letter-spacing: -0.025em; margin: 0 0 20px; font-weight: 600;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-sub { max-width: 30em; color: var(--ink-dim); font-size: 17px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; padding: 0;
}
.hero-stats div {
  margin: 0; flex: 1 1 88px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.hero-stats dt {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-stats dd {
  margin: 3px 0 0; font-family: var(--serif); font-size: 23px; font-weight: 600;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------- the thread */

.feed-wrap { padding-top: 4px; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.feed-tabs { display: flex; align-items: center; gap: 6px; margin: 28px 0 6px; font-size: 14px; flex-wrap: wrap; }
.feed-tabs a {
  color: var(--ink-dim); text-decoration: none; padding: 6px 13px; border-radius: 999px;
  border: 1px solid transparent;
}
.feed-tabs a.is-active {
  color: var(--red-deep); background: var(--card); border-color: var(--rule);
  box-shadow: var(--shadow-sm); font-weight: 600;
}
.feed-tabs .feed-new { margin-left: auto; color: #fff; border: 0; }

/* The vertical line the whole timeline hangs from. */
.feed { position: relative; padding: 8px 0 8px; }
.feed::before {
  content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--thread) 6%, var(--thread) 94%, transparent);
  border-radius: 2px;
}

.tl-item { position: relative; padding-left: 58px; margin-bottom: 22px; }
.tl-node { position: absolute; left: 0; top: 4px; width: 44px; display: grid; place-items: center; }
.tl-node .avatar { box-shadow: 0 0 0 4px var(--paper), 0 1px 4px rgba(74, 26, 24, .25); }
.tl-time {
  display: block; margin-top: 7px; font-family: var(--mono); font-size: 9.5px;
  color: var(--ink-faint); text-align: center; letter-spacing: .04em;
}

.card {
  position: relative; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow);
}
/* The little nib pointing back at the thread. */
.card::before {
  content: ""; position: absolute; left: -7px; top: 17px; width: 12px; height: 12px;
  background: var(--card); border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transform: rotate(45deg); border-radius: 0 0 0 3px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.byline { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.byline-names { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.byline-names strong { font-size: 14.5px; font-weight: 600; }
.handle { color: var(--ink-faint); font-size: 12px; }
.card .byline .avatar { display: none; }   /* the thread node already shows it */

.card-title {
  display: block; font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: -0.012em; line-height: 1.25; text-decoration: none; margin-bottom: 12px;
}
.card-title:hover { color: var(--red); }

.clip-media { margin: 0 0 12px; }
.clip-media video {
  width: 100%; border-radius: 12px; background: #1b1512; aspect-ratio: 16/9; object-fit: contain;
  box-shadow: var(--shadow-sm);
}
.clip-media audio { width: 100%; margin-top: 8px; }
.clip-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 7px 0 0; }
.clip-meta a { color: var(--ink-dim); }
.clip-audio {
  background: var(--card-sunken); border: 1px solid var(--rule-soft);
  border-radius: 12px; padding: 12px;
}
.waveform { display: flex; align-items: center; gap: 2px; height: 40px; }
.waveform i {
  flex: 1; background: linear-gradient(180deg, var(--red-bright), #e8b7ac);
  border-radius: 1px; opacity: .75;
}

.clip-quote {
  margin: 0 0 12px; padding: 14px 16px; background: var(--card-sunken);
  border-left: 3px solid var(--red); border-radius: 0 12px 12px 0;
}
.clip-quote p {
  margin: 0 0 10px; font-family: var(--serif); font-size: 16.5px; line-height: 1.6;
}
.clip-quote p:last-of-type { margin-bottom: 0; }
.clip-quote-clamped p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.clip-quote cite {
  display: block; margin-top: 10px; font-style: normal; font-family: var(--mono);
  font-size: 11px; color: var(--ink-faint);
}

.annotation-text p { margin: 0 0 9px; }
.annotation-text p:last-child { margin-bottom: 0; }
.annotation-audio {
  display: flex; align-items: center; gap: 9px; background: var(--card-sunken);
  border: 1px solid var(--rule-soft); border-radius: 12px; padding: 9px 12px; margin-top: 9px;
}
.annotation-audio audio { flex: 1; height: 34px; min-width: 0; }
.annotation-audio-len { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--rule-soft);
}
.card-actions { display: flex; gap: 14px; font-size: 13px; }
.card-actions a { color: var(--ink-faint); text-decoration: none; }
.card-actions a:hover { color: var(--ink); }
.claim-link { color: var(--claim) !important; }

.source-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--rule); background: var(--card-sunken);
  border-radius: 999px; padding: 5px 11px; max-width: 100%;
}
.source-link:hover { border-color: var(--red); color: var(--ink); }
.source-label { color: var(--ink-faint); letter-spacing: .09em; text-transform: uppercase; }
.source-host { overflow: hidden; text-overflow: ellipsis; }
.source-range { color: var(--red); }

.empty {
  border: 1px dashed var(--rule); border-radius: var(--radius-lg); padding: 40px 20px;
  text-align: center; color: var(--ink-dim); background: rgba(255, 253, 249, .55);
}
.load-more { margin: 18px auto 0; display: flex; }

/* -------------------------------------------------------- annotation page */

.annotation-page { padding-bottom: 24px; }
.crumb { margin: 22px 0 16px; font-size: 13px; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.annotation-head h1 {
  font-family: var(--serif); font-size: clamp(25px, 6.5vw, 36px); letter-spacing: -0.02em;
  margin: 10px 0 6px; font-weight: 600; line-height: 1.15;
}
.annotation-sub { color: var(--ink-dim); font-size: 14px; margin: 0 0 20px; }

.source-block {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px;
  margin: 18px 0 28px; background: var(--card); box-shadow: var(--shadow-sm);
}
.source-note { margin: 0; color: var(--ink-faint); font-size: 13px; flex: 1 1 240px; }

.commentary { border-top: 1px solid var(--rule); padding-top: 20px; }
.commentary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.commentary .annotation-text p { font-family: var(--serif); font-size: 18px; line-height: 1.62; }

.comments { margin-top: 36px; }
.comment-form { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; }
.comment-form textarea {
  flex: 1; min-width: 0; resize: vertical; background: var(--card); border: 1px solid var(--rule);
  border-radius: 14px; color: var(--ink); padding: 10px 13px; font: inherit; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.comment { display: flex; gap: 9px; }
.comment-meta { margin: 0 0 2px; font-size: 14px; }
.comment-body { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ------------------------------------------------------------------- claim */

.claim {
  margin-top: 40px; border: 1px solid #e0cba4; border-radius: var(--radius-lg);
  padding: 18px; background: linear-gradient(180deg, var(--claim-soft), var(--card) 70%);
  box-shadow: var(--shadow-sm);
}
.claim-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.claim-head h2 { font-family: var(--serif); margin: 0 0 5px; font-size: 20px; letter-spacing: -0.012em; }
.claim-head p { margin: 0; color: var(--ink-dim); font-size: 14px; max-width: 42ch; }
.claim-form { margin-top: 18px; display: grid; gap: 12px; }
.claim-form label, .panel label { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-dim); }
.claim-form input, .claim-form select, .claim-form textarea,
.panel input, .panel select, .panel textarea {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  color: var(--ink); padding: 11px 13px; font: inherit; font-size: 16px; width: 100%;
  box-shadow: inset 0 1px 2px rgba(74, 26, 24, .04);
}
.claim-form input:focus, .claim-form textarea:focus, .claim-form select:focus,
.panel input:focus, .panel textarea:focus, .panel select:focus {
  outline: 2px solid rgba(200, 53, 47, .35); outline-offset: 1px; border-color: var(--red);
}
.claim-form textarea, .panel textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.claim-fineprint { color: var(--ink-faint); font-size: 12.5px; margin: 0; }
.claim-count { font-family: var(--mono); font-size: 12px; color: var(--claim); margin: 14px 0 0; }
.claim-ok {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #eaf3e8; border: 1px solid #bcd4b8; color: #38612f; font-size: 14px;
}
.claim-error {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #fbeceb; border: 1px solid #eabbb6; color: var(--red-deep); font-size: 14px;
}

/* --------------------------------------------------------- compose / auth */

.panel {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 18px; display: grid; gap: 4px; box-shadow: var(--shadow);
}
.panel > label { margin-bottom: 6px; }
.compose-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.compose-status { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.compose-status.is-error { color: var(--red-deep); }
.recorder { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 6px 0 4px; }
.rec-status { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.recorder audio { height: 34px; flex: 1 1 180px; min-width: 0; }

.auth { min-height: 46vh; }
.auth-buttons { display: grid; gap: 10px; max-width: 340px; }
.auth-buttons .btn { padding: 14px 20px; justify-content: flex-start; }
.dev-login { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 18px; }
.dev-login form { display: flex; gap: 8px; margin-top: 10px; max-width: 400px; flex-wrap: wrap; }
.dev-login input {
  flex: 1 1 180px; min-width: 0; background: var(--card); border: 1px solid var(--rule);
  border-radius: 999px; color: var(--ink); padding: 10px 16px; font: inherit; font-size: 16px;
}

/* ----------------------------------------------------------------- profile */

.profile-head { display: flex; align-items: center; gap: 16px; margin: 32px 0 10px; flex-wrap: wrap; }
.profile-head h1 { font-family: var(--serif); margin: 0; font-size: 27px; letter-spacing: -0.02em; }
.profile-head .handle { display: block; margin-bottom: 5px; }
.profile-stats { margin: 0; color: var(--ink-dim); font-size: 14px; }
.profile-head .follow-btn { margin-left: auto; }

/* ------------------------------------------------------------ how it works */

.steps { list-style: none; margin: 0 0 36px; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.step-n { font-family: var(--mono); font-size: 11.5px; color: var(--red); padding-top: 4px; flex: none; }
.steps h3 { font-family: var(--serif); margin: 0 0 3px; font-size: 17.5px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.plain-steps { color: var(--ink-dim); padding-left: 20px; }
.plain-steps li { margin-bottom: 8px; }
.limits { list-style: none; padding: 0; display: grid; gap: 9px; color: var(--ink-dim); }
.limits li { padding-left: 18px; position: relative; }
.limits li::before { content: "—"; position: absolute; left: 0; color: var(--red); }

/* ------------------------------------------------------ the red plus (FAB) */

.fab-wrap { position: fixed; right: 18px; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom)); }
.fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, var(--red-bright), var(--red-deep));
  color: #fff; font-size: 30px; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
}
.fab span { display: block; transition: transform .22s ease; margin-top: -2px; }
.fab[aria-expanded="true"] span { transform: rotate(45deg); }

/* The fan — Path's radial menu, arcing up from the button. */
.fab-menu { position: absolute; right: 4px; bottom: 66px; display: grid; gap: 10px; justify-items: end; }
.fab-item {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  opacity: 0; transform: translateY(12px) scale(.85); pointer-events: none;
  transition: opacity .18s ease, transform .24s cubic-bezier(.34, 1.56, .64, 1);
}
.fab-wrap.is-open .fab-item { opacity: 1; transform: none; pointer-events: auto; }
.fab-wrap.is-open .fab-item:nth-child(1) { transition-delay: .02s; }
.fab-wrap.is-open .fab-item:nth-child(2) { transition-delay: .06s; }
.fab-wrap.is-open .fab-item:nth-child(3) { transition-delay: .1s; }
.fab-label {
  background: var(--chrome); color: #fdf6ee; font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow);
}
.fab-dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow);
  font-size: 19px;
}
.fab-scrim {
  position: fixed; inset: 0; z-index: 39; background: rgba(47, 40, 35, .3);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  backdrop-filter: blur(1.5px);
}
.fab-wrap.is-open ~ .fab-scrim, .fab-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .fab, .fab span, .fab-item { transition: none; }
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 720px) {
  .topnav { display: none; }
  .wrap { padding: 0 13px; }

  /* Comfortable thumbs: nothing tappable drops below ~44px. */
  .btn, .btn-sm { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .feed-tabs a { padding: 10px 14px; }
  .card-actions { gap: 18px; }
  .card-actions a { padding: 6px 0; }

  .hero { padding: 40px 0 34px; }
  .hero-stats div { flex-basis: calc(50% - 6px); }

  /* Tighten the thread so cards keep their width on a phone. */
  .feed::before { left: 16px; }
  .tl-item { padding-left: 46px; }
  .tl-node { width: 34px; }
  .tl-node .avatar { width: 34px !important; height: 34px !important; }
  .card { padding: 14px; border-radius: 16px; }
  .card-title { font-size: 18px; }

  .feed-tabs { width: 100%; }
  .feed-tabs .feed-new { margin-left: auto; }

  .field-row { grid-template-columns: 1fr; }
  .claim-head { flex-direction: column; align-items: flex-start; }
  .claim-head .btn { width: 100%; }
  .commentary-head { flex-wrap: wrap; }
  .profile-head .follow-btn { margin-left: 0; width: 100%; }
  .comment-form { flex-wrap: wrap; }
  .comment-form textarea { flex-basis: 100%; }
  .comment-form .btn { margin-left: auto; }
  .source-block { flex-direction: column; align-items: flex-start; }

  /* Room for the floating button. */
  .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .brand-word { font-size: 17px; }
  .me span { display: none; }
}
