:root {
  --ink: #221d1a;
  --muted: #756a62;
  --cream: #fbf4ec;
  --cream-2: #fffaf5;
  --blush: #f4d7d4;
  --rose: #b8777d;
  --rose-dark: #8f555d;
  --cocoa: #5d4638;
  --cocoa-2: #7a5e4c;
  --sage: #bfc8b8;
  --line: rgba(93, 70, 56, 0.16);
  --glass: rgba(255, 250, 245, 0.78);
  --shadow: 0 24px 70px rgba(64, 42, 32, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--cream), #fff6f0 48%, #fffaf5);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 244, 236, 0.86);
  backdrop-filter: blur(20px);
}

.announcement {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 6px 16px;
  color: var(--cocoa);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement span + span {
  color: var(--rose-dark);
}

.nav-shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  filter: drop-shadow(0 8px 18px rgba(64, 42, 32, 0.1));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.nav-action,
.button,
.mobile-tabbar a {
  min-height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.nav-links a {
  padding: 0 12px;
  color: var(--muted);
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
}

.nav-action {
  justify-self: end;
  padding: 0 16px;
  color: white;
  background: var(--ink);
}

.is-disabled-order {
  color: rgba(34, 29, 26, 0.58) !important;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(117, 106, 98, 0.08) 0,
      rgba(117, 106, 98, 0.08) 8px,
      rgba(255, 255, 255, 0.36) 8px,
      rgba(255, 255, 255, 0.36) 16px
    ),
    rgba(255, 250, 245, 0.72) !important;
  border: 1px solid rgba(93, 70, 56, 0.16) !important;
  box-shadow: none !important;
}

.is-disabled-order:hover {
  color: rgba(34, 29, 26, 0.68) !important;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(117, 106, 98, 0.1) 0,
      rgba(117, 106, 98, 0.1) 8px,
      rgba(255, 255, 255, 0.42) 8px,
      rgba(255, 255, 255, 0.42) 16px
    ),
    rgba(255, 250, 245, 0.82) !important;
}

.hero {
  position: relative;
  min-height: calc(100svh - 109px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 16, 13, 0.7), rgba(20, 16, 13, 0.28), rgba(20, 16, 13, 0.02)),
    url("/brand/bakehouse-hero.png") center / cover;
  transform: scale(1.02);
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(251, 244, 236, 0.98), transparent);
  z-index: -2;
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 9vh 0 13vh;
  color: white;
}

.hero-mark {
  width: clamp(136px, 18vw, 220px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.16));
  opacity: 0.96;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1d2d0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

h2 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.order-paused-badge,
.not-taking-orders-card {
  width: fit-content;
  max-width: min(100%, 420px);
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 119, 125, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.94), rgba(244, 215, 212, 0.72)),
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(184, 119, 125, 0.09) 10px 20px);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(64, 42, 32, 0.14);
}

.order-paused-badge {
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.9), rgba(244, 215, 212, 0.7)),
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(184, 119, 125, 0.1) 10px 20px);
}

