@font-face {
  font-family: "GT Eesti";
  src: url("../fonts/GT Eesti Pro Display Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "GT Eesti";
  src: url("../fonts/GT Eesti Display Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #f2f2ee;
  --ink: #1a1a1a;
  --black: #000000;
  --bone: #f8f8f5;
  --thumb: #e1e1e1;
  --line: rgba(0, 0, 0, 0.15);
  --muted: rgba(0, 0, 0, 0.5);
  --tag-bg: rgba(0, 0, 0, 0.06);
  --tag-bg-active: rgba(0, 0, 0, 0.14);

  --font: "GT Eesti", "Helvetica Neue", Arial, sans-serif;

  --col-side: 320px;
  --gap: 40px;
  --pad: 40px;
}

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

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.3s; }
  .app--enter { animation: pageFadeIn 0.55s ease both; }
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 1.25px;
  line-height: 21px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-decoration-skip-ink: none;
}

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
img, svg { display: block; }
p { margin: 0; }

.menu { font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 1.25px; }
.menu-secondary { font-weight: 300; font-size: 12px; line-height: 18px; letter-spacing: 1.25px; }

.app {
  display: grid;
  grid-template-columns: var(--col-side) minmax(0, 1fr) var(--col-side);
  column-gap: var(--gap);
  padding: 0 var(--pad);
  align-items: start;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Three equal rows on both pages: brand at the top, the intro / date + subject
   centered in the viewport, the mailing block at the bottom. */
.rail--left { padding: var(--pad) 0; display: grid; grid-template-rows: repeat(3, 1fr); }
.rail--left > :nth-child(1) { align-self: start; }
.rail--left > :nth-child(2) { align-self: center; }
.rail--left > :nth-child(3) { align-self: end; }
.rail--right {
  /* 6px less than the left rail: the "View:" label's cap height sits 6px
     below its 21px line box, and this puts the V's top on the wordmark's. */
  padding-top: calc(var(--pad) - 6px);
  padding-bottom: var(--pad);
  gap: var(--gap);
  overflow-y: auto;
  scrollbar-width: none;
}
.rail--right::-webkit-scrollbar { display: none; }

.brand { display: flex; align-items: flex-start; justify-content: space-between; }
.brand__sdot { display: none; } /* mobile home only — see the ≤720px block */
/* Both dimensions are pinned to the asset's intrinsic 103×12 — never `auto` —
   and flex-shrink is off, so no parent can squeeze the wordmark out of shape. */
.brand__logo { display: block; width: 103px; flex-shrink: 0; }
.brand__logo img { width: 103px; height: 12px; object-fit: contain; }
.brand__tagline {
  margin-top: 8px;
  font-weight: 300;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 2px;
  color: var(--black);
  white-space: nowrap;
}

.welcome { font-weight: 300; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; }

/* 28px from the dot's *visible ink* down to the mailing copy. The artwork
   carries ~3.5px of transparent margin inside its 55px box (steady across the
   scroll-scrubbed frames), so the box itself stops 24.5px short. */
.rail__foot { display: flex; flex-direction: column; gap: 24.5px; }
.sdot { width: 50px; height: 55px; flex: 0 0 auto; }

.mailing { display: flex; flex-direction: column; gap: 20px; }
.mailing__copy { font-weight: 300; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; }
.signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  background: #fff;
  border-radius: 45px;
  padding: 0 20px 0 25px;
}
.signup-wrap { width: 100%; }
.signup__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-family: inherit;
  font-weight: 300;
  /* Inputs stay off the 12px type scale: iOS Safari zooms the page when a
     focused field is under 16px, so these hold 14px and go to 16px on mobile. */
  font-size: 14px;
  letter-spacing: 1.25px;
  color: var(--black);
}
.signup__input::placeholder { color: var(--black); opacity: 1; }
.signup__input:disabled { opacity: 1; -webkit-text-fill-color: var(--black); }
.signup__arrow { width: 9px; flex: 0 0 auto; }
.signup__arrow svg { width: 9px; height: 9px; }
.is-busy .signup__arrow { opacity: 0.35; }
.signup__sent {
  display: none;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
  flex: 0 0 auto;
}
.signup__check { display: none; width: 11px; height: 10px; flex: 0 0 auto; }
.is-sent .signup__sent { display: inline; }
.is-sent .signup__check { display: block; animation: signup-check-in 0.4s ease-in-out; }
.is-sent .signup__arrow { display: none; }
@keyframes signup-check-in { from { opacity: 0; } to { opacity: 1; } }
.signup__note {
  display: none;
  margin-top: 8px;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.is-error .signup__note { display: block; }

/* Mobile sign-up popup — mounted by armSignupPopup() on the mobile home page
   once the visitor scrolls; 10px off the screen edges per the design. */
.signup-popup {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  /* Hairline edge + a faint lift so the card separates from the same-colored page */
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(calc(100% + 20px + env(safe-area-inset-bottom, 0px)));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.signup-popup.is-open { transform: translateY(0); }
.signup-popup__row { display: flex; align-items: flex-start; gap: 20px; }
.signup-popup__row .mailing__copy { flex: 1 1 0; min-width: 0; }
/* 8px glyph, 24px hit area; the negative margins keep the glyph on the
   card's 20px padding line and level with the copy's first line. */
.signup-popup__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -1px -8px 0 0;
  color: var(--black);
}
.signup-popup__close svg { width: 8px; height: 8px; }
@media (prefers-reduced-motion: reduce) {
  .signup-popup { transition: none; }
}

/* Capped at 640px so 3-across cards are ~212px — our 450px-wide thumbnails
   are ≥2× that, keeping the grid retina-sharp. */
.center { padding-top: 2px; min-width: 0; width: 100%; max-width: 640px; margin: 0 auto; }
/* Grid starts 2px from the top (its own gap); list rows start at 40px, level
   with the wordmark and "View:". With the search status showing in list view
   the status line takes that 40px slot instead. */
@media (min-width: 721px) {
  .center:has(.list) { padding-top: 40px; }
  .center:has(.list) .toolbar:has(.toolbar__status.is-visible) { padding-top: 0; }
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}
/* Desktop: the toolbar holds only the search status + filter chips, so it
   collapses to nothing when neither is active and the grid starts at the top
   (the view toggle lives in the rail; mobile overrides all of this below). */
/* With the search status showing, the row gets 20px above and 12px below
   (padding, not margin, so the whole shift is inside the toolbar's height —
   which withToolbarShift() animates when the row appears or goes). Filter
   chips don't live here on desktop — they sit under "Filter:" in the rail. */
@media (min-width: 721px) {
  .toolbar .toolbar__chips { display: none; }
  .toolbar:has(.toolbar__status.is-visible) { padding-top: 20px; padding-bottom: 12px; }
  .toolbar.is-shifting { overflow: hidden; transition: height 0.3s ease; }
}
.toolbar__chips {
  --mask-l: #000;
  --mask-r: #000;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, var(--mask-l), #000 28px, #000 calc(100% - 28px), var(--mask-r));
  mask-image: linear-gradient(to right, var(--mask-l), #000 28px, #000 calc(100% - 28px), var(--mask-r));
}
.toolbar__chips::-webkit-scrollbar { display: none; }
.toolbar__chips .tag { flex: 0 0 auto; }
.toolbar__chips.fade-l { --mask-l: transparent; }
.toolbar__chips.fade-r { --mask-r: transparent; }
.toolbar__chips:empty { display: none; }
/* Rail + mobile overlay: wrapping rows instead of the toolbar's scrolling strip */
.toolbar__chips--wrap {
  flex: 0 1 auto;
  flex-wrap: wrap;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.toolbar__left-mobile { display: none; }

.toolbar__status {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.toolbar__status.is-visible { display: block; }

/* Active-search chip: mobile stand-in for .toolbar__status (desktop hides it —
   the toolbar status line and rail search already cover that state). */
.tag.tag--search { display: none; }

.viewtoggle { position: relative; display: flex; align-items: flex-end; }
.toolbar .viewtoggle { display: none; } /* desktop: the toggle lives in the right rail's View section */
.viewtoggle__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.viewtoggle__btn svg { color: var(--black); width: 15.3px; }
.viewtoggle__btn--list svg { width: 15px; height: 15px; } /* pixel-exact — see listIcon() */
.viewtoggle__btn svg > * { opacity: 0.25; transition: opacity 0.18s ease; }
.viewtoggle__btn:not(.is-active):hover svg > * { opacity: 0.5; }
.viewtoggle__btn.is-active svg > * { opacity: 1; }
.viewtoggle__btn.is-active svg > *:nth-child(1) { transition-delay: 0s; }
.viewtoggle__btn.is-active svg > *:nth-child(2) { transition-delay: 0.045s; }
.viewtoggle__btn.is-active svg > *:nth-child(3) { transition-delay: 0.09s; }
.viewtoggle__btn.is-active svg > *:nth-child(4) { transition-delay: 0.135s; }
.viewtoggle__btn.is-active svg > *:nth-child(5) { transition-delay: 0.18s; }
.viewtoggle__btn.is-active svg > *:nth-child(6) { transition-delay: 0.225s; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.card { display: block; width: 100%; }
.card__thumb {
  width: 100%;
  aspect-ratio: 212 / 336.46;
  background: var(--thumb);
  overflow: hidden;
  transition: filter 0.15s ease;
}
.card:hover .card__thumb { filter: brightness(0.97); }
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.list { display: flex; flex-direction: column; gap: 1px; }
.toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  min-width: 0;
}
.toc-item__thumb { flex: 0 0 auto; width: 20px; height: 30px; background: var(--thumb); overflow: hidden; }
.toc-item__text {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 300;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease;
}
.toc-item:hover .toc-item__text { opacity: 0.65; }
.toc-item__preview { color: var(--muted); }

.scroll-status { padding: 24px 0 8px; }
.empty { padding: 40px 0; color: var(--muted); }

.rail__controls { display: flex; flex-direction: column; gap: 40px; }

/* "View" section: label + grid/list toggle at the top of the right rail
   (desktop). Active state reads through icon opacity alone — no underline. */
.view { display: flex; flex-direction: column; gap: 20px; }
.view .viewtoggle { margin-left: -11px; } /* align the grid glyph (centered in its 40px hit area) with the label */
/* Collapse the buttons' 40px touch box to the glyph height so the gap under
   the "View:" label reads the same as under "Search:" and "Filter:". */
.rail--right .view .viewtoggle__btn { height: 18px; }

.search { display: flex; flex-direction: column; gap: 20px; }
.view__title,
.search__title { font-weight: 300; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; color: var(--black); }

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 45px;
  background: #fff;
  border-radius: 45px;
  padding: 0 22px 0 25px;
}
.searchbar__input {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: inherit;
  font-weight: 300;
  font-size: 14px; /* see .signup__input — inputs stay ≥14px to avoid iOS zoom */
  letter-spacing: 1.25px;
  line-height: 12px;
  color: var(--black);
}
.searchbar__input::placeholder { color: rgba(0, 0, 0, 0.4); opacity: 1; }
.searchbar__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--black);
}
.searchbar__icon svg { width: 16px; height: 16px; }
.searchbar__icon > svg:nth-child(2) { width: 12px; height: 12px; display: none; }
.searchbar.is-filled .searchbar__icon > svg:nth-child(1) { display: none; }
.searchbar.is-filled .searchbar__icon > svg:nth-child(2) { display: block; }
.searchbar--overlay .searchbar__icon > svg:nth-child(1) { display: none; }
.searchbar--overlay .searchbar__icon > svg:nth-child(2) { display: block; }

.filters { display: flex; flex-direction: column; gap: 20px; }
/* Desktop rail: labels sit 15px above their controls (mobile overlay keeps 20px) */
.rail--right .view,
.rail--right .search,
.rail--right .filters { gap: 15px; }
/* Active-filter chips sit a full section gap above the accordion, same as the
   spacing between the rail's View/Search/Filter sections (15px flex gap + rest). */
.rail--right .filters .toolbar__chips--wrap { margin-bottom: calc(var(--gap) - 15px); }
/* Set by slideAccordion when a chip row first appears (rail + mobile overlay):
   the chips fade in slightly behind the accordion's slide so the two never
   overlap mid-motion. */
.toolbar__chips--wrap.is-entering { animation: chips-in 0.25s ease 0.12s both; }
@keyframes chips-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.filters__title-wrap { display: inline-flex; align-items: baseline; gap: 8px; }
.filters__title { font-weight: 300; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; color: var(--black); }
.filters__clear { font-size: 11px; line-height: 1; color: var(--black); opacity: 0.55; }
.filters__clear:hover { opacity: 1; }
.filters__count { font-weight: 300; font-size: 12px; line-height: 22px; letter-spacing: 1.25px; color: var(--black); white-space: nowrap; }

.accordion { display: flex; flex-direction: column; gap: 20px; }
/* Rail (desktop): right-align the +/− icons on the vertical line through the
   search pill's icon (22px pill padding + half the 16px glyph = 30px). */
.rail--right .accordion__header { padding-right: 25px; } /* 10px icon → center at 30px */
.rail--right .opt-parent__row { padding-right: 26px; } /* 8px icon → center at 30px */
.accordion__item { display: flex; flex-direction: column; }
.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.25px;
  color: var(--black);
}
.accordion__icon { width: 10px; height: 10px; position: relative; flex: 0 0 auto; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--black);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion__icon::before { width: 10px; height: 1px; }
.accordion__icon::after { width: 1px; height: 10px; transition: opacity 0.15s ease; }
.accordion__item.is-open .accordion__icon::after { opacity: 0; }

