/* =============================================
   The Fold — Editorial Blog A
   style.css — scoped, no @import, plain CSS
   ============================================= */

/* ---- Tokens ---- */
:root {
  /* Palette — editorial: ivory + espresso + accent red */
  --bg:         #F9F6F1;
  --surface:    #FFFFFF;
  --fg:         #1A1612;
  --muted:      #7A6E66;
  --primary:    #C0392B;
  --primary-fg: #FFFFFF;
  --accent:     #C0392B;
  --border:     rgba(26,22,18,0.1);

  /* Breakpoints (reference only — used in @media) */
  --bp-sm: 480px;
  --bp-md: 720px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;

  /* Fluid type */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4.75rem);
  --fs-h2:   clamp(1.4rem, 2.5vw + 0.5rem, 2.25rem);
  --fs-body: clamp(0.9375rem, 0.4vw + 0.875rem, 1.0625rem);
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* Spacing */
  --section-py:       clamp(72px, 10vw, 120px);
  --container-gutter: clamp(24px, 4vw, 48px);
  --radius-card:      0px;
  --radius-btn:       2px;

  /* Fonts */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;

  /* Section-pool token contract */
  --fs-h3:        clamp(1rem, 1.2vw + 0.7rem, 1.3rem);
  --fs-small:     0.875rem;
  --lh-tight:     1.1;
  --lh-body:      1.65;
  --container-px: clamp(24px, 4vw, 48px);
  --container-max: 1200px;
  --gap-lg:       48px;
  --gap-md:       24px;
  --gap-sm:       12px;
  --radius-input: 0px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0; }
address { font-style: normal; }
ul { list-style: none; }
blockquote { margin: 0; }

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background-color: #9B2D23;
  border-color: #9B2D23;
}

.btn-ghost {
  background-color: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--fg);
  color: var(--bg);
}
.btn-ghost:active { opacity: 0.8; }

.btn-banner {
  background-color: var(--bg);
  color: var(--primary);
  border-color: var(--bg);
}
.btn-banner:hover,
.btn-banner:focus-visible {
  background-color: rgba(249,246,241,0.85);
  border-color: rgba(249,246,241,0.85);
}

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---- Section helpers ---- */
.section-header {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-title {
  font-size: var(--fs-h2);
  color: var(--fg);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.65;
}

/* ====================================================
   NAV
   ==================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-style: italic;
}
.nav__logo-text { display: inline-block; }
.nav__toggle-input { display: none; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--fg);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.65;
  transition: opacity 150ms ease;
}
.nav__link:hover,
.nav__link:focus-visible { opacity: 1; }
.nav__cta {
  min-height: 36px;
  padding: 8px 20px;
  font-size: var(--fs-xs);
  border-radius: var(--radius-btn);
}

@media (max-width: 720px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px var(--container-gutter) 24px;
  }
  .nav__toggle-input:checked ~ .nav__links { display: flex; }
  .nav__link { padding-block: 12px; width: 100%; }
  .nav__cta { margin-top: 12px; }
  .nav__toggle-input:checked ~ .nav__hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav__toggle-input:checked ~ .nav__hamburger span:nth-child(2) { opacity: 0; }
  .nav__toggle-input:checked ~ .nav__hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  background-color: var(--bg);
  padding-top: 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-block: 64px;
}
.hero__text { max-width: 540px; }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero__subtitle {
  font-size: clamp(1rem, 1vw + 0.85rem, 1.125rem);
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Short hero variant */
.hero--short .hero__inner {
  min-height: 320px;
  padding-block: clamp(64px, 10vw, 96px);
}
.hero__inner--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 680px;
  margin-inline: auto;
}
.hero__inner--centered .hero__text { max-width: none; }
.hero__inner--centered .hero__subtitle { max-width: none; }

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: clamp(48px, 8vw, 80px);
  }
  .hero__media { order: -1; }
  .hero__media img { max-height: 520px; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ====================================================
   BLOG LIST
   ==================================================== */
.blog-list {
  padding-block: var(--section-py);
  background-color: var(--surface);
}
.blog-list--full {
  background-color: var(--bg);
}
.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.blog-list__footer {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
}

/* Blog card */
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card__image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 20px;
}
.blog-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.blog-card:hover .blog-card__image-wrap img { transform: scale(1.03); }
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card__date {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.blog-card__title {
  font-size: clamp(1rem, 1.2vw + 0.7rem, 1.25rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.blog-card__read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
  align-self: flex-start;
}
.blog-card__read-more:hover,
.blog-card__read-more:focus-visible {
  color: #9B2D23;
  border-color: #9B2D23;
}

@media (max-width: 1024px) {
  .blog-list__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .blog-list__grid { grid-template-columns: 1fr; }
}

/* ====================================================
   TESTIMONIAL
   ==================================================== */
.testimonial {
  padding-block: var(--section-py);
  background-color: var(--bg);
}
.testimonial .section-title { margin-bottom: clamp(40px, 6vw, 56px); }
.testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.testimonial-card { border-top: 1px solid var(--border); padding-top: 32px; }
.testimonial-card__quote {
  font-size: clamp(0.9375rem, 0.5vw + 0.875rem, 1.05rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card__footer img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-card__author {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-style: normal;
  color: var(--fg);
}
.testimonial-card__role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .testimonial__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .testimonial__grid { grid-template-columns: 1fr; }
}

/* ====================================================
   CTA BANNER
   ==================================================== */
.cta-banner {
  padding-block: clamp(56px, 8vw, 96px);
  background-color: var(--primary);
  text-align: center;
}
.cta-banner__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--primary-fg);
  margin-bottom: 16px;
}
.cta-banner__subtitle {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* ====================================================
   STORY (about.html)
   ==================================================== */
.story {
  padding-block: var(--section-py);
  background-color: var(--surface);
}
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.story__content .section-title { margin-bottom: 28px; }
.story__body {
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.story__body:last-child { margin-bottom: 0; }
.story__image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width: 720px) {
  .story__inner { grid-template-columns: 1fr; }
}

/* ====================================================
   TEAM
   ==================================================== */
.team {
  padding-block: var(--section-py);
  background-color: var(--bg);
}
.team .section-title { margin-bottom: clamp(40px, 6vw, 56px); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.team-card { display: flex; flex-direction: column; }
.team-card__avatar-wrap {
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 24px;
}
.team-card__avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.team-card:hover .team-card__avatar-wrap img { transform: scale(1.03); }
.team-card__body { flex: 1; }
.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 4px;
}
.team-card__role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 1024px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* ====================================================
   VALUES (about.html)
   ==================================================== */
.values {
  padding-block: var(--section-py);
  background-color: var(--surface);
}
.values .section-title { margin-bottom: clamp(40px, 6vw, 56px); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.value-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(28px, 3vw, 40px);
}
.value-card__icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  display: block;
}
.value-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 12px;
}
.value-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 1024px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values__grid { grid-template-columns: 1fr; }
}

