/* ==========================================================================
   Home page
   ========================================================================== */

/* --- Header --------------------------------------------------------------
   Wordmark at the start, the nav as one pill in the middle, the signup pill
   at the end. Phones: the nav pill drops to its own centred row. */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "nav   nav";
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding-block: max(var(--space-4), env(safe-area-inset-top)) var(--space-2);
}

.wordmark {
  grid-area: brand;
  justify-self: start;
  font-size: var(--text-wordmark);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wordmark);
  line-height: var(--leading-tight);
  text-decoration: none;
}

.site-header__cta {
  grid-area: cta;
  justify-self: end;
}

.site-nav {
  grid-area: nav;
  justify-self: center;
}

.site-nav ul {
  display: flex;
  padding: var(--space-1);
  border: var(--border-thin) solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  font-size: var(--text-sm);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap);
  padding-inline: 1.1em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color var(--dur-color) ease;
}

.site-nav a[aria-current="page"] {
  background: var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    background: var(--paper);
  }

  .wordmark:hover {
    text-decoration: underline;
  }
}

@media (min-width: 56em) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav cta";
    padding-block-start: max(var(--space-5), env(safe-area-inset-top));
  }
}

/* --- Instagram: a round icon button in the header ------------------------- */

.icon-link {
  display: grid;
  place-items: center;
  inline-size: var(--tap);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-tomato);
  transition:
    background-color var(--dur-color) ease,
    transform var(--dur-press) var(--ease-out);
}

.icon-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-link__dot {
  fill: currentColor;
  stroke: none;
}

.icon-link:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .icon-link:hover {
    background: var(--tomato);
  }
}

/* --- Pills and the ringed text link --------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-block-size: 50px;
  padding-inline: 1.6em;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-color) ease;
}

.pill--ink {
  background: var(--ink);
  color: var(--on-tomato);
}

.pill--small {
  min-block-size: var(--tap);
  padding-inline: 1.25em;
  font-size: var(--text-sm);
}

.pill:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .pill--ink:hover {
    background: var(--tomato);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-block-size: var(--tap);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

/* A ring with a tomato centre, where the reference has its play button. */
.text-link__ring {
  display: grid;
  place-items: center;
  inline-size: 2.25em;
  aspect-ratio: 1;
  border: var(--border-thin) solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper-raised);
}

.text-link__ring::after {
  content: "";
  inline-size: 0.5em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tomato);
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    text-decoration: underline;
  }
}

/* --- Hero ----------------------------------------------------------------
   Laid out after the Mindly reference: a centred serif headline, a big black
   and white portrait rising from the bottom edge inside one thin ring,
   glass tiles around the head, two white cards, the issue badge.
   Everything in the scene scales off --w (the portrait's width). */

