/* ============================================
   Fayeoff — A printed dueling manual
   Warm paper · Serif type · Black borders
   ============================================ */

:root {
  --paper: #f7f4ec;
  --paper-deep: #efe9dc;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-muted: #5c5c5c;
  --border: #1a1a1a;
  --charcoal: #2c2c2c;
  --white: #ffffff;
  --reading: 780px;
  --page-pad: clamp(1rem, 2.5vw, 1.75rem);
  --nav-height: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--paper-deep);
  background-image: radial-gradient(rgba(26, 26, 26, 0.035) 0.6px, transparent 0.6px),
    linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 40%, var(--paper-deep) 100%);
  background-size: 3px 3px, 100% 100%;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: text-decoration-color 0.2s var(--ease);
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(247, 244, 236, 0.92);
  border-bottom: 2px solid var(--border);
}

.nav.is-scrolled {
  background: rgba(247, 244, 236, 0.98);
}

.nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav__logo:hover {
  text-decoration: none;
  opacity: 0.7;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 6px auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Buttons — printed labels ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1.2rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Book layout ---------- */

.book {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0.85rem 2rem;
}

.page {
  margin-bottom: 1.15rem;
}

.page--compact {
  margin-bottom: 1rem;
}

.page__frame {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--border);
  padding: var(--page-pad);
  padding-bottom: calc(var(--page-pad) + 1.25rem);
  max-width: 100%;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.04);
}

.page__number {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-style: italic;
}

.page__ornament {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

/* ---------- Rules & ornaments ---------- */

.rule {
  border: none;
  border-top: 1px solid var(--border);
  width: min(180px, 36%);
  margin: 1.1rem auto;
}

.rule--ornament {
  position: relative;
  width: min(240px, 50%);
  margin: 1rem auto 1.35rem;
}

.rule--ornament::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 0.65rem;
  font-size: 0.55rem;
  color: var(--ink);
}

/* ---------- Title page ---------- */

.page--title .page__frame {
  text-align: center;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title-page__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.title-page__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

.title-page__intro {
  max-width: 28em;
  margin: 0 auto 1.25rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Duel scene (ink plate) ---------- */

.duel-scene {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: clamp(140px, 24vw, 180px);
  margin: 0.25rem auto 0;
  border: 2px solid var(--border);
  background: var(--paper-deep);
  overflow: hidden;
}

.duel-scene__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  border-top: 1px solid var(--ink);
  background: repeating-linear-gradient(-12deg, transparent, transparent 6px, rgba(26, 26, 26, 0.06) 6px, rgba(26, 26, 26, 0.06) 7px);
}

.duel-scene__center {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.duel-scene__vs {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
}

.duel-scene__caption {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-muted);
}

.duelist {
  position: absolute;
  bottom: 14%;
  z-index: 3;
  width: 100px;
}

.duelist--left {
  left: 10%;
}

.duelist--right {
  right: 10%;
}

.duelist--right .duelist__body {
  transform: scaleX(-1);
}

.duelist__body {
  position: relative;
  width: 72px;
  height: 120px;
  margin: 0 auto;
}

.duelist__hat {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 10px;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}

.duelist__hat::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  bottom: -3px;
  height: 4px;
  background: var(--ink);
}

.duelist__head {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.duelist__torso {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 3px 3px 2px 2px;
}

.duelist__leg {
  position: absolute;
  top: 70px;
  width: 8px;
  height: 40px;
  background: var(--ink);
}

.duelist__leg--back {
  left: 24px;
  transform: rotate(8deg);
}

.duelist__leg--front {
  left: 38px;
  transform: rotate(-6deg);
}

.duelist__arm {
  position: absolute;
  top: 38px;
  left: 50px;
  width: 58px;
  height: 6px;
  background: var(--ink);
  transform: rotate(-8deg);
  transform-origin: left center;
}

.gun-phone {
  position: absolute;
  right: -42px;
  top: -14px;
  width: 58px;
  height: 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
}

.gun-phone__screen {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-right: 8px;
}

.gun-phone__trigger {
  position: absolute;
  left: 8px;
  top: -4px;
  width: 12px;
  height: 4px;
  background: var(--ink);
}

/* Camera lens = barrel muzzle */
.gun-phone__barrel {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px var(--ink);
}

.gun-phone__barrel::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- Chapters ---------- */

.chapter__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
}

.chapter__lead {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

/* ---------- Prose ---------- */

.prose {
  max-width: 36em;
  margin: 0 auto;
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 0.7rem;
  text-indent: 1.25em;
}

.prose--duel {
  max-width: 28em;
  text-align: center;
}

.prose--duel p + p {
  text-indent: 0;
  margin-top: 0.85rem;
}

.prose--duel .drop-cap::first-letter {
  float: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
}

.prose--duel .drop-cap {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 2.75em;
  font-weight: 600;
  line-height: 0.8;
  padding-right: 0.1em;
  padding-top: 0.08em;
  color: var(--ink);
}

/* ---------- How it works — manual ---------- */

.manual {
  max-width: 36em;
  margin: 0 auto;
}

.manual__entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.manual__entry:last-child {
  border-bottom: 1px solid var(--border);
}

.manual__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-top: 0.1rem;
}

