/* ブラウザ標準の余白・枠線をそろえる（従来の表示を維持） */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
small { font-size: 80%; }

button {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  text-transform: none;
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

summary { display: list-item; }
dl, dd, h1, h2, h3, h4, h5, h6, p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img, svg, iframe { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
[hidden] { display: none; }

/* ============================================
   南長崎子ども食堂＆寺子屋  -  styles
   絵本のような、紙の上の手作りデザイン
   ============================================ */

:root {
  --paper:        #FBF3E2;
  --paper-2:      #FDF8EC;
  --card:         #FFFCF3;
  --ink:          #3D2B1F;
  --ink-soft:     #5A4232;
  --ink-mute:     #836454;
  --line:         #E8D8B7;
  --line-2:       #D9C39B;

  --orange:       #E26A2C;
  --orange-deep:  #C84F1A;
  --tangerine:    #F4A957;
  --yellow:       #F2C969;
  --green:        #6B9C4E;
  --green-deep:   #4A7339;
  --sky:          #6EA8C7;
  --pink:         #E89C9C;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --shadow-soft: 0 1px 0 #e7d4ad, 0 8px 18px rgba(94, 60, 23, 0.08);
  --shadow-card: 0 1px 0 #ecd9b1, 0 18px 30px -18px rgba(94, 60, 23, 0.22);

  --serif-jp:  "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --sans-jp:   "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans-jp);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
  background-color: var(--paper);
  /* 控えめな紙テクスチャ：細かい斑点と縦の繊維風 */
  background-image:
    radial-gradient(circle at 18% 22%, rgba(180,130,60,0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(180,130,60,0.045) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 88%, rgba(180,130,60,0.04) 0 1px, transparent 1.5px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%);
  background-size: 180px 180px, 240px 240px, 200px 200px, 100% 100%;
  -webkit-font-smoothing: antialiased;
}

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

/* OpenMoji icon component */
.om-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  line-height: 1;
}
.om-icon img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px; }

h1, h2, h3, h4 {
  font-family: var(--sans-jp);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.4;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- セクション見出し ---------- */
.section {
  padding: 88px 0 72px;
  position: relative;
}
.section + .section { padding-top: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 15px;
  color: var(--orange-deep);
  background: #FFF1DA;
  border: 1.5px dashed var(--tangerine);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  white-space: nowrap;
}
.eyebrow .om-icon { width: 18px; height: 18px; }

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
  display: inline-block;
  position: relative;
  padding: 0 4px;
}
.section-title::after {
  /* 手書き風のマーカー下線 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 10px;
  background: var(--yellow);
  opacity: 0.55;
  border-radius: 8px;
  transform: rotate(-0.6deg);
  z-index: -1;
}

.section-lead {
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 60ch;
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 226, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1.5px dashed var(--line-2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--serif-jp);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.logo .logo-emoji {
  display: inline-flex;
  width: 28px;
  height: 28px;
  transform: rotate(-8deg);
}

.nav {
  display: none;
  gap: 22px;
}
.nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  position: relative;
  padding: 4px 2px;
}
.nav a:hover {
  color: var(--orange-deep);
  text-decoration: none;
}
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--tangerine);
  border-radius: 3px;
}

.menu-btn {
  background: none;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px 22px;
  background: var(--paper-2);
  border-bottom: 1.5px dashed var(--line-2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 16px;
}
.mobile-nav a:hover { background: #FFF1DA; text-decoration: none; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 56px 0 36px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero-title {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.25;
  margin-bottom: 20px;
  text-align: center;
}
.phrase {
  display: inline-block;
  white-space: nowrap;
}
.hero-title .amp {
  color: var(--orange);
  font-size: 0.85em;
  display: inline-block;
  transform: translateY(-0.05em);
  margin: 0 0.05em;
}
.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 2;
  margin: 0 auto 28px;
  max-width: 30ch;
  text-align: center;
}

/* 次回開催カード = ファーストビューで最重要 */
.next-card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--line);
  transform: rotate(-1deg);
  text-align: center;
}
.next-card::before {
  /* マスキングテープ */
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 88px; height: 22px;
  background: rgba(242, 201, 105, 0.72);
  border-left: 1px dashed rgba(255,255,255,0.5);
  border-right: 1px dashed rgba(255,255,255,0.5);
}
.next-card .label {
  display: inline-block;
  font-family: var(--serif-jp);
  font-size: 14px;
  color: var(--orange-deep);
  background: #FFEDD3;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.next-date {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1.05;
  color: var(--orange-deep);
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}
.next-date .day-num { font-size: 1em; }
.next-date .month { font-size: 1em; color: var(--orange-deep); margin-right: 4px;}
.next-date .dow {
  display: inline-block;
  font-size: 0.46em;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 2px 12px;
  vertical-align: middle;
  margin-left: 8px;
  transform: translateY(-0.4em);
  font-weight: 600;
}
.next-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1.5px dashed var(--line-2);
  padding: 8px 14px;
  border-radius: 14px;
  white-space: nowrap;
}
.next-time .om-icon { width: 22px; height: 22px; }