/* ====================================================
   CONTACT FORM (contact.html)
   ==================================================== */
.contact-form {
  padding-block: var(--section-py);
  background-color: var(--bg);
}
.contact-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-form__form-wrap .section-title { margin-bottom: 32px; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-field label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--fg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  resize: vertical;
  line-height: 1.55;
  transition: border-color 150ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-field textarea { min-height: 140px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 32px;
  background-color: var(--primary);
  color: var(--primary-fg);
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background-color 150ms ease;
}
.form-submit:hover,
.form-submit:focus-visible {
  background-color: #9B2D23;
  border-color: #9B2D23;
}
.form-submit:active { opacity: 0.8; }

.contact-form__info-wrap { padding-top: clamp(0px, 6vw, 48px); }
.contact-form__info-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 28px;
}
.contact-form__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-form__icon { color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.contact-form__label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-form__value {
  font-size: var(--fs-sm);
  color: var(--fg);
  line-height: 1.5;
}
a.contact-form__value:hover,
a.contact-form__value:focus-visible { color: var(--primary); }

@media (max-width: 1024px) {
  .contact-form__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ====================================================
   HOURS (contact.html)
   ==================================================== */
.hours {
  padding-block: var(--section-py);
  background-color: var(--surface);
}
.hours .section-title { margin-bottom: clamp(32px, 5vw, 48px); }
.hours__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.hours-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hours-card__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hours-card__value {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1024px) {
  .hours__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hours__grid { grid-template-columns: 1fr; }
}

/* ====================================================
   POST DETAIL (post.html)
   ==================================================== */
.post-detail {
  padding-block: var(--section-py);
  background-color: var(--bg);
}
.post-detail__inner {
  max-width: 760px;
  margin-inline: auto;
}
.post-header { margin-bottom: clamp(32px, 5vw, 48px); }
.post-header__title {
  font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 24px;
}
.post-header__meta { display: flex; align-items: center; gap: 16px; }
.post-header__author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-header__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-header__author-name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg);
}
.post-header__date {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.post-hero-image {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.post-hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.post-body__paragraph {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  color: var(--fg);
  line-height: 1.8;
}
.post-body__pullquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin-block: 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw + 0.8rem, 1.4rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  background-color: var(--surface);
}
.post-footer { border-top: 1px solid var(--border); padding-top: 32px; }
.post-footer__back { display: inline-flex; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  padding-block: 48px;
  background-color: var(--fg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer__logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: 12px;
}
.footer__logo-text { display: inline-block; }
.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(249,246,241,0.45);
  line-height: 1.5;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}
.footer__link {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249,246,241,0.55);
  transition: color 150ms ease;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--bg); }
.footer__social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 2px;
}
.footer__social-link {
  color: rgba(249,246,241,0.55);
  transition: color 150ms ease;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.footer__social-link:hover,
.footer__social-link:focus-visible { color: var(--bg); }

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__social { justify-content: flex-start; }
}

/* ====================================================
   Reduced motion
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === PRESETS (drag-drop editor) ===
   Section-scoped variants override defaults via [data-section-type="…"].
   Do NOT edit these markers — used by template-preset-spec.md.
=== */

.preset-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9375rem, 0.4vw + 0.875rem, 1.0625rem);
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1rem;
}

.preset-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.preset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 12px 28px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.preset-button:hover {
  background: #9B2D23;
  border-color: #9B2D23;
}

.preset-image { max-width: 100%; height: auto; display: block; }

.preset-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  width: 100%;
}

.preset-form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.preset-form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--fg);
  transition: border-color 150ms ease;
}
.preset-form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.preset-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 14px 32px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 150ms ease;
}
.preset-form-submit:hover {
  background: #9B2D23;
  border-color: #9B2D23;
}

.preset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.preset-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
}

.preset-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Section-scoped overrides */
[data-section-type="hero"] .preset-button { padding: 14px 36px; font-size: 0.8125rem; }
[data-section-type="nav"] .preset-button { padding: 8px 20px; font-size: 0.6875rem; }
[data-section-type="cta-banner"] .preset-button {
  background: var(--primary-fg);
  color: var(--primary);
  border-color: var(--primary-fg);
}
[data-section-type="cta-banner"] .preset-button:hover {
  background: rgba(249,246,241,0.85);
}
[data-section-type="footer"] .preset-button {
  background: transparent;
  color: rgba(249,246,241,0.65);
  border-color: rgba(249,246,241,0.3);
}
[data-section-type="footer"] .preset-button:hover {
  background: rgba(249,246,241,0.1);
}
