
:root {
  --paper: #ffffff;
  --ink: #111111;
  --text-2: #2b2724;
  --soft: #57514c;
  --muted: #6f6a66;
  --rule: #ebe6e1;
  --field: #e7e1dc;
  --accent: #c79288;      /* dusty rose: decoration only (fails contrast as text) */
  --accent-ink: #9e5f53;  /* deeper rose: links, buttons, labels */
  --accent-dark: #7d463c;
  --tint: #f7f1ef;
  --tint-2: #f3ede9;
  --body: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --display: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --meta: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --measure: clamp(36.4rem, 46vw, 56rem); /* Squarespace's post column is 46% of the window */
  --gutter: max(1.45rem, 4vw);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.19rem; line-height: 1.8; font-weight: 450; }
h1, h2, h3, h4, .brand, .post-nav a { font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* top bar + header (homepage round 1, 2026-10-13): Start here · Topics · Series · About · search · Subscribe */
.topbar { display: block; background: var(--accent-dark); color: #fff; text-align: center; font-family: var(--meta); font-weight: 500; font-size: .72rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; padding: .65rem 1rem; text-decoration: none; }
.topbar:hover { color: #fff; background: #6c3a31; }
.topbar b { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--rule); background: var(--paper); z-index: 20; }
.brand { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a, .hsearch .icon-btn { color: var(--ink); text-decoration: none; font-family: var(--meta); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding: .25rem 0; }
.nav > a:hover, .nav > a[aria-current] { color: var(--accent-ink); }
.nav a.tl::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: .5rem; }
.nav a.tl[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--meta); font-weight: 500; font-size: .75rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1.15rem; border-radius: 2px; background: var(--accent-ink); color: #fff; border: 1px solid var(--accent-ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.btn.ghost:hover { background: var(--accent-ink); color: #fff; }
.nav a.btn { color: #fff; padding: .75rem 1rem; }
.nav a.btn:hover { color: #fff; }
.icon-btn { width: 38px; height: 38px; display: inline-grid !important; place-items: center; border-radius: 50%; border: 1px solid var(--field); color: var(--ink) !important; padding: 0 !important; }
.icon-btn:hover { border-color: var(--accent-ink); }
.phone-only { display: none !important; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(40, 20, 15, .25); padding: 1.75rem var(--gutter) 2rem; }
.mega-in { max-width: 66rem; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 2.5rem; }
.mega-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.mega-big a { display: grid; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--meta); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.mega-big .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.mega-big img, .pm-circles img { width: 100%; height: 100%; object-fit: cover; }
.mega-list { columns: 2; column-gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.mega-list li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.mega-list a { display: block; padding: .45rem 0; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.mega-list a:hover, .mega-big a:hover { color: var(--accent-ink); }
.mega-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; margin-bottom: -.75rem; border-bottom: 1px solid var(--rule); }
.mh-title { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--accent-ink); }
.mega-head .go { text-decoration: none; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.mf-label { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--muted); margin-right: .4rem; }
.pill { display: inline-flex; align-items: center; font-family: var(--meta); font-weight: 600; font-size: .7rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; padding: .8rem 1.15rem; border: 1px solid var(--accent-ink); border-radius: 999px; color: var(--accent-ink); background: var(--paper); text-decoration: none; transition: background .15s, color .15s; }
.pill:hover, .pill.solid { background: var(--accent-ink); color: #fff; }
.pill.solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
/* menu search: the box slides out to the left of the round button */
.hsearch { position: relative; display: flex; align-items: center; }
.hs-box { position: absolute; right: calc(100% + .5rem); top: 50%; transform: translateY(-50%); width: 0; overflow: visible; transition: width .25s ease; }
.hs-box input { width: 100%; height: 40px; font: inherit; font-size: 1.05rem; padding: 0 .9rem; border: 1px solid var(--accent-ink); border-radius: 999px; background: var(--paper); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hs-box input:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(158, 95, 83, .18); }
.hsearch.open .hs-box { width: min(22rem, 40vw); }
.hsearch.open .hs-box input { opacity: 1; pointer-events: auto; }
.hsearch.open .icon-btn { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff !important; }
.hs-box .results { left: auto; right: 0; width: min(30rem, calc(100vw - 2 * var(--gutter))); }
.hsearch input::-webkit-search-cancel-button { display: none; }
.pm-links { display: grid; }
.pm-links a { font-family: var(--meta); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .9rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.pm-links a.accent { color: var(--accent-ink); }
.pm-circles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .4rem; padding-top: 1.25rem; }
.pm-circles .circle .ph { width: 60px; height: 60px; }
.pm-circles .circle span:last-child { font-size: .58rem; }
@media (max-width: 900px) {
  .wide-only { display: none !important; }
  .phone-only { display: inline-grid !important; }
  .nav { gap: .5rem; }
  .brand { font-size: 1.7rem; }
  .site-header { padding: .9rem var(--gutter); }
  .mega { max-height: calc(100vh - 7rem); overflow-y: auto; padding-top: .5rem; }
  .hsearch.open .hs-box { width: calc(100vw - 2 * var(--gutter) - 6.5rem); }
  .hsearch.open ~ .phone-only { visibility: hidden; }
  .hs-box .results { right: -5.75rem; }
}
@media (min-width: 901px) { .phone-menu { display: none !important; } }
/* shared bits */
.label { font-family: var(--meta); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.label.accent { color: var(--accent-ink); }
.label.rule { border-bottom: 1px solid var(--rule); padding-bottom: .9rem; }
.center { text-align: center; }
p.fine, .hello-text p.fine, .feature p.fine { font-family: var(--meta); font-size: .8rem; line-height: 1.6; color: var(--muted); margin: .75rem 0 0; }
.muted { color: var(--muted); }
.done { font-style: italic; color: var(--text-2); margin: 0; min-height: 54px; display: flex; align-items: center; }
a .t { transition: none; }
a:hover .t { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.combo { display: flex; border: 1px solid var(--field); border-radius: 2px; background: var(--paper); height: 54px; max-width: 29rem; }
.combo input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.1rem; padding: 0 1.1rem; color: var(--ink); border-radius: 2px 0 0 2px; }
.combo input:focus-visible { outline-offset: -2px; }
.combo button, .reply button { flex: 0 0 auto; border: 0; background: var(--accent-ink); color: #fff; font-family: var(--body); font-size: 1.1rem; padding: 0 1.4rem; cursor: pointer; white-space: nowrap; border-radius: 0 2px 2px 0; }
.combo button:hover, .reply button:hover { background: var(--accent-dark); }
.combo button:disabled, .reply button:disabled { opacity: .6; cursor: default; }
.outline { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.75rem; border: 1px solid var(--accent-ink); color: var(--accent-ink); text-decoration: none; font-size: 1.15rem; border-radius: 2px; background: var(--paper); }
.outline:hover { background: var(--accent-ink); color: #fff; }
.house { display: block; flex: 0 0 auto; }
.pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.tall { display: flex; align-items: center; justify-content: center; }
.pic.tall img { width: auto; height: 84%; object-fit: contain; box-shadow: 0 6px 18px rgba(40,30,20,.18); }
.pic.blank { display: flex; align-items: center; justify-content: center; }

/* post */
.post { padding: 4rem var(--gutter) 3rem; }
.post-head { max-width: 52rem; margin: 0 auto 2.5rem; text-align: center; }
.post-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.9rem, 6vw, 3.88rem); line-height: 1.25; margin: 0; text-wrap: balance; }
.hero { max-width: var(--measure); margin: 0 auto 2.25rem; }
.hero img { width: 100%; margin: 0 auto; }
.hero.third img { width: 31%; }
.hero.half img { width: 48%; }
.hero.two-thirds img { width: 65%; }
.post-body { max-width: var(--measure); margin: 0 auto; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1rem; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--display); font-weight: 500; line-height: 1.3; margin: 3.25rem 0 .6rem; text-wrap: balance; } /* roomy above (like Squarespace), snug below */
.post-body h2 { font-size: clamp(2.14rem, 4.2vw, 2.73rem); }
.post-body h3 { font-size: clamp(1.7rem, 3.4vw, 2.15rem); }
.post-body h4 { font-size: clamp(1.35rem, 2.6vw, 1.58rem); }
.post-body ul, .post-body ol { margin: 1em 0; padding-left: 2.5rem; }
.post-body li { margin: .5em 0; }
.post-body li > ul, .post-body li > ol { margin: .5em 0; }
.post-body blockquote { margin: 1.75rem 0 1.75rem 2.5rem; }
.post-body blockquote p { margin: 0 0 .5rem; }
.post-body cite { display: block; font-style: normal; font-family: var(--meta); font-size: .78rem; letter-spacing: .04em; color: var(--muted); margin-top: .5rem; }
.post-body cite::before { content: "— "; }
.post-body hr { border: 0; border-top: 1px solid var(--ink); margin: 2.25rem 0; height: 0; }
.post-body figure { margin: 2rem 0; }
.post-body figure img { margin: 0 auto; width: 100%; }
.post-body figcaption, .hero figcaption { font-family: var(--body); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--muted); text-align: center; margin-top: .6rem; }
.post-body figure.row { display: grid; gap: .6rem; }
.post-body figure.row-2 { grid-template-columns: 1fr 1fr; }
.post-body figure.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-body figure.row img { width: 100%; height: 100%; object-fit: cover; }
.post-body figure.row figcaption { grid-column: 1 / -1; }
/* Galleries: square tiles, 20px apart like Squarespace, and as many per row as the gallery asks for. */
.post-body .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.4rem, 1.5vw, 1.25rem); margin: 2rem 0; }
.post-body .gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-body .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-body .gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.post-body .gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.post-body .gallery.cols-6 { grid-template-columns: repeat(6, 1fr); }
.post-body .gallery-item { display: block; aspect-ratio: 1; overflow: hidden; }
.post-body .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.post-body .gallery-item:hover img { opacity: .85; }
/* Picture sizes as a share of the column, as measured on Squarespace (a 4-, 6- or 8-of-12 column).
   Side photos: 8.67% per twelfth of the column, less 3.93% (22.1 / 30.8 / 39.4 / 48.1% for spans 3-6). */
.post-body figure.third img { width: 31%; }
.post-body figure.half img { width: 48%; }
.post-body figure.two-thirds img { width: 65%; }
.post-body figure.side-left, .post-body figure.side-right { width: 31%; margin: .45rem 0 1rem; }
.post-body figure.span-2 { width: 13.4%; }
.post-body figure.span-3 { width: 22.1%; }
.post-body figure.span-4 { width: 30.7%; }
.post-body figure.span-5 { width: 39.4%; }
.post-body figure.span-6 { width: 48.1%; }
.post-body figure.span-7 { width: 56.7%; }
.post-body figure.span-8 { width: 65.4%; }
.post-body figure.side-left { float: left; margin-right: 1.5rem; }
.post-body figure.side-right { float: right; margin-left: 1.5rem; }
.post-body h2, .post-body h3, .post-body h4, .post-body hr, .post-body .cols, .post-body .gallery, .post-body figure:not(.side-left):not(.side-right) { clear: both; }
.post-body .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 1.5rem 0; }
.post-body .cols > div > :first-child { margin-top: 0; }
.post-body p.large { font-size: 1.3em; line-height: 1.6; }
.post-body p.small { font-size: .88em; margin-bottom: .35rem; }
.post-body p.center { text-align: center; }
/* video and podcast players (see embed.js) */
.post-body figure.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.post-body figure.embed.audio iframe { aspect-ratio: auto; height: 352px; border-radius: 12px; }

/* slideshow (see PUBLIC_JS); before the script runs it's an ordinary grid */
.post-body .gallery.ss-on { display: block; }
.ss-stage { position: relative; aspect-ratio: 4 / 3; background: var(--tint-2); overflow: hidden; touch-action: pan-y; }
.ss-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.ss-stage img.tall { object-fit: contain; }
.ss-stage img.on { opacity: 1; }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; padding: 0; z-index: 1; }
.ss-btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.ss-prev { left: .75rem; } .ss-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.ss-next { right: .75rem; } .ss-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.ss-btn:hover { background: #fff; }
.ss-count { position: absolute; right: .75rem; bottom: .6rem; z-index: 1; font-family: var(--meta); font-size: .72rem; color: #fff; background: rgba(0,0,0,.45); padding: .15rem .5rem; border-radius: 2px; }
.ss-strip { display: flex; gap: .3rem; overflow-x: auto; margin-top: .4rem; scrollbar-width: thin; }
.post-body .ss-strip .gallery-item { flex: 0 0 auto; height: 80px; width: auto; aspect-ratio: auto; opacity: .55; transition: opacity .2s; }
.post-body .ss-strip .gallery-item img { height: 80px; width: auto; max-width: none; }
.post-body .ss-strip .gallery-item.cur, .post-body .ss-strip .gallery-item:hover { opacity: 1; }
@media (max-width: 640px) { .ss-strip .gallery-item, .ss-strip .gallery-item img { height: 56px !important; } .ss-btn { width: 36px; height: 36px; } }
.post-body .callout { background: var(--tint); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.post-body .callout > :last-child { margin-bottom: 0; }
.post-body .button-wrap { text-align: center; margin: 2rem 0; }
.post-body a.button, .button { display: inline-block; font-family: var(--meta); font-size: .9rem; letter-spacing: .02em; font-weight: 500; text-decoration: none; background: var(--ink); color: #fff; padding: .85rem 1.6rem; border-radius: 2px; }
.post-body a.button:hover, .button:hover { background: #333; color: #fff; }
.post-body .table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.post-body th, .post-body td { border-bottom: 1px solid var(--rule); padding: .4rem .6rem; text-align: left; vertical-align: top; }
mark.todo { background: #fff3b0; color: inherit; padding: 0 .15em; }
.post-body .todo-block { background: #fff8d6; border: 1px dashed #d8c35a; padding: 1rem 1.25rem; font-family: var(--meta); font-size: .85rem; line-height: 1.6; }
.post-body .todo-block mark { background: none; }
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .post { padding-top: 2rem; }
  .post-body ul, .post-body ol { padding-left: 1.5rem; }
  .post-body blockquote { margin-left: 1.25rem; }
  .post-body .gallery, .post-body .gallery[class*="cols-"] { grid-template-columns: repeat(2, 1fr); }
  .post-body figure.third img, .hero.third img { width: 60%; }
  .post-body figure.half img, .post-body figure.two-thirds img, .hero.half img, .hero.two-thirds img { width: 100%; }
  .post-body .cols { grid-template-columns: 1fr; }
  .post-body figure.side-left, .post-body figure.side-right { width: 40%; }
  .post-body figure.side-left[class*="span-"], .post-body figure.side-right[class*="span-"] { width: 40%; }
}

/* end of post: Subscribe · Reflect · Share. Three equal pale-rose panels close to the last line; small quiet
   labels, the prompt in Brett's voice leads, and the rose buttons are the only strong color. */
.post-end { max-width: 68rem; margin: 3.75rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; align-items: stretch; }
.end-col { display: flex; flex-direction: column; gap: 1.1rem; text-align: center; background: var(--tint); padding: 2rem 1.75rem 2.25rem; }
@supports (grid-template-rows: subgrid) {
  .post-end { row-gap: 1.25rem; } /* space between panels when they stack; .end-col sets its own gap inside */
  .end-col { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: .9rem; align-content: start; }
}
.end-col h2 { font-family: var(--meta); font-weight: 500; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; color: var(--muted); margin: 0; }
.end-q { font-size: 1.4rem; line-height: 1.45; font-style: italic; color: var(--ink); margin: 0; align-self: center; } /* a short prompt sits centered beside a long one */
.end-col .combo { max-width: none; }
.end-col .combo input { font-size: 1.06rem; padding: 0 .9rem; }
.end-col .combo button { font-size: 1.06rem; padding: 0 1.1rem; }
.end-col .fine { margin: 0; }
.end-body { display: flex; flex-direction: column; gap: .75rem; }
.end-body .icons { margin-bottom: .1rem; }
.end-col .done { justify-content: center; text-align: center; }
.reply { position: relative; border: 1px solid var(--field); border-radius: 2px; background: var(--paper); }
.reply textarea { display: block; width: 100%; border: 0; background: transparent; font: inherit; font-size: 1.06rem; line-height: 1.5; padding: .75rem .9rem 3.5rem; resize: vertical; color: var(--ink); min-height: 7.5rem; }
.reply textarea:focus-visible { outline-offset: -2px; }
.reply button { position: absolute; right: 6px; bottom: 6px; height: 40px; border-radius: 2px; font-size: 1.06rem; padding: 0 1.1rem; }
.icons { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field); background: var(--paper); color: var(--soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none; }
.ic:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.ic.copied { border-color: var(--accent-ink); color: var(--paper); background: var(--accent-ink); }
.ic[hidden] { display: none; }
.post-nav { max-width: 68rem; margin: 3rem auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.post-nav > span { flex: 1 1 18rem; } /* long titles wrap within their half; Next stays on the right */
.post-nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.6rem; line-height: 1.25; }
.post-nav a:hover { text-decoration: underline; }
.post-nav small { display: block; font-family: var(--meta); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }

/* site pages: shared layout */
main.home, main.about, main.start, main.subscribe, main.writing { padding: 0 var(--gutter); }
.wide { max-width: 61rem; margin: 8rem auto 0; }
.narrow { max-width: 47.5rem; margin: 7rem auto 0; }
main > section:first-child { margin-top: 5.5rem; }
main h1 { font-family: var(--display); font-weight: 500; line-height: 1.05; }
.band { background: var(--tint); padding: 3.5rem 2rem; text-align: center; }
.band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 0; }
.band .combo { margin: 1.75rem auto 0; }
.band .done { justify-content: center; }
.band > .house { margin: 0 auto 1.1rem; }
.lede { font-size: 1.35rem; line-height: 1.6; color: var(--text-2); margin: 1.25rem 0 0; }
.dek { font-size: 1.1rem; line-height: 1.55; color: var(--soft); }

/* hello: portrait beside the welcome (home + About) */
.hello { max-width: 61rem; margin: 5.5rem auto 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 2.5rem 4rem; }
.portrait { flex: 0 1 19rem; min-height: 18rem; position: relative; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hello-text { flex: 1 1 26rem; min-width: 0; padding: .25rem 0; }
.hello-text h1 { font-size: clamp(2.75rem, 6vw, 3.9rem); margin: 0; letter-spacing: -.01em; }
.hello-text p { font-size: 1.3rem; line-height: 1.65; color: var(--text-2); margin: 1.5rem 0 0; }
.hello-text .combo { margin-top: 2rem; }
.hello-text p.fine { margin-top: .75rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 720px) {
  .portrait { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 5; max-height: 30rem; }
  .wide { margin-top: 5rem; }
  .narrow { margin-top: 4.5rem; }
  .hello, main > section:first-child { margin-top: 2.5rem; }
  .writing h1 { margin-top: 2.5rem; }
  .site-footer { margin-top: 5rem; }
  .post-end { margin-top: 3rem; }
  .post-nav { flex-direction: column; }
  .post-nav > span { flex: none; }
  .post-nav > span { text-align: left !important; }
}

/* feature: one big essay, picture beside the words */
.feature { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 2rem 3.5rem; text-decoration: none; color: var(--ink); }
.feature:hover { color: var(--ink); }
.feature-text { flex: 1 1 21rem; min-width: 0; }
.feature .pic { flex: 0 1 31rem; width: 100%; }
.feature h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.25rem, 4.5vw, 2.9rem); line-height: 1.1; margin: .85rem 0 0; }
.feature p { font-size: 1.25rem; line-height: 1.6; color: var(--text-2); margin: .9rem 0 0; }
.feature .go { color: var(--accent-ink); font-size: 1.19rem; }
.feature.reverse { flex-wrap: wrap; margin-top: 1.75rem; }
.feature.reverse .pic { flex-basis: 27.5rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 3rem 2.25rem; margin-top: 2.25rem; }
.card { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .label { font-size: .7rem; }
.card-title { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; }

/* the house band: "Fifty essays, from the ground up" */
.levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; max-width: 51rem; margin: 2.5rem auto 0; text-align: left; }
.level { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); flex: 1 1 13rem; }
.level:hover { color: var(--ink); }
.level .t { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; }
.level small { font-size: 1rem; color: var(--muted); }
.band .outline { margin-top: 1.25rem; }
.band > p { margin: 1.5rem 0 0; }

/* Writing page */
.writing { max-width: 54rem; margin: 0 auto; }
.writing h1 { font-size: clamp(2.75rem, 6vw, 3.75rem); text-align: center; margin: 5.5rem 0 0; }
.writing > .lede { max-width: 34rem; margin: .6rem auto 0; font-size: 1.2rem; color: var(--soft); }
.sort { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.75rem; font-family: var(--meta); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sort > span { margin-right: .5rem; }
.sort button { font: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: 600; background: var(--paper); border: 1px solid var(--field); border-radius: 999px; padding: .65rem 1.1rem; color: var(--ink); cursor: pointer; }
.sort button:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.sort button.on { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.jump { margin-top: 1.5rem; }
.wgroup { padding-top: 3rem; scroll-margin-top: 1rem; }
.whead { display: flex; align-items: center; gap: .75rem; }
.whead .house { width: 34px; height: 34px; }
.whead h2 { font-family: var(--display); font-weight: 500; font-size: 2.2rem; line-height: 1.1; margin: 0; color: var(--ink); white-space: nowrap; }
.whead .count { font-family: var(--meta); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.whead .dots { flex: 1; border-top: 2px dotted var(--accent); min-width: 1rem; }
.whead .go { text-decoration: none; white-space: nowrap; }
.wnote { margin: .3rem 0 0; font-style: italic; color: var(--soft); font-size: 1.1rem; }
.wlist { display: grid; gap: .25rem; margin-top: 1rem; }
.wrow { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.15rem; align-items: center; padding: .6rem .6rem .6rem 0; text-decoration: none; color: var(--ink); border-radius: 3px; transition: background .15s; }
.wrow .ph { width: 5.5rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.wrow .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wrow:hover { background: var(--tint); color: var(--ink); }
.wrow:hover .ph img { transform: scale(1.06); }
.wtxt { display: grid; gap: .1rem; min-width: 0; }
.wtxt .label { font-size: .64rem; font-weight: 600; }
.wrow .t { font-size: 1.3rem; line-height: 1.25; }
.wrow:hover .t { color: var(--accent-ink); text-decoration: none; }
.wrow .dek { font-size: 1rem; line-height: 1.4; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .d { font-family: var(--meta); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.wser { background: var(--tint); padding: .4rem 1.1rem 1.1rem; margin: .5rem 0; }
.wser > .wrow:hover { background: transparent; }
.wser .wrow .t { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.wparts { list-style: none; margin: .5rem 0 0; padding: .75rem 0 0; border-top: 1px solid #ead9d3; columns: 2; column-gap: 2rem; }
.wparts li { break-inside: avoid; }
.wparts a { display: flex; gap: .7rem; align-items: baseline; padding: .3rem 0; color: var(--ink); text-decoration: none; font-size: 1.08rem; line-height: 1.3; }
.wparts .n { flex: 0 0 1.4rem; font-family: var(--meta); font-weight: 600; font-size: .7rem; color: var(--accent-ink); text-align: right; }
.wparts a:hover .t { color: var(--accent-ink); }
.empty { text-align: center; color: var(--muted); margin-top: 2rem; }
/* kept from the old Writing list: photo rows in posts (figure.row) still pick these up */
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; padding: .55rem 0; border-bottom: 1px solid #f0ebe7; text-decoration: none; color: var(--ink); }
.group-name { font-family: var(--display); font-size: 1.9rem; color: var(--accent-ink); line-height: 1.2; }
@media (max-width: 640px) {
  .whead h2 { font-size: 1.8rem; }
  .whead .dots { display: none; }
  .whead { flex-wrap: wrap; row-gap: .2rem; }
  .whead .go { margin-left: auto; }
  .wrow { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .9rem; align-items: start; }
  .wrow .ph { width: 4.5rem; aspect-ratio: 1; }
  .wrow .d { display: none; }
  .wrow .dek { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .95rem; }
  .wrow .t { font-size: 1.2rem; }
  .wser { padding: .3rem .8rem .9rem; }
  .wser .wrow .t { font-size: 1.45rem; }
  .wparts { columns: 1; }
  .sort { flex-wrap: wrap; }
}

/* About */
.prose p { margin: 0 0 1.25rem; }
.about .hello-text h1 { margin-bottom: 1.5rem; }
.about .hello-text p { font-size: 1.25rem; line-height: 1.75; }
.divider { max-width: 47.5rem; margin: 5.5rem auto 0; border: 0; border-top: 1px solid var(--rule); }
.about .divider + .narrow { margin-top: 4.5rem; }
.about h2.center { font-family: var(--display); font-weight: 500; font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1.15; margin: .9rem 0 0; }
.about .narrow .prose { font-size: 1.25rem; line-height: 1.75; margin-top: 1.75rem; }
.motto { font-family: var(--display); font-size: 1.75rem; font-style: italic; text-align: center; margin: 2rem 0 !important; }
.layer-list { border-top: 1px solid var(--rule); }
.layer-row { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.layer-head { flex: 0 0 9.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.layer-body { flex: 1 1 22rem; min-width: 0; font-size: 1.19rem; line-height: 1.7; }
.layer-body p { margin: 0; }
.layer-body p + p { margin-top: .6rem; }
.prose-p { font-size: 1.25rem; line-height: 1.75; margin: 2.5rem 0 0; }
.hi { font-size: 1.19rem; }

/* Start here */
.start h1, .subscribe h1 { font-size: clamp(2.75rem, 6vw, 3.9rem); margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 3rem; margin-top: 2.25rem; }
.col { display: flex; flex-direction: column; gap: 1.4rem; }
.col-head { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.col-head small { font-size: 1rem; color: var(--muted); }
.pick { display: block; text-decoration: none; color: var(--ink); }
.pick:hover { color: var(--ink); }
.pick .t { font-family: var(--display); font-size: 1.55rem; line-height: 1.2; }
.pick .dek { font-size: 1.06rem; margin-top: .25rem; }
.start .wide > p.center { margin: 2.75rem 0 0; font-size: 1.19rem; }
.series { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.series .row { padding: 1rem 0; border-bottom-color: var(--rule); }
.series .row .t { font-family: var(--display); font-size: 1.6rem; }

/* Subscribe */
.subscribe .combo { margin: 2.5rem auto 0; height: 58px; max-width: 31rem; }
.subscribe .done { justify-content: center; margin-top: 2.5rem; }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2rem; margin-top: 3rem; }
.promises div { flex: 1 1 11rem; font-size: 1.1rem; line-height: 1.5; color: var(--text-2); }
.promises strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--accent-ink); }
.latest { border-top: 1px solid var(--rule); padding-top: 2rem; }
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.25rem; margin-top: 1.4rem; text-decoration: none; color: var(--ink); }
.mini:hover { color: var(--ink); }
.mini .pic { flex: 0 1 16rem; width: 100%; }
.mini > span { flex: 1 1 18rem; min-width: 0; }
.mini .t { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.2; }
.mini .dek { display: block; margin-top: .4rem; }
.rss { margin: 4.5rem 0 0; font-size: 1.1rem; }

/* old list layout: still used by Not found and error pages */
.list { max-width: var(--measure); margin: 0 auto; padding: 3rem var(--gutter); }
.list h1 { font-family: var(--display); font-weight: 500; font-size: 3rem; text-align: center; margin: 0 0 2rem; }

/* Resources page (src/resources.js) */
main.resources { padding: 0 var(--gutter); }
.res-head { max-width: 61rem; margin: 5.5rem auto 0; text-align: center; }
.res-head h1 { font-size: clamp(2.75rem, 6vw, 3.9rem); margin: 0; }
.res-head .lede { margin: 1rem auto 0; }
.res-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.res-nav a { font-family: var(--meta); font-size: .82rem; color: var(--ink); text-decoration: none; border: 1px solid var(--field); border-radius: 99px; padding: .35rem .9rem; }
.res-nav a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.res-section { max-width: 61rem; margin: 5.5rem auto 0; scroll-margin-top: 1.5rem; }
.res-section > h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 .6rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); text-align: center; }
.res-section > p { color: var(--text-2); margin: .9rem auto 0; max-width: 46rem; text-align: center; }
/* Rows of cards that wrap; a short last row sits centered. 4 / 5 / 4 across on a wide screen. */
.res-cards, .res-books, .res-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.75rem; margin-top: 2rem; }
.res-cards > * { flex: 0 1 calc((100% - 3 * 1.75rem) / 4); min-width: 12rem; }
.res-books { gap: 2rem 1.5rem; }
.res-books > * { flex: 0 1 calc((100% - 4 * 1.5rem) / 5); min-width: 8.5rem; }
.res-people > * { flex: 0 1 calc((100% - 3 * 1.75rem) / 4); min-width: 10rem; }
.res-card { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.res-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; margin: 0; }
.res-card h3 a { color: var(--ink); text-decoration: none; }
.res-card h3 a:hover { text-decoration: underline; }
.res-text { font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.res-text p { margin: 0 0 .5rem; }
.res-text p:last-child { margin-bottom: 0; }
.res-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint-2); }
.res-pic img { width: 100%; height: 100%; object-fit: cover; }
.res-card.fit-contain .res-pic img { object-fit: contain; padding: .75rem; }
.res-card.books .res-pic { aspect-ratio: 2 / 3; background: none; }
.res-card.books .res-pic img { object-fit: contain; object-position: bottom; }
.res-card.books h3 { font-size: 1.2rem; }
.res-card.books .res-text { font-size: .92rem; }
.res-card.people { text-align: center; align-items: center; }
.res-card.people .res-pic { width: 8.5rem; aspect-ratio: 1; border-radius: 50%; }
.res-body { display: flex; flex-direction: column; }
.res-body .res-text + .res-btn, .res-body h3 + .res-btn { margin-top: .9rem; }
#free .res-body { flex: 1; }
#free .res-body h3 { margin-bottom: .9rem; }
#free .res-btn { align-self: center; margin-top: auto; } /* Free resources: centered, and level across the row */
.res-btn { align-self: flex-start; font-family: var(--body); font-size: 1rem; color: var(--accent-ink); border: 1px solid var(--accent-ink); border-radius: 2px; padding: .35rem 1rem; text-decoration: none; }
.res-btn:hover { background: var(--accent-ink); color: #fff; }
.res-sub { background: var(--tint); margin-top: 2.5rem; padding: 2rem 1.75rem; text-align: center; }
.res-sub p { margin: 0 0 1rem; font-style: italic; font-size: 1.2rem; }
.res-sub .combo { margin: 0 auto; }
.res-sub p.fine { margin: .75rem 0 0; font-style: normal; }
.res-quote { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.3; margin: 1.5rem 0 0; }
.res-intro { max-width: 46rem; color: var(--text-2); margin-top: 1rem; }
.res-intro p { margin: 0 0 .75rem; }
.res-group { font-family: var(--meta); font-weight: 500; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 0; }
.res-list { display: grid; gap: 1.75rem; margin-top: 1.25rem; }
.res-card.travel { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: start; }
.res-card.travel .res-pic { aspect-ratio: auto; background: none; }
.res-card.travel .res-pic img { height: auto; }
@media (max-width: 640px) {
  .res-head { margin-top: 2.5rem; }
  .res-section { margin-top: 4rem; }
  .res-cards, .res-books, .res-people { gap: 1.5rem 1rem; }
  .res-cards > *, .res-books > *, .res-people > * { flex-basis: calc((100% - 1rem) / 2); min-width: 0; }
  .res-card.travel { grid-template-columns: 1fr; }
  .res-card.travel .res-pic { max-width: 14rem; }
}

/* footer */
/* homepage (option A, 2026-10-13), plus the Topics, topic and Series pages */
.home2 { padding: 0; }
.hw { max-width: 70rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.home2 img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home2 .ph { overflow: hidden; background: var(--tint); display: block; }
.sec { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.sec-head h2 { font-family: var(--display); font-weight: 500; font-size: 2.3rem; line-height: 1.1; margin: 0; white-space: nowrap; }
.sec-head .dots { flex: 1; border-top: 2px dotted var(--accent); min-width: 1rem; }
.sec-head .side { font-family: var(--meta); font-size: .75rem; color: var(--muted); }
.rotnote { font-family: var(--meta); font-size: .78rem; color: var(--muted); margin: -.6rem 0 1.25rem; }
.more { text-align: center; margin-top: 2rem; }
.go { font-family: var(--meta); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.home2 h1 { font-size: clamp(2.75rem, 6vw, 3.75rem); text-align: center; margin: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
.chips a { font-family: var(--meta); font-size: .75rem; padding: .55rem .9rem; border: 1px solid var(--field); border-radius: 999px; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

.tagline { text-align: center; padding: 1.35rem var(--gutter); border-bottom: 1px solid var(--rule); font-family: var(--meta); font-weight: 500; font-size: .78rem; line-height: 1.6; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
.tagline em { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--accent-ink); margin-left: .35rem; }
.gray { background: #f5f4f3; }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; padding-top: 2.5rem; }
.door { position: relative; display: block; text-decoration: none; }
.door .ph { aspect-ratio: 5 / 7; }
.door img { transition: transform .5s ease; }
.door:hover img { transform: scale(1.04); }
.door .tab { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); background: var(--accent-ink); color: #fff; font-family: var(--meta); font-weight: 600; font-size: .72rem; line-height: 1; letter-spacing: .16em; text-transform: uppercase; padding: .65rem 1.4rem; white-space: nowrap; }
.door .tab small { font-weight: 400; opacity: .8; letter-spacing: .06em; margin-left: .4rem; font-size: inherit; }
.door:hover .tab { background: var(--accent-dark); }
.circles { display: grid; grid-template-columns: repeat(8, 6rem); justify-content: center; gap: 1.1rem .9rem; padding-top: 2.75rem; }
.circle { display: grid; justify-items: center; align-content: start; gap: .5rem; text-align: center; text-decoration: none; color: var(--ink); }
.circle .ph { width: 86px; height: 86px; border-radius: 50%; box-shadow: 0 0 0 1px var(--rule); }
.circle span:last-child { font-family: var(--meta); font-weight: 600; font-size: .66rem; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }
.circle:hover { color: var(--accent-ink); }
.circle:hover .ph { box-shadow: 0 0 0 2px var(--accent-ink); }
.find { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .75rem .9rem; padding-top: 1.5rem; padding-bottom: 2.75rem; }
.search { position: relative; width: min(27rem, 100%); }
.search input { width: 100%; font: inherit; font-size: 1.05rem; padding: .7rem .9rem .7rem 2.5rem; border: 1px solid var(--field); border-radius: 2px; background: var(--paper); color: var(--ink); }
.search > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--field); box-shadow: 0 14px 30px -14px rgba(40, 20, 15, .3); z-index: 10; text-align: left; }
.results { max-height: min(34rem, 75vh); overflow-y: auto; }
.results a.hit { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.results .hit .ph { display: block; width: 3.5rem; height: 3.5rem; overflow: hidden; background: var(--tint); }
.results .hit img { width: 100%; height: 100%; object-fit: cover; }
.results .hit .t { display: block; font-size: 1.08rem; line-height: 1.25; }
.results .snip, .s-row .snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.45; color: var(--soft); margin-top: .2rem; }
.results mark, .s-row mark { background: #f6e3dd; color: inherit; padding: 0 .1em; border-radius: 2px; }
.results a.hit:hover, .results a.hit:focus-visible { background: var(--tint); outline: 0; }
.results a.all { display: block; padding: .75rem .9rem; font-family: var(--meta); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.results a.all:hover, .results a.all:focus-visible { background: var(--tint); outline: 0; }
.results .none { padding: .8rem .9rem; font-family: var(--meta); font-size: .8rem; color: var(--muted); }
.or { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--muted); }

.picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.pcard { display: grid; align-content: start; gap: .5rem; text-decoration: none; color: var(--ink); }
.pcard .ph { aspect-ratio: 4 / 5; }
.pcard .cat { font-family: var(--meta); font-weight: 600; font-size: .62rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); border-bottom: 1px solid var(--accent); justify-self: start; padding-bottom: 2px; margin-top: .25rem; }
.pcard .t { font-size: 1.1rem; line-height: 1.25; text-wrap: balance; }
.pcard .dek { font-size: 1rem; line-height: 1.45; color: var(--soft); }
.pcard:hover { color: var(--ink); }
.pcard:hover .t { color: var(--accent-ink); }

.meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); max-width: 84rem; margin: 0 auto; }
/* the Kyoto portrait, big and fixed (2 by 2), then six small squares that change daily (3 by 2) */
.meet .six { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding-left: 6px; }
.meet .six .ph { aspect-ratio: 1; }
.meet .six .big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.meet .six .big img { object-position: 50% 30%; }
.meet .six img { transition: transform .5s ease; }
.meet .six .ph:hover img { transform: scale(1.04); }
.meet .txt { background: var(--tint); padding: 2.25rem 2rem; display: grid; align-content: center; gap: .6rem; }
.meet .txt h2 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2.6rem; line-height: 1; margin: 0; color: var(--accent-ink); }
.meet .txt p { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--soft); }
.meet .txt p:last-child { margin-top: .5rem; }
.strip { background: var(--accent-dark); color: #fff; }
.strip .hw { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.strip h2 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2.1rem; line-height: 1; margin: 0; }
.strip p { margin: .35rem 0 0; font-family: var(--meta); font-size: .78rem; opacity: .9; }
.strip .combo { flex: 1 1 22rem; max-width: 28rem; border-color: transparent; }
.strip .combo button { background: var(--ink); }
.strip .combo button:hover { background: #000; }
.strip .done { color: #fff; }
.strip .done a { color: #fff; }

/* The latest: one essay (or series), big */
.lfeat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.75rem; align-items: center; }
.lfeat > .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.lfeat > .ph img { transition: transform .6s ease; }
.lfeat > .ph:hover img { transform: scale(1.03); }
.lf-txt h3 { font-family: var(--display); font-weight: 500; font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1.04; margin: .5rem 0 .75rem; text-wrap: balance; }
.lf-txt h3 a { color: var(--ink); text-decoration: none; }
.lf-txt h3 a:hover { color: var(--accent-ink); }
.lf-txt > p { margin: 0; font-size: 1.2rem; line-height: 1.55; color: var(--soft); }
.lf-parts { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.lf-parts a { display: flex; gap: .9rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 1.12rem; line-height: 1.3; }
.lf-parts .n { flex: 0 0 auto; font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1; color: var(--accent-ink); min-width: 1rem; }
.lf-parts a:hover { color: var(--accent-ink); }
.lf-go { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.6rem; }
.lf-all { font-family: var(--meta); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }

/* Search results page */
.search-page h1 { margin-bottom: 1.5rem; }
.search.big { margin: 0 auto; width: min(36rem, 100%); }
.search.big input { font-size: 1.2rem; padding: .9rem 1rem .9rem 2.8rem; }
.s-count { text-align: center; font-family: var(--meta); font-size: .78rem; color: var(--muted); margin: 1.75rem 0 1rem; }
.s-list { max-width: 48rem; margin: 0 auto; display: grid; }
.s-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.s-row .ph { aspect-ratio: 4 / 3; }
.s-row .t { display: block; font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.s-row .snip { -webkit-line-clamp: 3; font-size: 1.02rem; margin-top: .35rem; }
.s-row:hover .t { color: var(--accent-ink); }
.search-page .more { margin-top: 3rem; }

/* Subscribe: the Peru photo beside the form */
.sub-hero { max-width: 64rem; margin: 5.5rem auto 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.sub-photo { margin: 0; }
.sub-photo img { width: 100%; aspect-ratio: 924 / 640; object-fit: cover; }
.sub-photo figcaption { font-style: italic; font-size: 1rem; color: var(--muted); margin-top: .5rem; }
.subscribe .sub-txt .combo { margin: 2rem 0 0; }
.subscribe .sub-txt .done { justify-content: flex-start; margin-top: 2rem; }
.sub-more { margin-top: 4rem !important; }
.sub-more .promises { margin-top: 0; }
@media (max-width: 800px) {
  .sub-hero { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2rem; text-align: center; }
  .subscribe .sub-txt .combo { margin: 1.75rem auto 0; }
  .subscribe .sub-txt .done { justify-content: center; }
}

.map { width: 100%; height: auto; display: block; }
.pin { cursor: pointer; outline: none; }
.pin .dot { fill: var(--accent-ink); stroke: #fff; stroke-width: 2.5; }
.pin .halo { fill: var(--accent-ink); opacity: .18; }
.pin.on .dot, .pin:focus-visible .dot { fill: var(--ink); }
.pin text { font-family: var(--meta); font-weight: 600; font-size: 15px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.place { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; }
.place h3 { font-family: var(--display); font-weight: 500; font-size: 2rem; margin: .2rem 0 .75rem; line-height: 1.1; }
.place-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem 1.4rem; }
.mini { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .8rem; align-items: center; text-decoration: none; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.mini .ph { width: 4.25rem; height: 4.25rem; }
.mini:hover { color: var(--accent-ink); }

.house-band { background: var(--tint); text-align: center; }
.house-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; margin: .6rem 0 1.6rem; }
.levels2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; max-width: 56rem; margin: 0 auto; }
.level2 { background: var(--paper); padding: 1.4rem 1rem; display: grid; justify-items: center; gap: .3rem; text-decoration: none; color: var(--ink); }
.level2 b { font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.level2 span { font-family: var(--meta); font-size: .75rem; color: var(--muted); }
.level2:hover { color: var(--accent-ink); }

.ser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.ser { display: grid; gap: .6rem; position: relative; text-decoration: none; color: var(--ink); }
.ser .ph { aspect-ratio: 3 / 2; }
.ser .badge { position: absolute; left: .6rem; top: .6rem; background: var(--paper); font-family: var(--meta); font-weight: 600; font-size: .62rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .55rem; }
.ser .stack { display: flex; gap: 3px; }
.ser .stack i { height: 3px; flex: 1; background: var(--accent); }
.ser .t { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.1; }
.ser:hover { color: var(--accent-ink); }

.topics-page .lede, .topic-page .lede, .series-page .lede { max-width: 36rem; margin: .75rem auto 2.5rem; }
.topic-page .label a { color: var(--accent-ink); text-decoration: none; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem 1.25rem; margin-bottom: 2.5rem; }
.tcard { display: grid; gap: .35rem; align-content: start; text-decoration: none; color: var(--ink); }
.tcard .ph { aspect-ratio: 3 / 2; margin-bottom: .4rem; }
.tcard b { font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.tcard span { font-size: 1.02rem; line-height: 1.45; color: var(--soft); }
.tcard small { font-family: var(--meta); font-size: .72rem; color: var(--muted); }
.tcard:hover b { color: var(--accent-ink); }
.start-topics { margin-top: 1.75rem; margin-bottom: 0; }
.start-topics .ph { display: block; overflow: hidden; background: var(--tint); }
.start-topics img { width: 100%; height: 100%; object-fit: cover; }
.start-topics a { text-decoration: none; color: var(--ink); }
.start-topics .tname:hover b { color: var(--accent-ink); }
.start-topics .first { display: block; margin-top: .4rem; padding-top: .6rem; border-top: 1px solid var(--rule); font-size: 1.1rem; line-height: 1.3; }
.start-topics .first small { display: block; font-family: var(--meta); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.start-topics .first:hover { color: var(--accent-ink); }
.start-topics .all { font-family: var(--meta); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2.25rem 1.5rem; }
.tlist .ph { aspect-ratio: 3 / 2; }
.tlist .t { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.12; }
.topic-page .more { margin-top: 3.5rem; }
.srow { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.75rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.srow .ph { aspect-ratio: 3 / 2; }
.srow h2 { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1.1; margin: .3rem 0 .6rem; }
.srow h2 a { color: var(--ink); text-decoration: none; }
.srow ol { margin: 0; padding-left: 1.3rem; font-size: 1.1rem; line-height: 1.6; }
.srow ol a { color: var(--ink); }
.srow ol a:hover { color: var(--accent-ink); }

@media (max-width: 900px) {
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .circles { grid-template-columns: repeat(4, 6rem); gap: 1.25rem 1.6rem; }
  .ser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meet { grid-template-columns: 1fr; }
  .meet .six { padding: 6px 0 0; }
  .lfeat { grid-template-columns: 1fr; gap: 1.5rem; }
  .mega-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tagline { font-size: .66rem; letter-spacing: .2em; padding: 1rem var(--gutter); }
  .tagline em { display: block; font-size: 1.75rem; margin: .4rem 0 0; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem .75rem; padding-top: 1.6rem; }
  .door .ph { aspect-ratio: 4 / 5; }
  .door .tab { font-size: .66rem; padding: .6rem .8rem; }
  .door .tab small { display: none; }
  .circles { display: flex; justify-content: flex-start; overflow-x: auto; gap: .75rem; padding-top: 2.25rem; padding-bottom: .25rem; scrollbar-width: none; }
  .circles .circle { flex: 0 0 4.9rem; }
  .circle .ph { width: 70px; height: 70px; }
  .find { padding-bottom: 2.25rem; }
  .find .search { width: 100%; }
  .sec { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sec-head { flex-wrap: wrap; gap: .4rem .75rem; }
  .sec-head h2 { font-size: 1.9rem; white-space: normal; }
  .sec-head .dots { display: none; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .75rem; }
  .meet .txt { padding: 1.75rem var(--gutter); }
  .meet .six { gap: 3px; padding-top: 3px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meet .six .ph:nth-child(n+7) { display: none; } /* phone: portrait (2 by 2) + five squares fill a neat 3 by 3 */
  .strip h2 { font-size: 1.75rem; }
  .s-row { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; }
  .s-row .t { font-size: 1.4rem; }
  .pin text { font-size: 22px; }
  .levels2 { grid-template-columns: 1fr; }
  .ser .t { font-size: 1.3rem; }
  .srow { grid-template-columns: 1fr; gap: .9rem; }
}

/* footer: description + sitemap */
.site-footer { margin-top: 6rem; background: #f5f4f3; padding: 2.75rem var(--gutter) 3rem; }
.foot-in { max-width: 70rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.brand-small { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.foot-in p { margin: .5rem 0 0; font-size: 1.05rem; line-height: 1.55; color: var(--soft); max-width: 26rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; font-family: var(--meta); font-size: .82rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .foot-in { grid-template-columns: 1fr; }
  .site-footer nav { align-items: flex-start; }
}
.home2 + .site-footer { margin-top: 0; }

/* admin */
.adminbar { position: sticky; top: 0; z-index: 50; background: #1d1b19; color: #f3f0ea; font-family: var(--meta); font-size: .78rem; line-height: 1.4; padding: .6rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.adminbar a { color: #f3f0ea; }
.adminbar .pill { padding: .15rem .55rem; border-radius: 99px; background: #4a453f; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.adminbar .pill.live { background: #2f6b3b; }
.adminbar .spacer { flex: 1; }
.adminbar button, .adminbar .btn { font: inherit; color: #1d1b19; background: #f3f0ea; border: 0; padding: .4rem .8rem; border-radius: 3px; cursor: pointer; text-decoration: none; }
.adminbar button.primary { background: var(--accent); color: #fff; }
.adminbar button:disabled { opacity: .5; cursor: default; }
.adminbar .msg { color: #e8d9a0; }
.adminpanel { background: #f6f3ee; border-bottom: 1px solid var(--rule); font-family: var(--meta); font-size: .82rem; line-height: 1.6; padding: .9rem var(--gutter); }
.adminpanel ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.adminpanel details { margin-top: .5rem; color: var(--muted); }
.adminpanel .warn { color: #8a5a00; }
body.editing .post-body, body.editing .post-title { outline: 2px dashed var(--accent); outline-offset: 12px; }
body.editing .post-body:focus, body.editing .post-title:focus { outline-style: solid; }
/* editor toolbar (second row of the admin bar) and the photo menu */
.edit-tools { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding-top: .5rem; border-top: 1px solid #3a3632; }
.edit-tools[hidden], .img-tools[hidden] { display: none; }
.adminbar .edit-tools button, .img-tools button { font: inherit; background: #3a3632; color: #f3f0ea; border: 0; border-radius: 3px; padding: .35rem .65rem; min-width: 2.2rem; cursor: pointer; }
.adminbar .edit-tools button:hover, .img-tools button:hover { background: #4f4943; }
.adminbar .edit-tools button[aria-pressed="true"], .img-tools button[aria-pressed="true"] { background: #f3f0ea; color: #1d1b19; }
.edit-tools .sep { width: 1px; align-self: stretch; background: #4a453f; margin: 0 .2rem; }
.img-tools { position: absolute; z-index: 60; display: flex; flex-wrap: wrap; gap: .25rem; max-width: min(28rem, calc(100vw - 2rem)); background: #1d1b19; padding: .4rem; border-radius: 4px; font-family: var(--meta); font-size: .75rem; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
body.editing .post-body figure img { cursor: pointer; }
body.editing .post-body figure.picked { outline: 3px solid var(--accent); outline-offset: 4px; }
body.editing .post-body figure.uploading { opacity: .45; }
body.editing .post-body figcaption:empty::before { content: "Write a caption"; opacity: .5; }
.phone-frame { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,16,.75); display: flex; align-items: center; justify-content: center; }
.phone-frame iframe { width: 390px; height: min(844px, 92vh); border: 10px solid #111; border-radius: 36px; background: #fff; }
.phone-frame button { position: absolute; top: 1rem; right: 1rem; font-family: var(--meta); }
.admin { max-width: 52rem; margin: 0 auto; padding: 2rem var(--gutter) 4rem; font-family: var(--meta); font-size: .9rem; line-height: 1.6; }
/* approval table (/admin/review) */
.admin.review { max-width: 92rem; }
.rv-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.admin .rv-filter button { background: var(--paper); color: var(--ink); border: 1px solid var(--field); }
.admin .rv-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rv-head, .rv { display: grid; grid-template-columns: minmax(11rem, 1.3fr) 8.5rem minmax(13rem, 1.6fr) minmax(10rem, 1fr) minmax(14rem, 1.6fr) 6.5rem; gap: .75rem 1.25rem; align-items: start; }
.rv-head { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 .75rem .4rem; border-bottom: 1px solid var(--rule); }
.rv { padding: 1rem .75rem; border-bottom: 1px solid var(--rule); }
.rv.done { background: #f3f7f2; }
.rv fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rv-post a { font-family: var(--display); font-size: 1.2rem; line-height: 1.25; color: var(--ink); text-decoration: none; display: block; }
.rv-post a:hover { text-decoration: underline; }
.rv-post small { color: var(--muted); }
.rv-layer label { display: flex; align-items: center; gap: .4rem; padding: .15rem .35rem; border-radius: 3px; cursor: pointer; }
.rv-layer label:has(input:checked) { background: var(--tint); color: var(--accent-ink); font-weight: 500; }
.rv-layer input, .rv-topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-layer label:has(input:focus-visible), .rv-topics .chip:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.rv-topics { display: flex; flex-wrap: wrap; gap: .35rem; }
.rv-topics .chip { padding: .2rem .6rem; border: 1px solid var(--field); border-radius: 99px; cursor: pointer; font-size: .8rem; background: var(--paper); }
.rv-topics .chip.extra { border-style: dashed; border-color: var(--accent); color: var(--accent-ink); }
.rv-topics .chip:has(input:checked) { background: var(--accent-ink); border-color: var(--accent-ink); border-style: solid; color: #fff; }
.rv-series { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.admin .rv-series input { font: inherit; padding: .4rem .55rem; border: 1px solid var(--field); border-radius: 3px; min-width: 0; }
.rv-series input[name=series] { flex: 1 1 7rem; }
.rv-series input[name=part] { width: 3.6rem; }
.rv-q textarea { width: 100%; font-family: var(--body); font-size: 1rem; line-height: 1.4; padding: .4rem .55rem; border: 1px solid var(--field); border-radius: 3px; resize: vertical; }
.rv-go { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; }
.rv-ok { font-size: .75rem; color: #2f6b3b; text-align: center; }
.sugg-tag { display: inline-block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 2px; padding: 0 .3rem; line-height: 1.5; vertical-align: middle; }
.rv-bulk { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .rv-head { display: none; }
  .rv { grid-template-columns: 1fr 1fr; }
  .rv-post, .rv-topics, .rv-q { grid-column: 1 / -1; }
  .rv-go { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
.admin h1 { font-family: var(--display); font-weight: 500; font-size: 2.4rem; margin: 0 0 1rem; }
.admin h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 2rem 0 .5rem; }
.admin table { width: 100%; border-collapse: collapse; }
.admin td, .admin th { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin input[type=text], .admin input[type=password], .admin input[type=url] { font: inherit; padding: .55rem .7rem; border: 1px solid #bbb; border-radius: 3px; width: 100%; max-width: 28rem; }
.admin button { font: inherit; padding: .55rem 1rem; border: 0; background: var(--ink); color: #fff; border-radius: 3px; cursor: pointer; }
.admin .muted { color: var(--muted); }
.admin .bookmarklet { display: inline-block; padding: .4rem .8rem; border: 1px dashed var(--accent); border-radius: 3px; text-decoration: none; }
/* tabs across the top of every admin page */
.admin-tabs { display: flex; align-items: flex-end; gap: 2rem; border-bottom: 1px solid var(--rule); margin: -.5rem 0 2.25rem; overflow-x: auto; scrollbar-width: none; }
.admin-tabs a { padding: .4rem 0 .85rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent-ink); }
.admin-tabs .at-right { margin-left: auto; display: flex; gap: 1.5rem; }
.admin-tabs .at-right a { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; }
@media (max-width: 560px) { .admin-tabs { gap: 1.4rem; } .admin-tabs .at-right a:first-child { display: none; } }
/* site stats (/admin/analytics) */
.admin.stats { max-width: 70rem; }
.an-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.admin .an-top h1 { margin: 0; }
.an-range { display: flex; flex-wrap: wrap; gap: .4rem; }
.an-range a { padding: .3rem .8rem; border: 1px solid var(--field); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: .78rem; white-space: nowrap; }
.an-range a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.an-range a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.an-empty { background: var(--tint); padding: .9rem 1.1rem; margin: 1.25rem 0 0; }
.an-tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); margin: 1.5rem 0 .5rem; }
.admin .an-tile { font: inherit; text-align: left; background: var(--paper); color: var(--ink); border: 0; border-right: 1px solid var(--rule); border-radius: 0; padding: 1rem 1.15rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; cursor: pointer; }
.admin .an-tile:last-child { border-right: 0; cursor: default; }
.admin .an-tile[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--accent-ink); background: var(--tint); }
.admin .an-tile[aria-pressed="false"]:hover { background: #fbf8f6; }
.an-label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.an-value { font-size: 1.9rem; font-weight: 500; line-height: 1.25; }
.an-delta { font-size: .72rem; line-height: 1.35; color: var(--muted); }
.an-delta.up { color: #2f6b3b; }
.an-delta.down { color: #a1402f; }
.an-sub { color: var(--muted); font-size: .8rem; margin: 0 0 1.25rem; }
.an-plot { position: relative; height: 230px; margin-left: 2.6rem; }
.an-grid div { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule); }
.an-grid span { position: absolute; right: calc(100% + .55rem); top: -.6rem; font-size: .7rem; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.an-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; cursor: crosshair; }
.an-cols.dense { gap: 1px; }
.an-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.an-col span { display: block; width: 100%; max-width: 24px; background: var(--accent-ink); border-radius: 4px 4px 0 0; transition: height .25s; }
.an-cols.dense .an-col span { border-radius: 2px 2px 0 0; }
.an-col.on { background: var(--tint); }
.an-col.on span { background: var(--accent-dark); }
.an-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; background: var(--paper); border: 1px solid var(--field); box-shadow: 0 8px 20px -10px rgba(40, 20, 15, .35); padding: .45rem .75rem; font-size: .78rem; line-height: 1.5; white-space: nowrap; }
.an-tip[hidden] { display: none; }
.an-tip span { color: var(--muted); }
.an-tip .cur { color: var(--ink); font-weight: 600; }
.an-x { position: relative; height: 1.6rem; margin-left: 2.6rem; font-size: .7rem; color: var(--muted); }
.an-x span { position: absolute; top: .4rem; transform: translateX(-50%); white-space: nowrap; }
.an-x span.first { transform: translateX(-.4rem); }
.an-x span.last { transform: translateX(calc(-100% + .4rem)); }
.an-table { margin-top: .75rem; font-size: .8rem; }
.an-table summary { cursor: pointer; color: var(--accent-ink); }
.an-table table { max-width: 32rem; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.an-list { list-style: none; margin: 0; padding: 0; }
.an-list li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0 .6rem; border-bottom: 1px solid var(--rule); }
.an-list li > i { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--accent-ink); border-radius: 0 2px 2px 0; }
.an-name { min-width: 0; overflow-wrap: anywhere; }
.an-name a { color: var(--ink); text-decoration: none; }
.an-name a:hover { color: var(--accent-ink); text-decoration: underline; }
.an-num { font-variant-numeric: tabular-nums; text-align: right; }
.an-pages li { display: grid; grid-template-columns: 1fr 4.5rem 4.5rem 5.5rem; }
.an-pages .an-head { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.an-pages .an-head span:not(:first-child) { text-align: right; }
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.an-h3 { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 1.75rem 0 .25rem; }
.an-fine { font-size: .75rem; line-height: 1.55; color: var(--muted); margin: .75rem 0 0; }
.an-about { margin-top: 3rem; max-width: 44rem; }
.an-log { list-style: none; margin: 0; padding: 0; }
.an-log .an-day { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 1.25rem 0 .35rem; border-bottom: 1px solid var(--rule); }
.an-log .an-day:first-child { padding-top: 0; }
.an-visit { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.an-visit time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-visit p { margin: 0; }
.an-trail { color: var(--text-2); }
.an-trail a { color: var(--accent-ink); text-decoration: none; }
.an-trail a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .an-tiles { grid-template-columns: 1fr 1fr; }
  .admin .an-tile:nth-child(2) { border-right: 0; }
  .admin .an-tile:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .an-value { font-size: 1.6rem; }
  .an-two { grid-template-columns: 1fr; }
  .an-pages li { grid-template-columns: 1fr 3.2rem 3.4rem 4.4rem; gap: .5rem; }
  .an-visit { grid-template-columns: 4.2rem 1fr; gap: .6rem; }
}