.next-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  font-size: 14px;
  color: var(--ink-mute);
  justify-content: center;
}
.next-meta dt { font-family: var(--serif-jp); color: var(--green-deep); text-align: right; }
.next-meta dd { margin: 0; text-align: left; }

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif-jp);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 16px;
  white-space: nowrap;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.btn .om-icon { width: 22px; height: 22px; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange-deep);
  box-shadow: 3px 3px 0 var(--orange-deep);
}
.btn-primary:hover { box-shadow: 2px 2px 0 var(--orange-deep); }

@media (min-width: 860px) {
  .hero-grid {
    gap: 40px;
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-lead { max-width: none; }
}

/* ヒーローの装飾 (太陽・雲) */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.deco-sun { top: 40px; right: -20px; }
.deco-cloud-1 { top: 24px; left: -60px; opacity: 0.85; display: none; }
.deco-cloud-2 { bottom: 20px; right: 8%; opacity: 0.7; display: none; }

@media (min-width: 1100px) {
  .deco-cloud-1, .deco-cloud-2 { display: block; }
}

/* ---------- カード（共通） ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

/* ---------- About ---------- */
.about-intro {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin: 28px 0 32px;
  position: relative;
}
.about-intro::before {
  content: "“";
  position: absolute;
  top: -8px; left: 18px;
  font-family: var(--serif-jp);
  font-size: 72px;
  color: var(--tangerine);
  line-height: 1;
}
.about-intro p { font-size: 18px; padding-left: 36px; color: var(--ink); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.feature:nth-child(1) { transform: rotate(-0.6deg); }
.feature:nth-child(2) { transform: rotate(0.4deg); }
.feature:nth-child(3) { transform: rotate(-0.3deg); }
.feature .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFEDD3;
  width: 56px; height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  transform: rotate(-6deg);
}
.feature .ico .om-icon { width: 34px; height: 34px; }
.feature h3 {
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--orange-deep);
}
.feature p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; }

.about-outro {
  text-align: center;
  font-family: var(--serif-jp);
  font-size: 19px;
  color: var(--ink);
  padding: 18px 8px 0;
}
.about-outro::before, .about-outro::after {
  content: "✿"; color: var(--tangerine); margin: 0 10px; font-size: 16px;
}

/* ---------- Info ---------- */
.info-list {
  list-style: none;
  margin: 28px 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.info-row {
  display: grid;
  grid-template-columns: 44px 130px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.info-row .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: #FFF1DA;
  border-radius: 50%;
}
.info-row .ic .om-icon { width: 26px; height: 26px; }
.info-row .key {
  font-family: var(--serif-jp);
  color: var(--green-deep);
  font-size: 16px;
  padding-top: 8px;
}
.info-row .val { color: var(--ink); font-size: 16px; padding-top: 4px; }
.info-row .val .note {
  display: block;
  color: var(--ink-mute);
  font-size: 13.5px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .info-row { grid-template-columns: 40px 1fr; }
  .info-row .key { padding-top: 0; grid-column: 2; }
  .info-row .val { padding-top: 0; grid-column: 2; }
  .info-row .ic { grid-row: span 2; }
}

.info-note {
  background: #FFF7E6;
  border: 1.5px dashed var(--tangerine);
  border-radius: var(--r-md);
  padding: 18px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}
.info-note p + p { margin-top: 4px; }

/* ---------- 活動のようす ---------- */
#gallery { scroll-margin-top: 80px; }
.gallery {
  max-width: 420px;
  margin: 26px auto 0;
}
.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 26px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-frame {
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(125deg, #F4A957, #F2C969 32%, #E89C9C 65%, #A3BD91);
}
.gallery-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 5px solid var(--card);
  border-radius: 21px;
  background: var(--paper-2);
}
.gallery-caption {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 12px 14px;
}
.gallery-number {
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
  padding: 3px 0;
}
.gallery-caption h3 { font-size: 21px; margin-bottom: 6px; }
.gallery-caption p { font-size: 15px; color: var(--ink-soft); }
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.gallery-controls[hidden] { display: none; }
.gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--line);
}
.gallery-arrow:hover { color: var(--orange-deep); background: #FFF1DA; }
.gallery-arrow:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  border-radius: 8px;
}
.gallery-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--line-2);
  border-radius: 50%;
}
.gallery-dot[aria-current="true"]::before {
  width: 22px;
  background: var(--orange);
  border-radius: 10px;
}

