/* ==========================================================================
   The Wolniak Family — thewolniakfamily.com
   Plain CSS, no build step. Edit freely.
   ========================================================================== */

:root {
  --paper:      #faf7f2;
  --paper-warm: #f3ede3;
  --ink:        #1c2622;
  --ink-soft:   #4d5a54;
  --ink-faint:  #8a938d;
  --forest:     #2f5d50;
  --gold:       #b08d57;
  --line:       rgba(28, 38, 34, 0.12);
  --card-bg:    rgba(255, 255, 255, 0.62);
  --shadow:     0 1px 2px rgba(28, 38, 34, .04),
                0 12px 32px -12px rgba(28, 38, 34, .13);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
             Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #101512;
    --paper-warm: #161c19;
    --ink:        #ece7de;
    --ink-soft:   #a9b2ac;
    --ink-faint:  #6f7a74;
    --forest:     #86b8a5;
    --gold:       #c9a66b;
    --line:       rgba(236, 231, 222, 0.14);
    --card-bg:    rgba(255, 255, 255, 0.035);
    --shadow:     0 1px 2px rgba(0, 0, 0, .3),
                  0 14px 34px -14px rgba(0, 0, 0, .6);
  }
}

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

/* Every line-drawn icon shares one paint style, so the SVGs in the markup
   carry only a viewBox and their paths. */
.card__icon svg,
.card__cue svg,
.backlink__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__cue svg { stroke-width: 1.5; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, blockquote, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 .5rem 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}
.wrap--narrow { max-width: 40rem; }


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.5rem, 5vw, 3rem) 7rem;
  overflow: hidden;
  isolation: isolate;
}

/* Soft, slowly drifting light — the only "wallpaper" in the whole site. */
.hero__glow {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 22% 26%, rgba(47, 93, 80, .17), transparent 65%),
    radial-gradient(34% 38% at 78% 22%, rgba(176, 141, 87, .19), transparent 66%),
    radial-gradient(46% 46% at 60% 82%, rgba(47, 93, 80, .11), transparent 68%);
  filter: blur(8px);
  animation: drift 34s var(--ease) infinite alternate;
}

@media (prefers-color-scheme: dark) {
  .hero__glow {
    background:
      radial-gradient(38% 42% at 22% 26%, rgba(134, 184, 165, .15), transparent 65%),
      radial-gradient(34% 38% at 78% 22%, rgba(201, 166, 107, .14), transparent 66%),
      radial-gradient(46% 46% at 60% 82%, rgba(134, 184, 165, .09), transparent 68%);
  }
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1);    }
  to   { transform: translate3d( 2%,  2%, 0) scale(1.08); }
}

.hero__inner { max-width: 44rem; text-align: center; }

.crest { margin: 0 auto 2.25rem; width: clamp(74px, 12vw, 96px); }
.crest svg { display: block; width: 100%; height: auto; }
a.crest { display: block; text-decoration: none; color: inherit; }

.crest__ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: .55;
}
.crest__ring--inner { stroke-dasharray: 2 7; stroke-linecap: round; opacity: .8; }
.crest__leaf { fill: var(--forest); opacity: .75; }

.crest__letter {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
  fill: var(--ink);
  letter-spacing: .02em;
  text-anchor: middle;
  dominant-baseline: central;
}

