/* Sunfish Cove — "Golden Hour"
   Dune linen, pluff mud, sunset ember, waterway teal, spartina gold.
   Type: Fraunces for headings, Atkinson Hyperlegible for everything you read. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --linen: #F8F2E7;
  --linen-deep: #EFE6D5;
  --paper: #FFFCF6;
  --mud: #2A2723;
  --mud-soft: #5C544B;
  --line: #E3D8C6;
  --line-strong: #8E826F;
  --ember: #D9643A;
  --ember-deep: #A94A24;
  --ember-dark: #8A3A1A;
  --teal: #2F6F73;
  --teal-dark: #23565A;
  --gold: #C9A24A;
  --green: #4F6B3A;
  --heron: #8FA3AD;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 1rem;
  --shadow: 0 1px 2px rgba(42, 39, 35, .05), 0 6px 20px -10px rgba(42, 39, 35, .18);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--teal);
}

/* The whole site scales from this one number, so the text-size buttons enlarge everything together. */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.ts-l { font-size: 125%; }
html.ts-xl { font-size: 142%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--linen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--mud);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.15; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
small { font-size: .85rem; }

a { color: var(--teal-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ember-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: .4rem; }

img { max-width: 100%; display: block; }
.icon { flex: none; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--mud-soft); }
.optional { font-weight: 400; color: var(--mud-soft); font-size: .9em; }
.count { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 99px; background: rgba(42, 39, 35, .09); font-family: var(--sans); font-size: .85rem; font-weight: 600; text-align: center; vertical-align: middle; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; background: var(--mud); color: var(--paper); padding: .7rem 1rem; border-radius: .6rem; }
.skip:focus { top: 1rem; color: var(--paper); }

/* ---------- Header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.top__in { max-width: 72rem; margin: 0 auto; padding: .55rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--mud); margin-right: auto; min-width: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; min-width: 0; }
.brand__name, .brand__sub { overflow: hidden; text-overflow: ellipsis; }
.brand .logo, .top__me { flex-shrink: 0; }
.brand__name { overflow-wrap: normal; padding-bottom: .12em; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.015em; }
.brand__sub { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--mud-soft); margin-top: .2rem; }
.brand:hover { color: var(--mud); }
.brand:hover .logo { transform: rotate(-5deg); }
.logo { transition: transform .25s ease; flex: none; }

.nav { display: none; gap: .15rem; }
.nav__link { display: flex; align-items: center; gap: .4rem; padding: .6rem .68rem; border-radius: 99px; color: var(--mud); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__link:hover { background: var(--linen); color: var(--mud); }
.nav__link[aria-current] { background: var(--mud); color: var(--paper); }

.top__me { display: flex; align-items: center; gap: .35rem; }
.iconbtn { position: relative; display: flex; align-items: center; gap: .4rem; min-height: 2.9rem; min-width: 2.9rem; justify-content: center; padding: 0 .7rem; border-radius: 99px; color: var(--mud); text-decoration: none; font-weight: 600; font-size: .95rem; }
.iconbtn:hover, .mebtn:hover { background: var(--linen); color: var(--mud); }
.iconbtn[aria-current], .mebtn[aria-current] { background: var(--linen-deep); }
.iconbtn__label { display: none; }
.badge { min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 99px; background: var(--ember-deep); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.mebtn { display: flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .3rem; min-height: 2.9rem; border-radius: 99px; color: var(--mud); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mebtn__name { display: none; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bottom tabs on phones: five big, labelled targets. */
.tabs { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -12px rgba(42, 39, 35, .25); }
.tabs__link { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .1rem .45rem; min-height: 3.6rem; color: var(--mud-soft); text-decoration: none; font-size: .74rem; font-weight: 600; position: relative; }
.tabs__link[aria-current] { color: var(--ember-dark); }
.tabs__link[aria-current]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ember); }
body.is-in { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }

@media (min-width: 62rem) {
  .nav { display: flex; }
  .tabs { display: none; }
  body.is-in { padding-bottom: 0; }
  .iconbtn__label, .mebtn__name { display: inline; }
}
/* Phones: no tagline, tighter spacing, and the name may stack as "Sunfish / Cove" rather than be cut short with dots */
@media (max-width: 34rem) {
  .brand__sub { display: none; }
  .top__in { gap: .6rem; }
  .brand { gap: .5rem; }
  .brand__name { white-space: normal; line-height: 1.02; }
  .mebtn { padding: .3rem; }
  .iconbtn { padding: 0 .4rem; }
}
/* Measured in text-size units, so this follows the Text size setting: when even the stacked name is a squeeze, make it smaller, then leave just the fish */
.top { container-type: inline-size; }
@container (max-width: 18rem) { .brand__name { font-size: 1.08rem; } }
@container (max-width: 15.2rem) { .brand__name { display: none; } }
/* An unread-messages badge takes room too */
@container (max-width: 20.2rem) { .top__in:has(.badge) .brand__name { font-size: 1.08rem; } }
@container (max-width: 17.8rem) { .top__in:has(.badge) .brand__name { font-size: .92rem; } }
@container (max-width: 16.6rem) { .top__in:has(.badge) .brand__name { display: none; } }