.accordion__panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { min-height: 0; }

.opt-list { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.opt {
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.opt:hover { opacity: 0.65; }
.opt.is-selected .opt__label { text-decoration: underline; text-underline-offset: 3px; }
.opt__x { font-size: 11px; opacity: 0.6; }

/* Product families: the label selects the whole family, the +/− expands it */
.opt-parent { display: flex; flex-direction: column; }
.opt-parent__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Padding grows the hit area; the negative margin keeps the 8px glyph where it was */
.opt-parent__toggle { display: flex; padding: 7px; margin: -7px; }
.opt-parent__toggle:hover { opacity: 0.65; }
.opt-parent__icon { width: 8px; height: 8px; position: relative; flex: 0 0 auto; }
.opt-parent__icon::before,
.opt-parent__icon::after {
  content: "";
  position: absolute;
  background: var(--black);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.opt-parent__icon::before { width: 8px; height: 1px; }
.opt-parent__icon::after { width: 1px; height: 8px; transition: opacity 0.15s ease; }
.opt-parent.is-open .opt-parent__icon::after { opacity: 0; }
.opt-parent__panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.opt-parent.is-open .opt-parent__panel { grid-template-rows: 1fr; }
.opt-parent__panel-inner { min-height: 0; }
.opt-list--sub { padding-top: 8px; padding-left: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  border-radius: 2px;
  padding: 6px 6px 5px;
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.25px;
  color: var(--black);
  white-space: nowrap;
}
button.tag:hover { background: var(--tag-bg-active); }
.tag--link { transition: background 0.15s ease; }
.tag.is-selected { background: var(--tag-bg-active); }
.tag__x { font-size: 10px; opacity: 0.6; }

/* The detail page keeps the home page's three columns (the right one is just
   empty), so the email is centered on the same axis as the grid. */
.detail-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
  padding-bottom: 40px;
  min-width: 0;
}
.detail__stage { position: relative; width: 100%; max-width: 600px; }
/* Hangs 20px off the email's left edge. 34.4px down puts the cap height of
   "Back" level with the top of the wordmark (40px): 2px stage offset + the
   3.6px between this 16px line box's top and its cap line. */
.detail__back {
  position: absolute;
  top: 34.4px;
  right: calc(100% + 20px);
  white-space: nowrap;
  font-weight: 300;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.25px;
}
.email-shell {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 900px; /* hold space with the skeleton until the email loads + sizes */
  overflow: hidden; /* trims the 1px slivers either side of the frame — see .detail__email */
}
.email-shell.is-loaded { min-height: 0; }
/* Emails lay out a 600px container and switch to their phone layout at
   `max-width: 600px` — which a 600px-wide frame *matches*, so the archive
   would show the mobile gutters on desktop. Give the frame 2px more viewport
   than the container so the desktop branch wins, then pull it 1px left so that
   600px container still lines up exactly with the column; the shell clips the
   1px of email background left over on each side. */
.detail__email {
  width: calc(100% + 2px);
  margin-left: -1px;
  border: 0;
  background: #fff;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.email-shell.is-loaded .detail__email { opacity: 1; }

.email-skeleton {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding-bottom: 24px;
  transition: opacity 0.3s ease;
}
.email-shell.is-loaded .email-skeleton { opacity: 0; pointer-events: none; }
.email-skeleton__hero { flex: 0 0 60%; }
.email-skeleton__lines { display: flex; flex-direction: column; gap: 14px; padding: 4px 28px 0; }
.email-skeleton__line { height: 13px; border-radius: 3px; }
.email-skeleton__line--short { width: 55%; }
.email-skeleton__hero,
.email-skeleton__line {
  background: linear-gradient(100deg, #ececea 30%, #f7f7f5 50%, #ececea 70%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .email-skeleton__hero, .email-skeleton__line { animation: none; }
}
.detail-note {
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
}
.detail-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.detail-modules {
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.detail-meta { display: flex; flex-direction: column; gap: 20px; }
.detail-meta__eyebrow {
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Wide desktop: the tags sit centered in the (otherwise empty) right rail;
   the copy under the date + subject is for the two-column layout and the one
   under the email is for mobile. */
.detail-meta .detail-tags,
.detail-modules .detail-tags { display: none; }
/* Same three-row scheme as the left rail: "← Back" in the top-right corner
   (the 3.6px trim puts its cap height level with the wordmark's top, like the
   stage-hanging back link did), tags centered in the viewport. */
.rail--right-detail {
  padding-top: calc(var(--pad) - 3.6px);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
}
.detail__back--rail { position: static; align-self: start; justify-self: end; }
.rail--right-detail .detail-tags { align-self: center; justify-content: flex-end; }
/* With the right rail on screen the back link lives there, not on the stage */
@media (min-width: 1101px) {
  .detail__stage > .detail__back { display: none; }
}

/* Mobile-only header row: "← Back" + the title, which marquees if it overflows */
.detail__topbar { display: none; }
.marquee {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
}
.marquee__track { display: inline-block; white-space: nowrap; }
.marquee__item { display: inline-block; }
/* The title holds still (and unfaded on the left) for a beat so its start can
   be read; detailTopbar() then adds .is-scrolling, which starts the loop and
   brings in the left fade. The right fade is on from the start — that's the
   overflow cue. */
.marquee.is-overflowing {
  --marquee-fade-l: #000;
  -webkit-mask-image: linear-gradient(to right, var(--marquee-fade-l), #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(to right, var(--marquee-fade-l), #000 16px, #000 calc(100% - 16px), transparent);
}
.marquee.is-overflowing .marquee__item { padding-right: 40px; } /* gap between the loop's two copies */
.marquee.is-scrolling { --marquee-fade-l: transparent; }
/* One copy's width + the 40px gap per cycle, at ~30px/s */
.marquee.is-scrolling .marquee__track {
  animation: marquee calc((var(--marquee-distance) + 40px) / 30px * 1s) linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee.is-scrolling .marquee__track { animation: none; }
  .marquee.is-scrolling { --marquee-fade-l: #000; }
}

.shop { display: flex; flex-direction: column; gap: 28px; }
.shop__head { display: flex; align-items: center; justify-content: space-between; }
.shop__title { font-weight: 400; font-size: 12px; line-height: 12px; letter-spacing: 1.25px; color: var(--black); }
.shop__meta { font-weight: 300; font-size: 12px; line-height: 22px; letter-spacing: 1.25px; color: var(--black); }

.products { display: flex; flex-direction: column; gap: 18px; }
.product {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 12px;
  height: 80px;
  padding: 5px;
}
.product__img { flex: 0 0 auto; width: 70px; height: 70px; background: var(--thumb); }
img.product__img { object-fit: contain; background: #fff; }
.product__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.product__name { font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 1.25px; color: var(--black); }
.product__desc { font-weight: 300; font-size: 12px; line-height: 18px; letter-spacing: 1.25px; color: var(--black); }

.related { display: flex; flex-direction: column; gap: 20px; }
.related__title { font-weight: 400; font-size: 12px; line-height: 12px; letter-spacing: 1.25px; color: var(--black); }
.related__list { display: flex; flex-direction: column; gap: 1px; }

/* Mobile only — on desktop the left rail already carries the mailing block,
   so this second sign-up would just repeat it. */
.detail-footer { display: none; flex-direction: column; gap: 20px; }
.detail-footer__logo { width: 19.69px; height: 32px; margin-bottom: 20px; } /* same size as the mobile home header's S mark */
.detail-footer__head { font-weight: 400; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; color: var(--black); }
.detail-footer__copy { font-weight: 300; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; color: var(--ink); }

/* Search + filter overlays: pin the page so the library can't scroll behind
   the blur. `position: fixed` on body rather than `overflow: hidden`, which
   iOS Safari happily ignores; the offset is restored on close. */
html.scroll-locked, html.scroll-locked body { overflow: hidden; }
html.scroll-locked body { position: fixed; width: 100%; }
.overlay__close {
  align-self: flex-end;
  display: flex;
  width: 40px;
  height: 40px;
  margin: -12px -12px 0 0;
}
.overlay__close img { width: 40px; height: 40px; }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.search-overlay__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  /* Heavy frost shared by search and filters: the grid behind melts into
     color fields so the controls read; the diagonal white wash keeps the
     Figma "Glass" sheen (light 80°/80%), saturate stands in for dispersion. */
  background: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.5) 30%,
    rgba(255, 255, 255, 0.46) 56%,
    rgba(255, 255, 255, 0.62) 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .search-overlay__panel { background: rgba(242, 242, 238, 0.92); }
}
.search-overlay.is-open .search-overlay__panel { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .search-overlay__panel { transition: none; }
}
/* Filters share the search panel's glass but are sized to their content,
   scrolling inside once they'd pass ~85% of the screen. */
.filter-overlay__panel {
  padding: 22px 22px 30px;
  gap: 20px;
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Chips → accordion gap tracks --gap, same rule as the desktop rail (20px
   panel gap + the rest). */
.filter-overlay__panel .toolbar__chips--wrap { margin-bottom: calc(var(--gap) - 20px); }
/* Set by refreshOverlay while FLIPping the panel between its two content
   heights; keeps the open/close transform transition alive alongside. */
.filter-overlay__panel.is-resizing { transition: height 0.3s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.search-overlay__spacer { flex: 1 1 0; }
.search-overlay__results-wrap { flex: 1 1 0; display: flex; align-items: center; justify-content: center; }
.search-overlay__results {
  text-align: center;
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1.25px;
  color: var(--black);
}

/* Under 1100px the three-column detail page would squeeze the email to a
   sliver, so it drops the right rail and centers the email in the remaining
   two-column span (the tags move back under the date + subject). */
@media (max-width: 1100px) and (min-width: 721px) {
  .app--detail { grid-template-columns: var(--col-side) minmax(0, 1fr); }
  .rail--right-detail { display: none; }
  .detail-meta .detail-tags { display: flex; }
}

@media (max-width: 920px) {
  :root { --col-side: 260px; --gap: 28px; }
}

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }
  .rail { position: static; height: auto; }
  /* Home header per the mobile design: wordmark + tagline with the static S
     mark top-right, then the centered intro; the mailing block leaves the
     top (the scroll-triggered popup carries it instead). */
  .rail--left { display: flex; padding: 30px 0 0; gap: 16px; }
  .rail--left > :nth-child(n) { align-self: stretch; } /* outranks the desktop rows' start/center/end */
  .rail--right { display: none; }
  .rail__foot { display: none; }
  .sdot { display: none; }
  .brand__sdot { display: block; width: 19.69px; height: 32px; }
  /* text-wrap: balance = Figma's "Balance" wrap style — evens the line
     lengths out instead of filling each line (no-op in older browsers). */
  .welcome { font-size: 12px; line-height: 21px; text-align: center; text-wrap: balance; }

  .center { padding-top: 0; max-width: none; }
  .toolbar {
    padding-top: 8px;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 16px;
    margin-bottom: 10px;
  }
  /* The magnifier's artwork carries ~3px of transparent padding inside its own
     viewBox, where the grid/list rects run edge to edge in theirs. With the
     button backgrounds gone that reads as a wider left margin, so pull the
     group back to sit the same distance from the edge as the list glyph. */
  .toolbar__left-mobile { order: 1; display: inline-flex; align-items: center; gap: 2px; height: 40px; margin-left: -3px; }
  .toolbar .viewtoggle { display: flex; order: 2; }
  .toolbar .toolbar__status, .toolbar__status.is-visible { display: none; }
  .toolbar .toolbar__chips {
    display: flex;
    order: 3;
    flex: 0 0 calc(100% + 24px);
    margin: 0 -12px;
  }
  .toolbar .toolbar__chips:empty { display: none; }

  .searchbar__input { font-size: 16px; }
  .signup__input { font-size: 16px; }
  .tag.tag--search { display: inline-flex; }
  .detail-footer { display: flex; }

  /* Bare glyphs in a 40px touch box — same treatment as the grid/list icons */
  .iconbtn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .iconbtn svg { width: 15.3px; color: var(--black); }
  .filterbtn { position: relative; }
  .filterbtn svg { width: 15px; }
  .filterbtn__count {
    position: absolute;
    top: 4px;
    right: 6px;
    font-weight: 400;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0;
  }

  /* Grid bleeds to the screen edges; list rows keep the 22px text gutter */
  .grid { grid-template-columns: repeat(3, 1fr); margin: 0 -22px; }
  .list { margin: 0; }

  .app--detail { display: flex; flex-direction: column; gap: 20px; padding: 30px 22px 60px; }
  .app--detail > .rail,
  .app--detail > .detail-main { display: contents; }
  .app--detail > .rail--right-detail { display: none; }
  .app--detail .brand,
  .app--detail .mailing,
  .app--detail .detail-meta { display: none; }

  /* Header row replaces the stacked back link + date/subject block; the
     tags follow the email instead. */
  .app--detail .detail__topbar { display: flex; align-items: center; gap: 20px; order: 1; width: 100%; min-width: 0; }
  .app--detail .detail__topbar .detail__back { flex: 0 0 auto; position: static; }
  .app--detail .detail__stage { display: contents; }
  .app--detail .detail__stage > .detail__back { display: none; }
  .app--detail .detail-modules .detail-tags { display: flex; justify-content: center; }
  .app--detail .email-shell {
    order: 3;
    width: 100%;
    max-width: none;
  }
  /* The phone frame is well under every breakpoint, so the mobile layout is
     already the right one — no nudge needed. */
  .app--detail .detail__email { width: 100%; margin-left: 0; }
  /* 20px here + the layout's 20px gap = the same 40px rhythm as desktop */
  .app--detail .detail-modules { order: 4; max-width: none; margin-top: 20px; }
  .app--detail .detail-meta,
  .app--detail .detail-modules,
  .app--detail .shop,
  .app--detail .related { width: 100%; min-width: 0; }
}