.order-paused-badge span,
.not-taking-orders-card span {
  color: var(--rose-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.order-paused-badge strong,
.not-taking-orders-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.not-taking-orders-card p {
  margin: 0;
}

.not-taking-orders-card.compact {
  margin-top: 24px;
}

.hero-actions,
.form-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
button {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.button {
  padding: 0 18px;
}

.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 36px rgba(34, 29, 26, 0.18);
}

.button.primary:hover {
  background: var(--rose-dark);
}

.button.quiet {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.hero-panel {
  position: absolute;
  right: max(18px, calc((100% - 1180px) / 2));
  bottom: 32px;
  width: min(360px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 250, 245, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 1.12rem;
}

.signal-band,
.portal-section,
.section,
.order-section,
.home-cta,
.about-section,
.experience-section,
.policy-section,
.page-hero,
.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.signal-band {
  padding: 28px 0;
}

.portal-section {
  padding: 42px 0 86px;
}

.portal-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
  margin-bottom: 22px;
}

.portal-head h2 {
  max-width: 640px;
}

.portal-head p:last-child {
  max-width: 440px;
  margin: 0;
  justify-self: end;
  font-size: 1.08rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.portal-card {
  min-height: 360px;
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(93, 70, 56, 0.14);
  border-radius: var(--radius);
  padding: 22px;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 29, 26, 0.74), rgba(34, 29, 26, 0.08) 72%);
  z-index: -1;
}

.portal-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 220ms ease;
}

.portal-card .media-cookies,
.product-card .media-cookies {
  object-position: 16% 58%;
}

.portal-card .media-full {
  object-position: center;
}

.product-card .media-cake {
  object-position: 73% 24%;
}

.product-card .media-cupcakes {
  object-position: 100% 68%;
}

.product-card .media-gifts {
  object-position: 45% 82%;
}

.portal-card.logo-card {
  background: linear-gradient(140deg, rgba(255, 250, 245, 0.96), rgba(244, 215, 212, 0.54));
  color: var(--ink);
}

.portal-card.logo-card::after {
  background: linear-gradient(to top, rgba(255, 250, 245, 0.96), rgba(255, 250, 245, 0.55));
}

.portal-card.logo-card img {
  inset: 18% 14% auto auto;
  width: min(58%, 230px);
  height: auto;
  object-fit: contain;
  opacity: 0.36;
}

.portal-card.logo-card span,
.portal-card.logo-card strong {
  color: var(--ink);
}

.portal-card.logo-card p {
  color: var(--muted);
}

.portal-card:hover img {
  transform: scale(1.035);
}

.portal-card span,
.portal-card strong,
.portal-card p {
  color: white;
}

.portal-card span {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-card strong {
  margin-top: 7px;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.96;
}

.portal-card p {
  margin: 12px 0 0;
  opacity: 0.84;
}

.portal-card.is-featured {
  grid-column: span 2;
}

.portal-card.is-order-paused::before {
  content: "Preview only";
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 245, 0.82);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-card.is-order-paused::after {
  background: linear-gradient(to top, rgba(34, 29, 26, 0.82), rgba(34, 29, 26, 0.32) 72%);
}

.signal-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-track div,
.product-card,
.policy-grid article,
.experience-grid article,
.order-form,
.about-copy,
.admin-card {
  background: rgba(255, 250, 245, 0.82);
  backdrop-filter: blur(18px);
}

.signal-track div {
  padding: 22px;
}

.signal-track span,
.product-card span,
.experience-grid span,
.order-metrics span {
  color: var(--rose-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-track strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.section,
.about-section,
.experience-section,
.policy-section,
.order-section,
.home-cta,
.portal-section,
.page-hero,
.admin-shell {
  padding: 86px 0;
}

.section-head,
.page-hero {
  max-width: 860px;
}

.section-head p,
.page-hero p,
.order-copy p,
.about-copy p {
  max-width: 680px;
  font-size: 1.08rem;
}

.menu-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 22px;
}

.menu-controls button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.78);
  color: var(--muted);
  padding: 0 18px;
  font-weight: 850;
}

.menu-controls button.is-active {
  color: white;
  background: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card[hidden] {
  display: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card div {
  padding: 22px;
}

.product-card strong {
  display: block;
  margin-top: 16px;
  color: var(--cocoa);
}

.order-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.home-cta {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: stretch;
}

.home-cta-card {
  min-height: 320px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(to top, rgba(34, 29, 26, 0.66), rgba(34, 29, 26, 0.05)),
    url("/brand/bakehouse-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.home-cta-card span,
.home-cta-card strong,
.home-cta-card p {
  color: white;
}

.home-cta-card span {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-cta-card strong {
  margin-top: 8px;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.home-cta-card p {
  margin-bottom: 0;
  opacity: 0.84;
}

.order-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.order-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 245, 0.68);
}

.order-metrics strong {
  display: block;
  margin-top: 7px;
}

.order-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.order-form.is-paused {
  position: relative;
  opacity: 0.68;
  filter: saturate(0.72);
}

.order-form.is-paused::before {
  content: "Ordering paused";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 1px solid rgba(93, 70, 56, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 245, 0.92);
  color: var(--rose-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-form.is-paused input,
.order-form.is-paused select,
.order-form.is-paused textarea {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(117, 106, 98, 0.06) 0,
      rgba(117, 106, 98, 0.06) 8px,
      rgba(255, 255, 255, 0.5) 8px,
      rgba(255, 255, 255, 0.5) 16px
    ),
    rgba(255, 255, 255, 0.72);
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.form-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(93, 70, 56, 0.14);
}

.form-progress span.is-current,
.form-progress span.is-done {
  background: var(--rose-dark);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.form-step {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-step.is-active {
  display: grid;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(184, 119, 125, 0.35);
  outline-offset: 3px;
}

.form-note {
  margin-bottom: 0;
}

.is-hidden {
  display: none;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(300px, 1.26fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.about-page {
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
  min-height: calc(100svh - 109px);
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
}

.about-image {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  place-self: center;
  border: 12px solid rgba(255, 250, 245, 0.9);
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(93, 70, 56, 0.14),
    0 28px 72px rgba(64, 42, 32, 0.18);
}

.about-portrait-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.about-portrait-wrap p {
  max-width: 360px;
  margin: 0;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
}

.about-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.about-page .about-copy {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.about-page .about-copy h1 {
  max-width: 9ch;
  font-size: clamp(4.2rem, 11vw, 8.2rem);
}

.about-page .about-copy > p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
}

.value-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.value-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list span {
  margin-top: 4px;
  color: var(--muted);
}

.experience-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 76px);
}

.experience-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.experience-grid article,
.policy-grid article,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 44px rgba(64, 42, 32, 0.08);
}

.policy-grid {
  margin-top: 26px;
  grid-template-columns: repeat(4, 1fr);
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(18px, calc((100% - 1180px) / 2));
  color: var(--cream);
  background: var(--ink);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer a {
  color: var(--cream);
}

.mobile-tabbar {
  display: none;
}

.page-hero {
  min-height: 42svh;
  display: grid;
  align-content: end;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(3rem, 6.8vw, 5.8rem);
}

.order-copy h1,
.admin-shell h1 {
  font-size: clamp(3rem, 6.6vw, 5.8rem);
}

.admin-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.admin-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff1d6;
  color: #6d4b12;
  font-size: 0.82rem;
  font-weight: 900;
}

@media (display-mode: standalone) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 74px;
  }

  .announcement {
    justify-content: space-between;
  }

  .nav-shell {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand-lockup span {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-action {
    padding: 0 13px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-content {
    padding: 7vh 0 18vh;
  }

  .hero-panel {
    display: none;
  }

  .signal-track,
  .portal-head,
  .portal-grid,
  .product-grid,
  .order-section,
  .home-cta,
  .about-section,
  .experience-section,
  .policy-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .form-step {
    grid-template-columns: 1fr;
  }

  .portal-section {
    padding-top: 28px;
  }

  .portal-head {
    gap: 10px;
  }

  .portal-head p:last-child {
    justify-self: start;
  }

  .portal-card,
  .portal-card.is-featured {
    grid-column: auto;
    min-height: 210px;
  }

  .portal-card strong {
    max-width: 15ch;
  }

  .about-image {
    width: min(82vw, 360px);
  }

  .about-page {
    min-height: auto;
  }

  .about-page .about-copy {
    order: 2;
  }

  .about-page .about-portrait-wrap {
    order: 1;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(93, 70, 56, 0.14);
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.88);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 48px rgba(64, 42, 32, 0.18);
  }

  .mobile-tabbar a {
    min-height: 46px;
    color: var(--muted);
    font-size: 0.82rem;
  }

  .mobile-tabbar a[aria-current="page"] {
    color: white;
    background: var(--ink);
  }

  .site-footer {
    display: grid;
    padding-bottom: 96px;
  }
}

@media (max-width: 520px) {
  .announcement {
    font-size: 0.68rem;
  }

  .nav-action {
    min-height: 40px;
    font-size: 0.82rem;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.1rem);
  }

  .about-page .about-copy h1 {
    font-size: clamp(4rem, 18vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }
}