/* ---------- Page frame ---------- */
.wrap { width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; flex: 1; }
.wrap--narrow { max-width: 44rem; }
.wrap--normal { max-width: 54rem; }
.wrap--wide { max-width: 72rem; }

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.pagehead h1 { margin-bottom: .2rem; }
.lede { font-size: 1.1rem; color: var(--mud-soft); margin: .3rem 0 0; max-width: 38rem; }
.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-dark); margin: 0 0 .4rem; }

.backlink { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; margin: -.4rem 0 .6rem -.3rem; padding: 0 .6rem 0 .3rem; font-weight: 600; text-decoration: none; border-radius: 99px; }
.backlink:hover { background: var(--linen-deep); }

.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: .8rem; margin: 0 0 1.25rem; font-weight: 600; border: 1px solid; }
.flash .icon { margin-top: .15rem; }
.flash--ok { background: #E6EEDB; border-color: #C3D3AE; color: #33481F; }
.flash--err, .formerror { background: #FBE6DB; border-color: #EBBFA8; color: #7A2F12; }
.flash--info { background: #DEECEB; border-color: #B9D3D2; color: #1F4B4E; font-weight: 400; }
.formerror { display: flex; gap: .6rem; padding: .85rem 1rem; border-radius: .8rem; border: 1px solid #EBBFA8; font-weight: 600; margin: 1rem 0; }
.callout { background: #FFF4D2; border: 2px solid var(--gold); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; }
.callout h2 { margin-bottom: .4rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .55rem 1.25rem; border: 2px solid var(--ember-deep); border-radius: 99px; background: var(--ember-deep); color: #FFF8EE; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); color: #FFF8EE; transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(138, 58, 26, .7); }
.btn:active { transform: none; }
.btn--big { min-height: 3.4rem; padding: .7rem 1.7rem; font-size: 1.1rem; }
.btn--small { min-height: 2.5rem; padding: .3rem .9rem; font-size: .92rem; }
.btn--quiet { background: transparent; border-color: var(--line-strong); color: var(--mud); }
.btn--quiet:hover { background: var(--paper); border-color: var(--mud); color: var(--mud); box-shadow: none; }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); box-shadow: 0 6px 14px -8px rgba(35, 86, 90, .7); }
.btn--on { background: #E6EEDB; border-color: var(--green); color: #33481F; }
.btn--on:hover { background: #D9E5C9; border-color: var(--green); color: #33481F; box-shadow: none; }
.btn--hearted { border-color: var(--ember); color: var(--ember-dark); background: #FBE9DF; }
.btn--hearted .icon { fill: var(--ember); stroke: var(--ember); }

/* ---------- Hero: the sky follows the real time of day ----------
   The sky is a CSS gradient that meets the drawing exactly at the horizon,
   so the greeting always sits on open sky whatever the screen size. */
.hero {
  --sky-a: #B3B4DA; --sky-b: #F5AB8E; --sky-c: #FBD589;
  --scene-h: 12rem; --gap: 7.4rem;
  position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--sky-a) 0, var(--sky-b) calc(100% - var(--scene-h) * .5), var(--sky-c) calc(100% - var(--scene-h) * .222));
}
.hero--dawn { --sky-a: #B5CFE0; --sky-b: #F7CDB9; --sky-c: #FCE8BF; }
.hero--day { --sky-a: #94C6D6; --sky-b: #CDE5E6; --sky-c: #F5EFDC; }
.hero--night { --sky-a: #0E1930; --sky-b: #233759; --sky-c: #47587A; }
.hero--tall { --scene-h: 14rem; --gap: 9.2rem; }
.hero__in { position: relative; max-width: 72rem; min-height: var(--scene-h); margin: 0 auto; padding: 1.5rem 1.25rem var(--gap); color: var(--mud); }
.hero--night .hero__in { color: #FFF8EA; }
.hero--tall .hero__in { padding-top: 2.5rem; }
.scene { position: absolute; right: -1rem; bottom: 0; height: var(--scene-h); width: auto; aspect-ratio: 1200 / 360; z-index: -1; overflow: visible; pointer-events: none; }
.hero__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.8rem); max-width: 14em; }
.hero--tall .hero__title { font-size: clamp(2.5rem, 1.3rem + 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; max-width: 8.5em; }
.hero__weather { display: flex; gap: .5rem; align-items: flex-start; margin: .6rem 0 0; font-weight: 600; max-width: 24rem; }
.hero__weather .icon { margin-top: .2rem; }
.hero__lede { font-size: 1.2rem; max-width: 25rem; margin: 1rem 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.btn--glass { background: rgba(255, 252, 246, .55); border-color: var(--mud); color: var(--mud); }
.btn--glass:hover { background: var(--paper); border-color: var(--mud); color: var(--mud); box-shadow: none; }
.hero--night .btn--glass { background: rgba(255, 252, 246, .12); border-color: rgba(255, 252, 246, .85); color: #FFF8EE; }
@media (min-width: 56rem) {
  .hero { --scene-h: 13rem; --gap: 3.6rem; }
  .hero--tall { --scene-h: 23rem; --gap: 7rem; }
  .hero--tall .hero__in { padding-top: 3.5rem; }
  .scene { right: 0; }
}

.scene .water-a { stop-color: #2E6C70; } .scene .water-b { stop-color: #1A4950; }
.scene .glow-a { stop-color: #FFE3A3; stop-opacity: .8; } .scene .glow-b { stop-color: #FFE3A3; stop-opacity: 0; }
.scene .sun-a { stop-color: #F8C858; } .scene .sun-b { stop-color: #E0632F; }
.scene .bands { fill: #F4A957; }
.scene .shore { fill: #27484A; }
.scene .ripples { stroke: rgba(255, 255, 255, .2); }
.scene .heron { fill: #162E33; stroke: #162E33; }
.scene .heron path[fill="none"] { fill: none; }
.scene .g1 { stroke: #173733; } .scene .g2 { stroke: #C9A24A; }
.scene .sunfish-eye { fill: #7A2E12; } .scene .sunfish-gill { stroke: rgba(138, 58, 26, .45); }
.scene .stars { fill: #FFF8E8; display: none; }

.scene--dawn .water-a { stop-color: #A8CCC8; } .scene--dawn .water-b { stop-color: #5A9594; }
.scene--dawn .glow-a, .scene--dawn .glow-b { stop-color: #FFF1C2; }
.scene--dawn .sun-a { stop-color: #FCE08E; } .scene--dawn .sun-b { stop-color: #F2A25E; }
.scene--dawn .bands { fill: #FCD890; }
.scene--dawn .shore { fill: #5B8079; }
.scene--dawn .ripples { stroke: rgba(255, 255, 255, .4); }
.scene--dawn .heron { fill: #274649; stroke: #274649; }
.scene--dawn .g1 { stroke: #2C574D; }
.scene--dawn .sunfish-eye { fill: #8A4A1E; }

.scene--day .water-a { stop-color: #6DA9AF; } .scene--day .water-b { stop-color: #2F6F73; }
.scene--day .glow-a, .scene--day .glow-b { stop-color: #FFF6D0; }
.scene--day .sun-a { stop-color: #FDE7A0; } .scene--day .sun-b { stop-color: #F2B45A; }
.scene--day .bands { fill: #FBE3A6; }
.scene--day .shore { fill: #4C7A66; }
.scene--day .ripples { stroke: rgba(255, 255, 255, .4); }
.scene--day .heron { fill: #1F4245; stroke: #1F4245; }
.scene--day .g1 { stroke: #2E5A41; }
.scene--day .sunfish-eye { fill: #8A4A1E; }

.scene--night .water-a { stop-color: #142F3B; } .scene--night .water-b { stop-color: #091B23; }
.scene--night .glow-a, .scene--night .glow-b { stop-color: #DCE4FF; } .scene--night .glow-a { stop-opacity: .28; }
.scene--night .sun-a { stop-color: #F6F0DC; } .scene--night .sun-b { stop-color: #D8D0B4; }
.scene--night .bands { fill: #E6E0C8; opacity: .55; }
.scene--night .shore { fill: #0B1C23; }
.scene--night .ripples { stroke: rgba(255, 255, 255, .1); }
.scene--night .heron { fill: #071418; stroke: #071418; }
.scene--night .g1 { stroke: #081719; } .scene--night .g2 { stroke: #3B5750; }
.scene--night .sunfish-eye { fill: #47587A; } .scene--night .sunfish-gill { stroke: rgba(71, 88, 122, .4); }
.scene--night .stars { display: block; }

/* ---------- Cards and notes ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card > h2 { margin-bottom: .6rem; }
.card--form { padding: clamp(1.25rem, 4vw, 2.25rem); }
.card--form > h1 { margin-bottom: .3rem; }

.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.stack--faded { opacity: .78; }

.note { position: relative; display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.note:hover { transform: translateY(-2px); border-color: #CFC0A8; box-shadow: 0 2px 4px rgba(42, 39, 35, .05), 0 14px 28px -14px rgba(42, 39, 35, .3); }
.note:has(:focus-visible) { box-shadow: var(--focus); }
.note__main { flex: 1; min-width: 0; }
.note__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; }
.note__title { font-size: 1.3rem; margin-bottom: .3rem; }
.note__title a { color: var(--mud); text-decoration: none; }
.note:hover .note__title a { color: var(--ember-dark); }
.note__event { display: flex; flex-wrap: wrap; gap: .2rem 1rem; color: var(--teal-dark); font-weight: 600; margin-bottom: .35rem; }
.note__event span { display: inline-flex; align-items: flex-start; gap: .35rem; }
.note__event .icon { margin-top: .22rem; }
.note__excerpt { color: var(--mud-soft); margin-bottom: .7rem; overflow-wrap: anywhere; }
.note__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: 0; font-size: .92rem; color: var(--mud-soft); }
.note__by { display: inline-flex; align-items: center; gap: .5rem; }
.note__thumb { width: 5.5rem; height: 5.5rem; border-radius: .7rem; object-fit: cover; flex: none; border: 1px solid var(--line); }
.counts { display: inline-flex; gap: .9rem; }
.counts__item { display: inline-flex; align-items: center; gap: .3rem; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretch:focus-visible { box-shadow: none; }

/* Pinned notes wear the bars of a spadefish down one side. */
.note--pinned, .post--pinned { background: #FFF8E3; border-color: #E9D7A6; }
.note--pinned { padding-left: 1.75rem; }
.note--pinned::before { content: ""; position: absolute; left: .55rem; top: .9rem; bottom: .9rem; width: .4rem; border-radius: 99px; background: repeating-linear-gradient(180deg, var(--ember-deep) 0 .55rem, transparent .55rem .95rem); }

.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem .12rem .5rem; border-radius: 99px; font-size: .8rem; font-weight: 700; text-decoration: none; line-height: 1.5; white-space: nowrap; }
.tag--ember, .tone--ember { background: #FBE3D6; color: #853717; }
.tag--teal, .tone--teal { background: #DAEAE9; color: #1F4E52; }
.tag--green, .tone--green { background: #E2EBD7; color: #364D25; }
.tag--gold, .tone--gold { background: #F5E8C2; color: #5F470C; }
.tag--heron, .tone--heron { background: #E0E8EC; color: #36505C; }
.tag--mud, .tone--mud { background: #ECE4D7; color: #4A423A; }
.tag--pin { background: var(--ember-deep); color: #FFF8EE; }
.tag--new { background: var(--teal); color: #fff; padding-inline: .65rem; letter-spacing: .04em; }
a.tag:hover { filter: brightness(.95); }

.leaf { flex: none; width: 3.9rem; border-radius: .7rem; overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: 0 2px 0 var(--line); line-height: 1.1; }
.leaf__month { display: block; background: var(--ember-deep); color: #FFF8EE; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .22rem 0; }
.leaf__day { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; padding-top: .2rem; }
.leaf__dow { display: block; font-size: .7rem; font-weight: 600; color: var(--mud-soft); text-transform: uppercase; letter-spacing: .08em; padding-bottom: .3rem; }

.byline { display: inline-flex; align-items: center; gap: .6rem; margin: .7rem 0 0; line-height: 1.3; }
.byline__name { font-weight: 700; color: var(--mud); text-decoration: none; display: block; }
.byline__name:hover { text-decoration: underline; }
.byline__when { font-size: .9rem; color: var(--mud-soft); }

.avatar { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: hsl(var(--h) 46% 86%); color: hsl(var(--h) 55% 23%); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1; box-shadow: inset 0 0 0 1px hsl(var(--h) 35% 74%); }
.avatar--sm { width: 2rem; height: 2rem; font-size: .95rem; }
.avatar--lg { width: 4.25rem; height: 4.25rem; font-size: 2rem; }

/* ---------- Home ---------- */
.quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin: 0 0 2rem; }
.quick__btn { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--mud); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.quick__btn:hover { transform: translateY(-2px); border-color: #CFC0A8; color: var(--mud); }
.quick__btn strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.quick__btn small { color: var(--mud-soft); }
.quick__icon, .trio__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; flex: none; }
@media (min-width: 46rem) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.block { margin-bottom: 2.25rem; }
.blockrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .9rem; }
.blockhead { display: flex; align-items: center; gap: .45rem; font-size: 1.5rem; }
.block > .blockhead { margin-bottom: .9rem; }
.sectionhead { margin: 2.2rem 0 .9rem; font-size: 1.3rem; color: var(--mud-soft); }
.more-link { display: inline-flex; align-items: center; gap: .15rem; font-weight: 700; text-decoration: none; min-height: 2.5rem; }
.more-link:hover { text-decoration: underline; }
.quiet-card { background: rgba(255, 252, 246, .6); border: 1.5px dashed #CFC0A8; border-radius: var(--radius); padding: 1.4rem; text-align: center; color: var(--mud-soft); }

.cols { display: grid; gap: 0 2rem; grid-template-areas: "events" "fresh" "people"; grid-template-columns: minmax(0, 1fr); }
.cols__events { grid-area: events; } .cols__fresh { grid-area: fresh; } .cols__people { grid-area: people; }
@media (min-width: 62rem) { .cols { grid-template-columns: minmax(0, 1fr) 21rem; grid-template-areas: "fresh events" "fresh people" "fresh ."; grid-template-rows: auto auto 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; box-shadow: var(--shadow); }
.panel .blockhead { font-size: 1.25rem; }

.events { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; }
.event { position: relative; display: flex; gap: .9rem; align-items: center; padding: .6rem; margin: 0 -.6rem; border-radius: .8rem; }
.event:hover { background: var(--linen); }
.event__title { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; }
.event__title a { color: var(--mud); text-decoration: none; }
.event__meta { margin: .1rem 0 0; font-size: .92rem; color: var(--mud-soft); }
.event__going { margin: .1rem 0 0; font-size: .88rem; color: var(--teal-dark); font-weight: 600; }

.people-mini { list-style: none; margin: 0; padding: 0; }
.people-mini a { display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem; margin: 0 -.6rem; border-radius: .8rem; color: var(--mud); text-decoration: none; font-weight: 600; min-height: 2.9rem; }
.people-mini a:hover { background: var(--linen); }
.people-mini small { display: block; font-weight: 400; color: var(--mud-soft); line-height: 1.2; }

/* Landing page */
.trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin: 1.5rem 0 3rem; }
.trio__item h2 { margin: .8rem 0 .3rem; }
.trio__item p { color: var(--mud-soft); }
@media (min-width: 46rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.easy { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 1.5rem; padding: 2.5rem 1.5rem; box-shadow: var(--shadow); }
.easy h2 { font-size: 1.8rem; margin: 1rem 0 .6rem; }
.easy p { max-width: 30rem; margin-inline: auto; }
.wave { stroke: var(--ember); }

/* ---------- Board filters ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin-bottom: 1.25rem; }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .3rem 1.25rem .5rem; margin: -.3rem -1.25rem 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; flex: none; min-height: 2.75rem; padding: 0 1rem; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--mud); text-decoration: none; font-weight: 700; font-size: .95rem; scroll-snap-align: start; }
.chip:hover { border-color: var(--mud); color: var(--mud); }
.chip[aria-current] { background: var(--mud); border-color: var(--mud); color: var(--paper); }
@media (min-width: 46rem) { .chips { flex-wrap: wrap; overflow: visible; } }

.searchbox { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 99px; padding: .25rem .3rem .25rem 1rem; color: var(--mud-soft); }
.searchbox:focus-within { border-color: var(--teal); box-shadow: var(--focus); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--mud); min-height: 2.5rem; outline: none; box-shadow: none; }
.resultline { margin-bottom: 1rem; }

.pager { display: flex; justify-content: space-between; margin-top: 1.5rem; }
.aside { margin-top: 1.25rem; color: var(--mud-soft); }
.aside--center { text-align: center; margin-top: 2rem; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--mud-soft); }
.empty svg { color: var(--gold); margin: 0 auto .8rem; }
.empty h2 { color: var(--mud); margin-bottom: .5rem; }

/* ---------- Marketplace ---------- */
/* Two cards across on a phone; one across when the text is set large enough that two would be cramped */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(7.4rem, 40%)), 1fr)); gap: .8rem; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.1rem; } }
.listing { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s; }
.listing:hover { transform: translateY(-3px); border-color: #CFC0A8; box-shadow: 0 2px 4px rgba(42, 39, 35, .05), 0 16px 30px -16px rgba(42, 39, 35, .35); }
.listing:has(:focus-visible) { box-shadow: var(--focus); }
.listing__photo { position: relative; aspect-ratio: 4 / 3; background: var(--linen-deep); }
.listing__photo img { width: 100%; height: 100%; object-fit: cover; }
.listing__blank { display: grid; place-items: center; width: 100%; height: 100%; }
.listing__body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.listing__price { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ember-dark); margin: 0; line-height: 1.2; }
.listing__title { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; }
.listing__title a { color: var(--mud); text-decoration: none; }
.listing__meta { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin: auto 0 0; padding-top: .5rem; font-size: .88rem; color: var(--mud-soft); }
.listing--closed .listing__photo img, .listing--closed .listing__blank { filter: grayscale(1); opacity: .55; }
.status { display: inline-block; padding: .15rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.status--pending { background: var(--gold); color: #33270A; }
.status--closed { background: var(--mud); color: var(--paper); }
.listing__photo .status { position: absolute; left: .6rem; top: .6rem; }

/* ---------- A single note ---------- */
.post { background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.post__title { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.4rem); }
.post .rich { margin-top: 1.4rem; font-size: 1.08rem; }
.rich { overflow-wrap: anywhere; }
.rich ul { margin: 0 0 .8em; padding-left: 1.3em; }
.rich li { margin-bottom: .3em; }
.rich li::marker { color: var(--ember); }

.dealbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-top: 1.25rem; padding: 1rem 1.2rem; background: var(--linen); border-radius: var(--radius); border: 1px solid var(--line); }
.dealbox__price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--ember-dark); margin: 0; line-height: 1.1; }
/* Separate pills, so they drop to a second row instead of running off the edge at the bigger text sizes */
.segmented { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 100%; }
.segmented button { border: 1.5px solid var(--line-strong); border-radius: 99px; background: var(--paper); font: inherit; font-size: .95rem; font-weight: 700; padding: 0 .95rem; min-height: 2.75rem; cursor: pointer; color: var(--mud); }
.segmented button[aria-pressed="true"] { background: var(--mud); border-color: var(--mud); color: var(--paper); }

.eventbox { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 1.25rem; padding: 1.1rem 1.2rem; background: #E4EFEE; border: 1px solid #BFD8D6; border-radius: var(--radius); }
.eventbox .leaf { width: 4.4rem; }
.eventbox__when { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 .2rem; line-height: 1.25; }
.eventbox__where { display: flex; align-items: center; gap: .35rem; margin: 0 0 .8rem; font-weight: 600; }
.eventbox__goers { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .9rem 0 0; font-size: .95rem; }
.eventbox form { margin-top: .7rem; }
.facepile { display: inline-flex; flex-wrap: wrap; padding-left: .45rem; }
.facepile .avatar { margin-left: -.45rem; box-shadow: 0 0 0 2px #E4EFEE; }
.facepile .avatar:first-child { margin-left: -.45rem; }

.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: 1.4rem; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery a { border-radius: .8rem; overflow: hidden; border: 1px solid var(--line); background: var(--linen-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery--2 img, .gallery--3 img { aspect-ratio: 1; }
.gallery--1 img { max-height: 34rem; object-fit: contain; }

.post__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.post__tools { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.toollink { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.6rem; padding: 0 .3rem; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--teal-dark); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; border-radius: .4rem; }
.toollink:hover { color: var(--ember-dark); }
.toollink--danger { color: #8A2A18; }
.report { margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .95rem; }
.report summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--mud-soft); min-height: 2.6rem; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--mud); text-decoration: underline; }

.replies { margin-top: 2.25rem; }
.replies h2 { margin-bottom: 1rem; }
.replies__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.reply { display: flex; gap: .8rem; align-items: flex-start; scroll-margin-top: 1rem; }
.reply__main { flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .3rem 1rem 1rem 1rem; padding: .8rem 1rem; }
.reply__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; margin-bottom: .25rem; }
.reply:target .reply__main { border-color: var(--gold); background: #FFF8E3; }
.replyform { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; justify-items: start; }
.replyform .input { width: 100%; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.form--row { align-items: end; }
@media (min-width: 36rem) { .form--row { grid-template-columns: minmax(0, 1fr) auto; } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; min-width: 0; }
.label { font-weight: 700; display: block; padding: 0; }
.hint { font-size: .92rem; color: var(--mud-soft); margin: 0; }
.input { width: 100%; min-width: 0; min-height: 3.1rem; padding: .6rem .9rem; border: 1.5px solid var(--line-strong); border-radius: .7rem; background: #fff; color: var(--mud); font: inherit; }
.input::placeholder { color: #857A6B; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus); }
.input--area { resize: vertical; line-height: 1.5; min-height: 5.5rem; }
.input--pin { width: 9.5rem; max-width: 100%; font-size: 1.9rem; font-weight: 700; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 1.2rem; }
.input--pin::placeholder { color: #CFC5B5; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formactions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; padding: .3rem 0; }
.check input { width: 1.45rem; height: 1.45rem; margin: .12rem 0 0; accent-color: var(--teal); flex: none; }

.secret { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.secret .label { margin-bottom: .35rem; }
.secret__switch { margin-top: .2rem; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 2.6rem; color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; border-radius: .4rem; }
.pill input:focus-visible + span { box-shadow: var(--focus); }
.secret:has(input[value="pin"]:checked) .secret__pw,
.secret:has(input[value="pin"]:checked) .pill:has(input[value="pin"]),
.secret:has(input[value="password"]:checked) .secret__pin,
.secret:has(input[value="password"]:checked) .pill:has(input[value="password"]) { display: none; }

.reveal { position: relative; }
.reveal .input { padding-right: 5rem; }
.reveal__btn { position: absolute; right: .35rem; top: .35rem; bottom: .35rem; padding: 0 .9rem; border: 0; border-radius: .5rem; background: var(--linen); font: inherit; font-weight: 700; color: var(--teal-dark); cursor: pointer; }

.more { border: 1px solid var(--line); border-radius: .8rem; padding: 0 1rem; background: rgba(248, 242, 231, .5); }
.more summary { cursor: pointer; font-weight: 700; min-height: 3rem; display: flex; align-items: center; color: var(--teal-dark); }
.more[open] { padding-bottom: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

.choices__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .5rem; }
@media (min-width: 36rem) { .choices__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; } }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; align-items: center; height: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line-strong); border-radius: .9rem; background: #fff; line-height: 1.3; transition: border-color .12s, background .12s; }
.choice__box .icon { grid-row: span 2; }
.choice__label { font-weight: 700; }
.choice__blurb { font-size: .85rem; color: var(--mud-soft); grid-column: 2; }
@media (min-width: 36rem) {
  .choice__box { grid-template-columns: minmax(0, 1fr); align-content: start; padding: .8rem .9rem; }
  .choice__box .icon { grid-row: auto; margin-bottom: .3rem; }
  .choice__blurb { grid-column: 1; }
}
.choice:hover .choice__box { border-color: var(--mud); }
.choice input:checked + .choice__box { border-color: var(--teal); background: #E4EFEE; box-shadow: inset 0 0 0 1.5px var(--teal); }
.choice input:focus-visible + .choice__box { box-shadow: var(--focus); }

.eventfields { display: none; gap: 1rem; grid-template-columns: minmax(0, 1fr); padding: 1rem; background: #E4EFEE; border: 1px solid #BFD8D6; border-radius: .9rem; }
.field--full { grid-column: 1 / -1; }
@media (min-width: 36rem) { .eventfields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form:has(input[name="category"][value="events"]:checked) .eventfields { display: grid; }
.form:has(input[name="category"][value="free"]:checked) .pricefield { display: none; }

.photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .6rem; }
.photos__item, .photos__add { position: relative; aspect-ratio: 1; border-radius: .8rem; overflow: hidden; }
.photos__item { border: 1px solid var(--line); background: var(--linen-deep); }
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos__item.is-busy img { opacity: .45; }
.photos__remove { position: absolute; top: .3rem; right: .3rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: rgba(42, 39, 35, .82); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.photos__add { display: grid; place-content: center; justify-items: center; gap: .3rem; border: 2px dashed var(--line-strong); background: #fff; color: var(--teal-dark); font-weight: 700; font-size: .9rem; cursor: pointer; text-align: center; padding: .4rem; }
.photos__add:hover { border-color: var(--teal); background: #F1F7F6; }
.photos__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.photos__add:focus-within { box-shadow: var(--focus); }

/* ---------- Neighbors ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
@media (min-width: 40rem) { .people { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } }
.person { position: relative; display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.person:hover { transform: translateY(-2px); border-color: #CFC0A8; }
.person:has(:focus-visible) { box-shadow: var(--focus); }
.person__main { min-width: 0; }
.person__name { font-size: 1.25rem; }
.person__name a { color: var(--mud); text-decoration: none; }
.person__street, .person__about { margin: .1rem 0 0; color: var(--mud-soft); font-size: .95rem; }
.person__helper { display: inline-flex; align-items: center; gap: .3rem; margin: .2rem 0 0; font-size: .85rem; font-weight: 700; color: var(--teal-dark); }

.profile { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .3rem; padding-block: 2rem; }
.profile h1 { margin-top: .6rem; }
.profile__street { font-size: 1.15rem; margin: 0; }
.profile .rich { margin-top: .8rem; max-width: 30rem; }
.profile__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }

.linklist { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.linklist li + li { border-top: 1px solid var(--line); }
.linklist a { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: .85rem 1.1rem; color: var(--mud); text-decoration: none; }
.linklist a:hover { background: var(--linen); }
.linklist__title { font-weight: 700; }
.linklist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .9rem; color: var(--mud-soft); }

/* ---------- Messages ---------- */
.threads { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.thread { position: relative; display: flex; gap: .9rem; align-items: center; padding: .9rem 1.1rem; }
.thread + .thread { border-top: 1px solid var(--line); }
.thread:hover { background: var(--linen); }
.thread__main { flex: 1; min-width: 0; }
.thread__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; align-items: baseline; margin: 0; }
.thread__name { font-weight: 700; color: var(--mud); text-decoration: none; font-size: 1.08rem; }
.thread__preview { margin: 0; color: var(--mud-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread--unread .thread__preview { color: var(--mud); font-weight: 700; }
.dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--ember); flex: none; }

.convo { background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; }
.convo__head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.convo__head h1 { font-size: 1.4rem; }
.convo__head a { color: var(--mud); text-decoration: none; }
.convo__list { list-style: none; margin: 0; padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; min-height: 12rem; background: var(--linen); }
.convo__empty { margin: auto; text-align: center; color: var(--mud-soft); max-width: 22rem; }
.bubble { max-width: 85%; align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: .3rem 1.1rem 1.1rem 1.1rem; padding: .6rem .9rem .45rem; }
.bubble--mine { align-self: flex-end; background: #D8E9E8; border-color: #B5D2D0; border-radius: 1.1rem .3rem 1.1rem 1.1rem; }
.bubble__when { display: block; font-size: .78rem; color: var(--mud-soft); margin-top: .15rem; }
.convo__form { display: flex; gap: .6rem; align-items: flex-end; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.convo__form .input { min-height: 3rem; }

/* ---------- Good to know ---------- */
.infolayout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 52rem) { .infolayout { grid-template-columns: 14rem minmax(0, 1fr); align-items: start; } .toc { position: sticky; top: 1rem; } }
.toc { background: rgba(255, 252, 246, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.toc__title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mud-soft); margin-bottom: .4rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .4rem 0; font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.infocard { scroll-margin-top: 1rem; }
.infocard:target { border-color: var(--gold); }

/* ---------- Site helpers ---------- */
.adminlist { list-style: none; margin: 0; padding: 0; }
.adminlist li { display: flex; flex-wrap: wrap; gap: .7rem 1rem; justify-content: space-between; align-items: center; padding: .9rem 0; }
.adminlist li + li { border-top: 1px solid var(--line); }
.adminlist li.is-off { opacity: .6; }
.adminlist p { margin: .1rem 0 0; font-size: .9rem; }
.adminlist__who { display: flex; gap: .7rem; align-items: flex-start; min-width: 0; }
.adminlist__who .tag { margin-left: .4rem; }
.adminlist__tools { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Footer ---------- */
.foot { margin-top: 2rem; }
.grass-edge { display: block; width: 100%; height: 3.2rem; margin-bottom: -1px; }
.grass-edge .g1 { stroke: #5D7B49; opacity: .55; } .grass-edge .g2 { stroke: var(--gold); opacity: .8; }
.foot__in { background: var(--linen-deep); border-top: 1px solid var(--line); text-align: center; padding: 1.6rem 1.25rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; justify-items: center; }
.foot__line { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin: 0; font-size: .95rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 2.6rem; }
.textsize { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%; align-items: center; gap: .2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1.6rem; padding: .3rem .4rem .3rem 1rem; }
.textsize__label { font-size: .9rem; font-weight: 600; margin-right: .4rem; color: var(--mud-soft); }
.textsize__btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-family: var(--serif); font-weight: 600; color: var(--mud); text-decoration: none; line-height: 1; }
.textsize__btn--m { font-size: 1rem; } .textsize__btn--l { font-size: 1.3rem; } .textsize__btn--xl { font-size: 1.65rem; }
.textsize__btn:hover { background: var(--linen); }
.textsize__btn[aria-current] { background: var(--mud); color: var(--paper); }

@media (max-width: 30rem) {
  .note__thumb { width: 4.25rem; height: 4.25rem; }
  .note { padding: 1rem; gap: .8rem; }
  .note--pinned { padding-left: 1.6rem; }
  .leaf { width: 3.4rem; }
  .pagehead__actions, .pagehead__actions .btn { width: 100%; }
  .eventbox { flex-direction: column; }
}

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

/* Account page: the small "send a test email" link under the card form */
.mailtest { margin-top: .9rem; }
p.callout { margin: 1rem 0 0; }

/* Mid-width windows: the full menu needs the room, so the header drops its small second line.
   Measured against the header in text-size units, so a bigger Text size setting gets the compact header on a wider window too. */
@media (min-width: 62rem) {
  @container (max-width: 74.6rem) {
    .brand__sub, .iconbtn__label, .mebtn__name { display: none; }
    .mebtn { padding: .3rem; }
    .top__in { gap: .5rem; }
    .nav__link { padding: .6rem .65rem; }
  }
  /* The full header: if a long name and an unread badge leave it short of room, the name gives way, not the tagline */
  @container (min-width: 74.6rem) {
    .top__in { gap: .8rem; }
    .nav__link { padding: .6rem; }
    .brand, .iconbtn { flex-shrink: 0; }
    .top__me { flex-shrink: 1; min-width: 0; }
    .mebtn { min-width: 0; }
  }
  /* Tighter still (big text on a small laptop): menu words without their icons, and the name may stack */
  @container (max-width: 54rem) { .nav__link .icon { display: none; } }
  @container (max-width: 50rem) { .nav__link { padding: .6rem .5rem; } .brand__name { white-space: normal; line-height: 1.02; } }
}

/* Sign-in: the list of matching names under the name box */
.suggest { position: relative; }
.suggest__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + .35rem); margin: 0; padding: .35rem; list-style: none; max-height: 19rem; overflow-y: auto; background: #fff; border: 1.5px solid var(--line-strong); border-radius: .8rem; box-shadow: 0 14px 30px rgba(42, 39, 35, .18); }
.suggest__list[hidden] { display: none; }
.suggest__list li { display: block; min-height: 3rem; padding: .7rem .8rem; border-radius: .55rem; cursor: pointer; line-height: 1.5; }
.suggest__list li strong { font-weight: 700; }
.suggest__list li:hover, .suggest__list li[aria-selected="true"] { background: var(--linen-deep); }

/* A word too long for its line (a web address, a hyphenated name, a slip of the keyboard) breaks onto the next line instead of pushing the page wider than the screen */
body { overflow-wrap: break-word; }
/* Things that sit at their natural width inside a column never grow past it */
.replyform > *, .profile > *, .dealbox > *, .post__actions > *, .eventbox > *, .adminlist li > *, .linklist__meta > *,
.listing__meta > *, .reply__head > *, .note__foot > *, .note__event > *, .byline, .btn, .segmented button { max-width: 100%; min-width: 0; }
/* The words beside a round picture or icon wrap in the room that is left */
.avatar ~ *, .leaf ~ *, .quick__icon ~ *, .trio__icon ~ * { min-width: 0; }
/* Buttons that carry a neighbor's name or email address can break it rather than run past the edge */
.dealbox .btn, .mailtest .btn, .profile__actions .btn, .post__actions .btn { overflow-wrap: anywhere; }
/* Three across needs more room at the larger text sizes */
@media (min-width: 46rem) and (max-width: 62rem) { html.ts-l .quick, html.ts-xl .quick { grid-template-columns: minmax(0, 1fr); } }
/* Narrow columns, measured in text-size units (a small phone, or a bigger Text size): the photo sits above a note rather than squeezing its words, and neighbor cards get a smaller picture */
.stack, .people { container-type: inline-size; }
@container (max-width: 15.5rem) {
  .note { flex-wrap: wrap; }
  .note__thumb { order: -1; width: 100%; height: 8.5rem; }
  .person { gap: .8rem; }
  .person .avatar--lg { width: 3rem; height: 3rem; font-size: 1.45rem; }
}
.dealbox .btn { padding-inline: .95rem; }
