:root {
  --bg: #f7f1e8;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 248, 240, 0.84);
  --surface-strong: #fffdf8;
  --text: #241815;
  --muted: #68554e;
  --line: rgba(54, 28, 18, 0.12);
  --accent: #b4522f;
  --accent-strong: #8c3717;
  --shadow: 0 24px 60px rgba(80, 36, 16, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 82, 47, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(209, 166, 87, 0.15), transparent 28%),
    linear-gradient(180deg, #f3ebdf 0%, #f7f1e8 40%, #fbf8f2 100%);
  font-family: "Manrope", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(255, 250, 242, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #d89a52);
  color: #fff;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.95rem;
}

.brand-copy small,
.top-nav a,
.section-kicker,
.content-kicker,
.eyebrow,
.panel-label {
  color: var(--muted);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.top-nav a {
  font-size: 0.95rem;
}

.hero,
.section,
.content-block {
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.92), rgba(251, 243, 230, 0.85));
  box-shadow: var(--shadow);
}

.hero-single {
  grid-template-columns: 1fr;
}

.hero h1,
.section-heading h2,
.content-head h3,
.note-card h3,
.guide-card h3,
.profile-card h3 {
  font-family: "Noto Serif SC", serif;
}

.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 1.08;
}

.hero-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.panel-card,
.note-card,
.quote-card,
.guide-card,
.qr-card,
.link-card,
.contact-card,
.content-block,
.profile-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
}

.hero-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 82, 47, 0.35);
}

.quick-card strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.35rem;
}

.quick-card small,
.quick-kicker {
  color: var(--muted);
  line-height: 1.7;
}

.quick-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.quick-card-strong {
  background: linear-gradient(160deg, rgba(180, 82, 47, 0.94), rgba(155, 76, 42, 0.9));
  color: #fff7f2;
}

.quick-card-strong .quick-kicker,
.quick-card-strong small {
  color: rgba(255, 247, 242, 0.84);
}

.panel-card {
  align-self: stretch;
  width: 100%;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.panel-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.section {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.52);
  border: 1px solid rgba(54, 28, 18, 0.08);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.content-head h3 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.4rem);
}

.section-kicker,
.content-kicker,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
}

.note-card,
.quote-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.note-card p,
.quote-card p,
.content-desc,
.content-item p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.quote-card {
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, rgba(180, 82, 47, 0.96), rgba(140, 55, 23, 0.9));
}

.quote-card p {
  color: #fff4ee;
  font-size: 1.1rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card,
.contact-card,
.qr-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.link-card,
.content-item,
.contact-card,
.qr-card figcaption {
  padding: 18px 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-card-wide {
  grid-column: 1 / -1;
}

.story-card h3 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", serif;
  font-size: 1.45rem;
}

.story-card.story-card-wide {
  padding: 18px 20px;
}

.story-card.story-card-wide h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.story-card.story-card-wide .button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.index-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.index-card-head h3 {
  margin: 0;
}

.index-card-head span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: right;
}

.story-card p,
.story-list li {
  color: var(--muted);
  line-height: 1.85;
}

.story-list {
  margin: 0;
  padding-left: 20px;
}

.profile-stack {
  display: grid;
  gap: 18px;
}

.profile-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.profile-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.profile-card p,
.profile-card li {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

.profile-card a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  margin-top: 40px;
  padding: 34px;
  border-top: 1px solid rgba(54, 28, 18, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 249, 241, 0.92);
  box-shadow: var(--shadow);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand strong {
  color: var(--accent-strong);
  font-size: 1.8rem;
}

.footer-brand span,
.footer-meta p,
.footer-nav a {
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(54, 28, 18, 0.08);
}

.footer-meta p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.embed-section {
  min-height: 70vh;
}

.embed-frame-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow);
}

.embed-frame {
  display: block;
  width: 100%;
  min-height: 80vh;
  border: 0;
  background: #fff;
}

.embed-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.ai-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-bottom: 24px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ai-works-block {
  margin-top: 18px;
}

.ai-works-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 18px;
}

.index-section .content-block {
  margin-top: 0;
}

.index-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.index-item {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding: 24px;
}

.index-item h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.ai-work-item {
  min-height: 100%;
  padding: 28px 32px;
}

.ai-work-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ai-work-title-link {
  color: inherit;
  text-decoration: none;
}

.ai-work-title-link:hover {
  color: var(--accent-strong);
}

.ai-work-links a {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}

.ai-work-links a:hover {
  color: var(--accent-strong);
}

.ai-work-qr {
  background: var(--surface-strong);
}

.ai-work-qr img {
  padding: 20px;
}

.qr-card {
  background: var(--surface-strong);
}

.qr-card img {
  padding: 20px;
}

.section-stack {
  display: grid;
  gap: 18px;
}

.content-block {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.content-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.content-desc {
  max-width: 520px;
  margin: 0;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.content-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.content-item:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 82, 47, 0.4);
  box-shadow: 0 18px 30px rgba(80, 36, 16, 0.08);
}

.content-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.inline-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 12px;
  vertical-align: middle;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4e5d8;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.link-card {
  display: flex;
  align-items: center;
  min-height: 96px;
  background: var(--surface);
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--surface-strong);
}

.contact-image-link {
  display: block;
  height: 100%;
}

.contact-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 20px;
}

.contact-links a {
  font-weight: 700;
}

.profile-contact-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
}

.profile-contact-copy {
  min-width: 0;
}

.profile-contact-media {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.92);
}

.profile-contact-media img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .site-header,
  .section-heading,
  .content-head,
  .hero,
  .intro-grid,
  .ai-layout,
  .contact-layout,
  .contact-card,
  .profile-contact-card {
    grid-template-columns: 1fr;
  }

  .site-header,
  .section-heading,
  .content-head {
    display: grid;
  }

  .hero {
    padding: 28px;
  }

  .story-grid,
  .link-grid,
  .qr-grid,
  .hero-quick-grid,
  .ai-works-grid,
  .index-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--container), calc(100% - 20px));
  }

  .site-header {
    top: 10px;
    border-radius: 26px;
  }

  .top-nav {
    gap: 12px;
  }

  .section,
  .content-block {
    padding: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