.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero__the,
.hero__family {
  display: block;
  font-size: clamp(1.1rem, .9rem + 1.1vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.hero__the    { margin-bottom: .35em; }
.hero__family { margin-top: .3em; }

.hero__name {
  display: block;
  font-size: clamp(3.4rem, 1.2rem + 11vw, 8.5rem);
  font-weight: 400;
  background: linear-gradient(175deg, var(--ink) 32%, var(--forest) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  text-wrap: pretty;
}

.hero__rule {
  margin-top: 2.75rem;
  display: flex;
  justify-content: center;
}
.hero__rule span {
  display: block;
  width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  translate: -50% 0;
  width: 2.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
}
.hero__scroll-line {
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(180deg, transparent, var(--ink-faint));
  transform-origin: top;
  animation: reach 2.6s var(--ease) infinite;
}
@keyframes reach {
  0%, 100% { transform: scaleY(.45); opacity: .35; }
  50%      { transform: scaleY(1);   opacity: .9;  }
}


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

.note { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }

.note__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.note__body { color: var(--ink-soft); text-wrap: pretty; }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* The people ------------------------------------------------------------- */

.people { padding-bottom: clamp(3.5rem, 9vw, 6rem); }

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
}

.person { text-align: center; }

.person__monogram {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.125rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
  background: color-mix(in oklab, var(--forest) 8%, transparent);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--forest);
  letter-spacing: .02em;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.person:hover .person__monogram {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.person__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.person__role {
  margin-top: .25rem;
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.person__note {
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.ideas { padding-bottom: clamp(4rem, 10vw, 7rem); }

/* The "Already here" band sits directly above "In progress", so it carries
   less bottom padding than a standalone section would. */
.ideas--live { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  padding: 2rem 1.75rem 2.125rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              border-color .5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--gold) 45%, transparent);
  box-shadow: 0 2px 4px rgba(28, 38, 34, .05),
              0 22px 44px -16px rgba(28, 38, 34, .22);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: .625rem;
  color: var(--forest);
  background: color-mix(in oklab, var(--forest) 10%, transparent);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 1.375rem; height: 1.375rem; }

.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}

.card__body {
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* A card that is a link. The anchor sits on the title for a sensible
   accessible name, then stretches over the whole card so the entire tile
   is clickable. */
.card--link .card__title a {
  color: inherit;
  text-decoration: none;
}
.card--link .card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card--link .card__title a:focus-visible { outline: none; }
.card--link:focus-within {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.card__cue {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
}
.card__cue svg {
  width: .9375rem;
  height: .9375rem;
  transition: transform .5s var(--ease);
}
.card--link:hover .card__cue svg { transform: translateX(3px); }

/* One card on its own row reads better as a wide banner than a lone tile. */
.cards--single { grid-template-columns: 1fr; }

@media (min-width: 44rem) {
  .card--feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
  }
  .card--feature .card__icon { margin-bottom: 0; }
  .card--feature .card__title { margin-bottom: .375rem; }
  .card--feature .card__body { max-width: 34rem; }
  .card--feature .card__cue { margin-top: 0; white-space: nowrap; }
}

.quote {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.quote__text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}


/* --------------------------------------------------------------------------
   404 — same hero, but short. Flex column so the footer sits at the bottom
   of tall viewports instead of leaving a gap under it.
   -------------------------------------------------------------------------- */

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.page-404 .hero {
  flex: 1;
  min-height: 0;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 2.5rem;
  padding: .8rem 1.6rem .8rem 1.35rem;
  border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent);
  border-radius: 999px;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: .9375rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.backlink:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.backlink__arrow {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--forest);
  transition: transform .5s var(--ease);
}
.backlink:hover .backlink__arrow { transform: translateX(-3px); }



/* --------------------------------------------------------------------------
   Family tree — a quieter header than the hero, then one band per generation.
   Reuses .roster and .person so people look identical across both pages.
   -------------------------------------------------------------------------- */

.pagehead {
  padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.crest--small { width: clamp(56px, 8vw, 68px); margin-bottom: 1.75rem; }

.pagehead__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.pagehead__intro {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* The drawn tree. Hidden on narrow screens, where the viewBox would scale the
   labels down past legibility — the generational lists carry it there. */
.tree { display: none; }

@media (min-width: 48rem) {
  .tree {
    display: block;
    max-width: 56rem;
    margin: 0 auto clamp(1rem, 3vw, 2rem);
    padding-inline: clamp(1.5rem, 5vw, 3rem);
  }
  .tree svg { display: block; width: 100%; height: auto; }
}

.tree__crown path {
  fill: var(--forest);
  opacity: .06;
}
.tree__crown .tree__crown--inner { opacity: .05; }

.tree__trunk { fill: var(--forest); opacity: .85; }

/* Thickest at the bottom for the oldest, thinnest at the top for the youngest. */
.tree__branch {
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  opacity: .85;
}
.tree__branch--low  { stroke-width: 10; }
.tree__branch--mid  { stroke-width: 7.5; }
.tree__branch--sub  { stroke-width: 6; }
.tree__branch--high { stroke-width: 5; }
.tree__branch--twig { stroke-width: 3; opacity: .6; }

.tree__leaves use { fill: var(--forest); opacity: .5; }

.tree__acorn { fill: var(--gold); opacity: .85; }
.tree__acorn-cap { fill: var(--forest); opacity: .8; }

.tree__node {
  fill: var(--paper);
  stroke: var(--gold);
  stroke-width: 1.5;
}

.tree__mono,
.tree__name,
.tree__role { text-anchor: middle; }

.tree__mono {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 300;
  fill: var(--forest);
  dominant-baseline: central;
}
.tree__mono--sm { font-size: 26px; }

.tree__name {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  fill: var(--ink);
}

.tree__role {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  fill: var(--ink-faint);
}

.tree__ground {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: .45;
  stroke-linecap: round;
}

.generation { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

.branch + .branch { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

.branch__title {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

/* Two people read better as a centered pair than stretched across the grid. */
.roster--pair,
.roster--trio {
  margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.roster--pair { max-width: 34rem; }
.roster--trio { max-width: 46rem; }

/* The thread running between generations. */
.lineage__link {
  display: flex;
  justify-content: center;
}
.lineage__link span {
  display: block;
  width: 1px;
  height: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.section-more {
  display: flex;
  justify-content: center;
}


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

.footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: .75rem;
}

.footer__domain {
  font-size: .9375rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.footer__meta {
  margin-top: .5rem;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
}


/* --------------------------------------------------------------------------
   Scroll reveal — elements start hidden only if JS is running (see main.js).
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger the cards and the people so they arrive one after another. */
.js .card[data-reveal]:nth-child(2),
.js .person[data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .card[data-reveal]:nth-child(3),
.js .person[data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .card[data-reveal]:nth-child(4),
.js .person[data-reveal]:nth-child(4) { transition-delay: .24s; }

/* Hero elements come in on load, top to bottom. */
.js .hero [data-reveal]:nth-child(2) { transition-delay: .1s;  }
.js .hero [data-reveal]:nth-child(3) { transition-delay: .2s;  }
.js .hero [data-reveal]:nth-child(4) { transition-delay: .34s; }
.js .hero [data-reveal]:nth-child(5) { transition-delay: .46s; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .card--link:hover .card__cue svg { transform: none; }
  .backlink:hover { transform: none; }
  .backlink:hover .backlink__arrow { transform: none; }
}

/* Login -------------------------------------------------------------------
   Each family tile is a button that opens a code-based login dialog. */

.person__trigger {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person__trigger--soon {
  cursor: default;
  opacity: .55;
}
.person__trigger--soon .person__monogram { border-color: var(--line); }
.person:has(.person__trigger--soon):hover .person__monogram {
  transform: none;
  border-color: var(--line);
}

.person__monogram svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roster__hint {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

.login-dialog {
  width: min(24rem, calc(100vw - 2.5rem));
  padding: 0;
  border: none;
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.login-dialog::backdrop {
  background: rgba(28, 38, 34, .45);
}
@media (prefers-color-scheme: dark) {
  .login-dialog::backdrop { background: rgba(0, 0, 0, .6); }
}

.login-dialog__form {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
}

.login-dialog__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.login-dialog__close:hover { color: var(--ink); }

.login-dialog__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.375rem;
  margin-bottom: .5rem;
}

.login-dialog__body {
  font-size: .9375rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.login-dialog__label {
  display: block;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .5rem;
}

.login-dialog__input {
  width: 100%;
  padding: .75rem .875rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: .2em;
  text-align: center;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: .5rem;
}

.login-dialog__status {
  margin-top: .875rem;
  font-size: .8125rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.btn {
  width: 100%;
  padding: .8125rem 1.25rem;
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--forest);
  border: none;
  border-radius: .5rem;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Recipes page -------------------------------------------------------------- */

.field-input {
  text-align: left;
  letter-spacing: normal;
  font-size: 1rem;
}
.field-textarea { height: 8rem; resize: vertical; }

.field-checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  color: var(--ink-soft);
}

.backlink--button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.page-actions .backlink { margin-top: 0; }

/* Account menu -- the crest itself is the trigger, tucking logout (and any
   account actions) behind a click instead of a standalone button on the
   page. <details>/<summary> gives the open/close toggle for free, no JS. */

.account-menu {
  position: relative;
  display: inline-block;
}
/* Specificity note: without this, [hidden]'s UA-stylesheet `display: none`
   loses to the rule above -- same specificity, author sheet wins either
   way, so `hidden` on this element would silently do nothing. */
.account-menu[hidden] { display: none; }

.account-menu > summary {
  list-style: none;
  cursor: pointer;
  border-radius: 50%;
}
.account-menu > summary::-webkit-details-marker,
.account-menu > summary::marker { display: none; content: ""; }
.account-menu > summary:focus-visible { outline-offset: 6px; }

.account-menu > summary .crest {
  margin: 0 auto;
  transition: opacity .3s var(--ease);
}
.account-menu:hover > summary .crest,
.account-menu[open] > summary .crest { opacity: .75; }

.account-menu__panel {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  min-width: 11rem;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: var(--shadow);
}

.account-menu__item {
  display: block;
  width: 100%;
  padding: .625rem .875rem;
  border: none;
  background: none;
  border-radius: .5rem;
  font-family: var(--body);
  font-size: .875rem;
  text-align: left;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
}
.account-menu__item:hover { background: var(--paper-warm); color: var(--ink); }

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.link-btn {
  padding: 0;
  border: none;
  background: none;
  font-family: var(--body);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.link-btn:hover { color: var(--gold); }
.link-btn:disabled { opacity: .55; cursor: not-allowed; text-decoration: none; }

.recipe-edit-form .field-textarea { height: 6rem; }