.manual__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.manual__body p {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Features — handbook ---------- */

.handbook {
  max-width: 38em;
  margin: 0 auto;
}

.handbook__entry {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.handbook__entry:last-child {
  border-bottom: 1px solid var(--border);
}

.handbook__entry dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.handbook__entry dd {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Plates / gallery ---------- */

.plates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
  max-width: 520px;
  margin: 0 auto;
}

.plate {
  text-align: center;
}

.plate__frame {
  position: relative;
  border: 2px solid var(--border);
  background: var(--paper-deep);
  padding: 0.65rem;
  overflow: hidden;
}

.plate__frame::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  pointer-events: none;
  background: radial-gradient(rgba(26, 26, 26, 0.04) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
  mix-blend-mode: multiply;
}

.plate__frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05) sepia(0.08);
}

.plate__fallback {
  position: absolute;
  inset: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  z-index: 1;
}

.plate__fallback[hidden] {
  display: none;
}

.plate__fallback:not([hidden]) {
  display: flex;
}

.plate__fallback span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.plate figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* ---------- Closing page ---------- */

.page--closing .page__frame {
  text-align: center;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.closing__quote {
  margin: 0 auto;
}

.closing__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.closing__text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.closing__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.closing__actions .btn {
  flex: 0 1 auto;
  width: auto;
  white-space: nowrap;
}

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

.footer {
  border-top: 2px solid var(--border);
  background: var(--paper);
  padding: 1.35rem 1.25rem;
}

.footer__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

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

.footer__links {
  display: flex;
  gap: 1.75rem;
}

.footer__links a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-soft);
}

.footer__copy {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.manual__entry:nth-child(2),
.handbook__entry:nth-child(2),
.plate:nth-child(2) {
  transition-delay: 0.08s;
}

.manual__entry:nth-child(3),
.handbook__entry:nth-child(3),
.plate:nth-child(3) {
  transition-delay: 0.14s;
}

.manual__entry:nth-child(4),
.handbook__entry:nth-child(4),
.plate:nth-child(4) {
  transition-delay: 0.2s;
}

.manual__entry:nth-child(5) {
  transition-delay: 0.26s;
}

/* ---------- Support page ---------- */

.page-support .book {
  padding-top: 1.5rem;
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero .page__frame {
  text-align: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.page-hero__lead {
  max-width: 28em;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.contact {
  margin-bottom: 2.5rem;
}

.contact-card {
  display: block;
  padding: 2rem;
  border: 2px solid var(--border);
  background: var(--paper);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-card:hover {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.contact-card:hover .contact-card__label,
.contact-card:hover .contact-card__value,
.contact-card:hover .contact-card__hint {
  color: inherit;
}

.contact-card__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.contact-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: break-all;
  margin-bottom: 0.35rem;
}

.contact-card__hint {
  display: block;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-muted);
}

.faq {
  margin-bottom: 2.5rem;
}

.faq__list {
  max-width: 38em;
  margin: 0 auto;
}

.faq__item {
  border-top: 1px solid var(--border);
  background: transparent;
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-weight: 400;
  font-size: 1.35rem;
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform 0.2s var(--ease);
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  padding: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.7;
}

.faq__answer p + p {
  margin-top: 0.5rem;
}

.faq__answer a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feedback .page__frame {
  text-align: center;
}

.feedback__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feedback__text {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  :root {
    --nav-height: 52px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    border: none;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.55rem;
    color: var(--ink);
  }

  .book {
    padding: 0.85rem 0.7rem 2rem;
  }

  .page {
    margin-bottom: 1.1rem;
  }

  .title-page__brand {
    letter-spacing: 0.08em;
  }

  .title-page__intro {
    text-align: left;
  }

  .duel-scene {
    height: 150px;
  }

  .duelist {
    width: 80px;
  }

  .duelist__body {
    transform: scale(0.82);
    transform-origin: bottom center;
  }

  .duelist--right .duelist__body {
    transform: scaleX(-1) scale(0.82);
  }

  .duelist--left {
    left: 6%;
  }

  .duelist--right {
    right: 6%;
  }

  .plates {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 1rem 0.75rem;
  }

  .manual__entry {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.7rem;
  }

  .closing__actions {
    gap: 0.5rem;
  }

  .closing__actions .btn {
    width: auto;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .prose p + p {
    text-indent: 0;
  }
}

@media (max-width: 400px) {
  .title-page__brand {
    font-size: 2.85rem;
    letter-spacing: 0.06em;
  }

  .chapter__title {
    font-size: 1.85rem;
  }

  .plates {
    grid-template-columns: 1fr;
    max-width: 220px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .contact-card {
    transition: none;
    animation: none;
  }
}