.home {
  --paper: #f2f1ed;
  --paper-raised: #ffffff;
  --shadow: rgb(20 20 20 / 0.14);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero__intro {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  padding-block: var(--space-6) 0;
  text-align: center;
}

.hero__title {
  display: grid;
  justify-items: center;
  font-family: var(--font-naskh);
  font-size: var(--text-hero);
  font-weight: var(--weight-regular);
  line-height: 1.25;
}

.hero__line {
  display: block;
}

.hero__lede {
  max-inline-size: 30rem;
  margin-block-start: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-block-start: var(--space-5);
}

/* --- Scene ---------------------------------------------------------------- */

.hero__scene {
  --w: min(80vw, 22rem);
  --h: calc(var(--w) * 1.3);       /* the photo's height (400 × 520) */

  position: relative;
  display: grid;
  justify-items: center;
  max-inline-size: var(--measure);
  margin-inline: auto;
  padding-block-start: var(--space-6);
}

/* One thin ring round the head, larger than the scene. */
.hero__ring {
  position: absolute;
  inset-block-start: calc(var(--space-6) + var(--h) * 0.3 - var(--w) * 0.85);
  inset-inline-start: calc(50% - var(--w) * 0.85);
  inline-size: calc(var(--w) * 1.7);
  aspect-ratio: 1;
  border: var(--border-thin) solid var(--rule);
  border-radius: 50%;
}

.hero__photo {
  position: relative;
  z-index: 1;
  inline-size: var(--w);
  block-size: auto;
  filter: grayscale(1) contrast(1.05);
  /* Soft landing into the next section. */
  -webkit-mask-image: linear-gradient(to top, transparent, #000 16%);
  mask-image: linear-gradient(to top, transparent, #000 16%);
}

/* --- Glass tiles round the head --------------------------------------------- */

.hero__tiles {
  display: contents;
}

.tile {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  inline-size: 9.5rem;
  padding: var(--space-2);
  border: var(--border-thin) solid rgb(255 255 255 / 0.8);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 16px 36px -18px var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Start-side tiles grow outward from the head, end-side tiles likewise. */
.tile--1,
.tile--2 {
  inset-inline-end: 50%;
  transform: perspective(600px) rotateY(-24deg);
}

.tile--3,
.tile--4 {
  inset-inline-start: 50%;
  transform: perspective(600px) rotateY(24deg);
}

.tile--1 {
  inset-block-start: calc(var(--space-6) + var(--h) * 0.2);
  margin-inline-end: calc(var(--w) * 0.12);
}

.tile--3 {
  inset-block-start: calc(var(--space-6) + var(--h) * 0.34);
  margin-inline-start: calc(var(--w) * 0.12);
}

.tile--2,
.tile--4 {
  display: none;
}

.tile__glyph {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 2rem;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  background: var(--paper);
}

.tile__glyph::after {
  content: "";
  inline-size: 0.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

[data-type="book"] > .tile__glyph::after { background: var(--tomato); }
[data-type="film"] > .tile__glyph::after { border: 2.5px solid var(--ink); }
[data-type="album"] > .tile__glyph::after { background: var(--mustard); }
[data-type="series"] > .tile__glyph::after { background: var(--muted); }

.tile__text {
  display: grid;
  min-inline-size: 0;
  line-height: var(--leading-snug);
}

.tile__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.tile__title {
  overflow: hidden;
  font-size: var(--text-2xs);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- White cards ------------------------------------------------------------ */

.hero-card {
  position: absolute;
  z-index: 2;
  display: none;
  inline-size: 12.5rem;
  padding: var(--space-4);
  border-radius: 1.25rem;
  background: var(--paper-raised);
  box-shadow: 0 24px 48px -24px var(--shadow);
  line-height: var(--leading-snug);
}

.hero-card__title {
  margin-block-start: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.hero-card__sub {
  margin-block-start: var(--space-1);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* A four-point sparkle, as on the reference's first card. */
.hero-card__icon {
  display: block;
  inline-size: 1.75rem;
  aspect-ratio: 1;
  background: var(--ink);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.hero-card__dots {
  display: flex;
}

.hero-card__dots span {
  inline-size: 1.75rem;
  aspect-ratio: 1;
  border: 2px solid var(--paper-raised);
  border-radius: 50%;
}

.hero-card__dots span + span {
  margin-inline-start: -0.5rem;
}

.hero-card__dots [data-type="book"] { background: var(--tomato); }
.hero-card__dots [data-type="film"] { background: var(--ink); }
.hero-card__dots [data-type="album"] { background: var(--mustard); }

/* --- Badge, Instagram, note --------------------------------------------- */

/* Static: the hero has one moment of motion (CLAUDE.md), so it does not spin. */
.hero__badge {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--space-2);
  inset-inline-end: var(--space-4);
  inline-size: 4.75rem;
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

/* SVG text inherits RTL from the page and would run off the path. */
.hero__badge text {
  direction: ltr;
}

.hero__ig,
.hero__note {
  display: none;
}

.hero__ig-dots {
  display: flex;
  flex: none;
}

.hero__ig-dots span {
  inline-size: 1.75rem;
  aspect-ratio: 1;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--muted);
}

.hero__ig-dots span + span {
  margin-inline-start: -0.55rem;
  background: var(--ink);
}

.hero__ig-dots span:last-child {
  background: #a9a7a0;
}

@media (min-width: 56em) {
  .hero__intro {
    padding-block-start: var(--space-6);
  }

  .hero__lede {
    font-size: var(--text-base);
  }

  .hero__scene {
    --w: min(36vw, 30rem, 58vh);

    padding-block-start: var(--space-5);
  }

  .hero__ring {
    inset-block-start: calc(var(--space-5) + var(--h) * 0.3 - var(--w) * 0.85);
  }

  .tile {
    inline-size: 11rem;
    padding: var(--space-3);
  }

  .tile--2,
  .tile--4 {
    display: flex;
  }

  .tile--1 {
    inset-block-start: calc(var(--space-5) + var(--h) * 0.14);
    margin-inline-end: calc(var(--w) * 0.1);
  }

  .tile--2 {
    inset-block-start: calc(var(--space-5) + var(--h) * 0.36);
    margin-inline-end: calc(var(--w) * 0.2);
  }

  .tile--3 {
    inset-block-start: calc(var(--space-5) + var(--h) * 0.2);
    margin-inline-start: calc(var(--w) * 0.12);
  }

  .tile--4 {
    inset-block-start: calc(var(--space-5) + var(--h) * 0.42);
    margin-inline-start: calc(var(--w) * 0.22);
  }

  .hero-card {
    display: block;
  }

  .hero-card--a {
    inset-block-start: calc(var(--space-7) * -3);
    inset-inline-start: 6%;
    rotate: 4deg;
  }

  .hero-card--b {
    inset-block-start: calc(var(--space-5) + var(--h) * 0.3);
    inset-inline-end: 4%;
    rotate: -4deg;
  }

  .hero__badge {
    inset-block-start: calc(var(--space-7) * -1.6);
    inset-inline-end: 8%;
    inline-size: 6.5rem;
  }

  .hero__ig {
    position: absolute;
    z-index: 2;
    inset-block-end: var(--space-7);
    inset-inline-start: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
    text-decoration: none;
  }

  .hero__ig bdi {
    font-weight: var(--weight-semibold);
  }

  .hero__note {
    position: absolute;
    z-index: 2;
    inset-block-end: var(--space-7);
    inset-inline-end: var(--gutter);
    display: block;
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
    color: var(--muted);
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero__ig:hover bdi {
    text-decoration: underline;
  }
}

/* The vertical Latin line on the page edge. The home hero now carries this
   text in the badge; the coming soon page still uses the line. */
.hero__edge {
  position: absolute;
  inset-inline-end: max(var(--space-2), env(safe-area-inset-left));
  transform: translateY(-50%);
}

.hero__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-vertical);
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
}

@media (min-width: 56em) {
  .hero__edge {
    inset-inline-end: var(--space-5);
  }

  .hero__vertical {
    font-size: var(--text-xs);
  }
}

/* --- Hero motion ----------------------------------------------------------
   One orchestrated moment, once per session (an inline script adds
   .intro-seen on repeat views): the ring opens, Feres rises into it, then the
   tiles and cards settle. CSS animations so it stays smooth while the page
   is still loading. transform-free keyframes (opacity + translate) so they
   never fight the tiles' own perspective transforms. The headline never
   animates: it is the content. */

@keyframes hero-ring-in {
  from {
    opacity: 0;
    scale: 0.94;
  }
}

@keyframes hero-rise-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.intro-seen) .hero__ring {
    animation: hero-ring-in var(--dur-hero) var(--ease-out) both;
  }

  html:not(.intro-seen) .hero__photo {
    animation: hero-rise-in var(--dur-hero) var(--ease-out) 80ms both;
  }

  html:not(.intro-seen) .tile,
  html:not(.intro-seen) .hero-card {
    animation: hero-card-in var(--dur-hero-line) var(--ease-out) both;
  }

  html:not(.intro-seen) .tile--1 { animation-delay: 320ms; }
  html:not(.intro-seen) .tile--3 { animation-delay: 380ms; }
  html:not(.intro-seen) .tile--2 { animation-delay: 440ms; }
  html:not(.intro-seen) .tile--4 { animation-delay: 500ms; }
  html:not(.intro-seen) .hero-card--a { animation-delay: 560ms; }
  html:not(.intro-seen) .hero-card--b { animation-delay: 620ms; }

  html:not(.intro-seen) .hero__badge {
    animation: hero-fade-in var(--dur-hero) ease 300ms both;
  }
}

/* Reduced motion: gentler, not nothing. Opacity only, no movement. */
@media (prefers-reduced-motion: reduce) {
  html:not(.intro-seen) .hero__ring,
  html:not(.intro-seen) .hero__photo,
  html:not(.intro-seen) .tile,
  html:not(.intro-seen) .hero-card {
    animation: hero-fade-in var(--dur-fade) ease both;
  }
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding-block: var(--space-7);
}

@media (min-width: 56em) {
  .section {
    padding-block: var(--space-8);
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block-end: var(--space-5);
}

.section-head__text {
  display: grid;
  gap: var(--space-1);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.meta {
  font-size: var(--text-sm);
  color: var(--muted);
}

.draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.1em 0.75em;
  border: var(--border-thin) dashed var(--rule-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
}

.draft-badge::before {
  content: "";
  inline-size: 0.55em;
  aspect-ratio: 1;
  border: var(--border-mark) solid currentColor;
  border-radius: 50%;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-block-size: var(--tap);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .more-link:hover {
    text-decoration: underline;
  }
}

/* --- Filters ------------------------------------------------------------- */

.filters {
  display: flex;
  gap: var(--space-2);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block: var(--space-1) var(--space-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters[hidden] {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-block-size: var(--tap);
  padding-inline: 0.9em 1em;
  border: var(--border-thin) solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--text-sm);
  line-height: 1;
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background-color var(--dur-color) ease,
    border-color var(--dur-color) ease,
    color var(--dur-color) ease,
    transform var(--dur-press) var(--ease-out);
}

/* The circle: empty ring, filled when active. */
.chip::before {
  content: "";
  inline-size: 0.6em;
  aspect-ratio: 1;
  border: var(--border-mark) solid currentColor;
  border-radius: 50%;
}

.chip__count {
  font-size: var(--text-xs);
}

.chip[aria-pressed="true"] {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--on-tomato);
}

.chip[aria-pressed="true"]::before {
  background: currentColor;
}

.chip:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover {
    border-color: var(--ink);
  }

  .chip[aria-pressed="true"]:hover {
    border-color: var(--tomato);
  }
}

@media (min-width: 56em) {
  .filters {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* --- Item list ----------------------------------------------------------- */

.items {
  border-block-start: var(--border-thin) solid var(--rule-strong);
}

.item {
  border-block-end: var(--border-thin) solid var(--rule);
}

.item__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "type  status"
    "title title"
    "by    by";
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-4);
}

.item__type {
  grid-area: type;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  color: var(--muted);
}

.item__type::before {
  content: "";
  flex: none;
  inline-size: 0.55em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
}

.item__title {
  grid-area: title;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  overflow-wrap: anywhere;
}

.item__title a {
  text-decoration-line: underline;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color var(--dur-color) ease;
}

@media (hover: hover) and (pointer: fine) {
  .item__title a:hover {
    text-decoration-color: currentColor;
  }
}

.item__by {
  grid-area: by;
  font-size: var(--text-sm);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.item__creator + .item__year::before {
  content: " · ";
}

/* Status: ● finished, ◐ in progress, ⊘ dropped. Always paired with a label. */
.item__status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--text-xs);
  white-space: nowrap;
}

.status-mark {
  position: relative;
  flex: none;
  inline-size: 0.75em;
  aspect-ratio: 1;
  border: var(--border-mark) solid var(--ink);
  border-radius: 50%;
}

[data-status="finished"] .status-mark {
  background: var(--ink);
}

/* Half filled from the reading start (the right, in RTL). */
[data-status="in-progress"] .status-mark {
  background: linear-gradient(to left, var(--ink) 50%, transparent 50%);
}

[data-status="dropped"] .status-mark::after {
  content: "";
  position: absolute;
  inset-inline: -20%;
  inset-block-start: 50%;
  block-size: var(--border-mark);
  background: var(--ink);
  transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 56em) {
  .item__body {
    grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 16rem) 8rem;
    grid-template-areas: "type title by status";
    column-gap: var(--space-6);
    padding-block: var(--space-5);
  }

  .item__status {
    justify-self: end;
  }
}

/* --- Articles ------------------------------------------------------------ */

.posts {
  border-block-start: var(--border-thin) solid var(--rule-strong);
}

.post {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-block-end: var(--border-thin) solid var(--rule);
}

.post__date {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  color: var(--muted);
}

.post__date::before {
  content: "";
  inline-size: 0.55em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tomato);
}

.post__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  overflow-wrap: anywhere;
}

.post__title a {
  text-decoration: none;
}

/* The whole entry is the tap target. */
.post__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post__desc {
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .post:hover .post__title a {
    text-decoration: underline;
  }
}

@media (min-width: 56em) {
  .posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-6);
    border-block-start: 0;
  }

  .post {
    align-content: start;
    border-block-start: var(--border-thin) solid var(--ink);
    border-block-end: 0;
  }
}