@media (max-width: 640px) {
  .gallery { max-width: 300px; }
  .gallery-track { gap: 14px; border-radius: 21px; }
  .gallery-frame { padding: 4px; border-radius: 21px; }
  .gallery-frame img { border-width: 3px; border-radius: 17px; }
  .gallery-caption { gap: 12px; padding: 18px 4px 12px; }
  .gallery-caption h3 { font-size: 18px; }
  .gallery-caption p { font-size: 13.5px; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: grid; gap: 10px; }
.faq {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  position: relative;
  font-family: var(--serif-jp);
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--orange-deep);
  border-bottom: 2.5px solid var(--orange-deep);
  border-radius: 1px;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .q-mark {
  background: var(--orange);
  color: #fff;
  font-family: var(--serif-jp);
  width: 28px; height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}
.faq .answer {
  padding: 0 22px 20px 62px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2;
}
.faq .answer::before {
  content: "A.";
  display: inline-block;
  font-family: var(--serif-jp);
  color: var(--green-deep);
  font-weight: 600;
  margin-right: 8px;
}

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}
@media (min-width: 860px) { .access-grid { grid-template-columns: 1.2fr 0.95fr; } }

.map-wrap {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--serif-jp);
  font-size: 15px;
}

.access-card { padding: 26px; }
.access-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
  font-family: var(--serif-jp);
}
.access-card .addr {
  color: var(--ink-mute);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.station {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1.5px dashed var(--line-2);
}
.station:last-of-type { border-bottom: 1.5px dashed var(--line-2); }
.station .pin {
  width: 56px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #FDE5F0;
  font-size: 13px;
  color: #B6007A;
  font-family: var(--serif-jp);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.station .pin.s2 {
  background: #E4EEF7;
  color: #0078BF;
}
.station .pin.s2 { background: #E4F0F6; color: var(--sky); }
.station .info-text { font-size: 15px; color: var(--ink); }
.station .info-text small { color: var(--ink-mute); font-size: 13px; display: block; }

.access-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.9;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.contact-card .ic-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFEDD3;
  width: 60px; height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
  transform: rotate(-6deg);
}
.contact-card .ic-big .om-icon { width: 36px; height: 36px; }
.contact-card h3 { font-size: 21px; margin-bottom: 8px; font-family: var(--serif-jp); }
.contact-card p { color: var(--ink-soft); font-size: 15.5px; }

.contact-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line-2);
}
.contact-meta dt {
  font-family: var(--serif-jp);
  color: var(--green-deep);
  font-size: 13px;
  margin-bottom: 2px;
}
.contact-meta dd { margin: 0 0 10px; font-size: 16px; }
.contact-meta dd a { font-family: var(--serif-jp); }

.contact-card.bento {
  background: linear-gradient(180deg, #FFF5DE, #FFFCF3 90%);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding: 50px 0 40px;
  background: #2F2017;
  color: #F2E3C8;
}
.footer .container { display: grid; gap: 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr 1fr; } }

.footer .logo { color: #F8E9C9; font-size: 22px; margin-bottom: 14px; }
.footer p { color: #D9C2A0; font-size: 14.5px; line-height: 2; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}
.footer-links a {
  color: #F2E3C8;
  font-size: 14.5px;
  border-bottom: 1.5px dashed #6E5238;
  padding-bottom: 2px;
}
.footer-links a:hover { color: var(--yellow); border-color: var(--yellow); text-decoration: none; }

.attribution {
  font-size: 12px;
  color: #9C8467;
  text-align: center;
  padding: 8px 0 0;
}
.attribution a { color: #D9C2A0; border-bottom: 1px dashed #6E5238; }
.attribution a:hover { color: var(--yellow); text-decoration: none; }

.copy {
  border-top: 1.5px dashed #4A3424;
  padding-top: 20px;
  font-size: 13px;
  color: #B79C77;
  text-align: center;
}

/* ---------- Section dividers ---------- */
.wavy-divider {
  display: block;
  margin: 0 auto;
  color: var(--line-2);
}

/* small utility */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--ink-mute); }

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--tangerine);
  outline-offset: 3px;
  border-radius: 6px;
}