/* --- Signup -------------------------------------------------------------- */

.signup {
  padding-block: var(--space-6) var(--space-4);
  scroll-margin-block-start: var(--space-4);
}

.signup :focus-visible {
  outline-color: var(--on-tomato);
}

.signup__inner {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-5);
  border-radius: 2rem;
  background: var(--tomato);
  color: var(--on-tomato);
}

.signup__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.signup__lede {
  margin-block-start: var(--space-2);
}

.signup__form {
  display: grid;
  gap: var(--space-2);
}

.signup__label {
  font-size: var(--text-sm);
}

.signup__row {
  display: grid;
  gap: var(--space-2);
}

.signup__input {
  min-block-size: 52px;
  inline-size: 100%;
  padding-inline: 1.1em;
  border: var(--border-mark) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-input);
}

.signup__input::placeholder {
  color: var(--muted);
}

.signup__input[aria-invalid="true"] {
  border-color: var(--ink);
}

.signup__button {
  min-block-size: 52px;
  padding-inline: 1.75em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-tomato);
  font-weight: var(--weight-bold);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    transform var(--dur-press) var(--ease-out),
    opacity var(--dur-color) ease;
}

.signup__button:active {
  transform: scale(0.97);
}

.signup__button[aria-disabled="true"] {
  opacity: 0.8;
  cursor: progress;
}

/* Status line, with the circle motif: filled = done, ring = problem. */
.signup__status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-block-size: 1.7em;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.signup__status:empty {
  visibility: hidden;
}

.signup__status::before {
  content: "";
  flex: none;
  inline-size: 0.7em;
  aspect-ratio: 1;
  border: var(--border-mark) solid currentColor;
  border-radius: 50%;
}

.signup__status[data-tone="success"]::before {
  background: currentColor;
}

/* Honeypot: off-screen, out of the tab order, hidden from assistive tech. */
.signup__trap {
  position: absolute;
  inset-inline-start: -9999px;
}

@media (min-width: 40em) {
  .signup__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 56em) {
  .signup__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    align-items: end;
    column-gap: var(--space-8);
    padding: var(--space-9) var(--space-8);
    border-radius: 2.75rem;
  }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-7) max(var(--space-7), env(safe-area-inset-bottom));
}

.site-footer__mark {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-wordmark);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.site-footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-block-size: var(--tap);
  font-weight: var(--weight-medium);
}

.site-footer__ig::before {
  content: "";
  inline-size: 0.55em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tomato);
}

.site-footer__copy {
  color: var(--muted);
}
