:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111111;
  background: #fffaf3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top left, rgba(255, 230, 210, 0.65), transparent 25%),
    radial-gradient(circle at top right, rgba(255, 210, 230, 0.55), transparent 18%),
    #fffaf3;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.brand a {
  display: inline-grid;
  gap: 0.25rem;
}

.brand-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #5e4d48;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  color: #5e4d48;
}

.hero-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  padding: 3rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #a27a64;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-copy p {
  max-width: 42rem;
  margin: 1.7rem 0 2rem;
  color: #5e4d48;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: #2f1d14;
  color: #fff;
}

.button.secondary {
  background: rgba(47, 29, 20, 0.06);
  color: #2f1d14;
}

.hero-image-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 29, 20, 0.08);
  border-radius: 2rem;
  padding: 1.25rem;
  box-shadow: 0 18px 70px rgba(43, 26, 15, 0.12);
}

.hero-image-card img {
  border-radius: 1.75rem;
  width: 100%;
  display: block;
}

.hero-image-label {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  color: #5e4d48;
}

.book-section,
.atelier-section,
.diary-section,
.story-section,
.community-section {
  margin-top: 4rem;
  padding: 2.5rem 0;
}

.book-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(270px, 1fr) minmax(400px, 1.4fr);
  align-items: start;
}

.book-image {
  display: grid;
  place-items: center;
}

.book-image img {
  border-radius: 2rem;
  width: min(100%, 320px);
}

.badge {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: #f7e6d8;
  color: #8a5f44;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.book-copy h2 {
  margin: 1rem 0 1rem;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.book-copy p {
  max-width: 45rem;
  color: #5e4d48;
}

.feature-list {
  margin-top: 2rem;
}

.feature-list h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: 'Fraunces', serif;
}

.feature-list ol {
  padding-left: 1.35rem;
  color: #5e4d48;
  display: grid;
  gap: 0.8rem;
}

.feature-list li {
  margin-bottom: 0.35rem;
}

.quote {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  font-style: italic;
  color: #4a3b33;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header span,
.story-copy span,
.community-copy span {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a27a64;
  margin-bottom: 0.75rem;
}

.section-header h2,
.story-copy h2,
.community-copy h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 1rem;
}

.section-header p,
.diary-copy p,
.story-copy p,
.community-copy p,
.diary-note {
  color: #5e4d48;
  max-width: 46rem;
}

.atelier-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.atelier-grid article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 29, 20, 0.08);
  border-radius: 1.75rem;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.atelier-grid article img {
  border-radius: 1.35rem;
  width: 100%;
}

.atelier-grid article strong {
  display: block;
  color: #8a5f44;
  margin-bottom: 0.65rem;
}

.atelier-grid article h3 {
  margin: 0;
  font-size: 1.15rem;
}

.diary-section {
  background: rgba(255, 248, 241, 0.85);
  border-radius: 2rem;
  padding: 2.5rem;
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.diary-grid button {
  border: none;
  border-radius: 0.95rem;
  padding: 0.85rem 0;
  background: #f1e1d5;
  color: #7f5b45;
  cursor: pointer;
  font-weight: 700;
}

.diary-grid button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.diary-card {
  display: grid;
  gap: 1.2rem;
}

.diary-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: center;
}

.diary-preview img {
  border-radius: 1.5rem;
}

.diary-preview h3 {
  margin: 0.35rem 0 0;
}

.story-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.4fr);
  align-items: center;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  border-radius: 2rem;
}

.story-copy p {
  margin: 1rem 0;
}

.community-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(320px, 1.1fr) minmax(240px, 360px);
  align-items: start;
  background: rgba(47, 29, 20, 0.03);
  border-radius: 2rem;
  padding: 2.5rem;
}

.newsletter-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(47, 29, 20, 0.16);
  border-radius: 1rem;
}

.newsletter-form button {
  border: none;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  background: #2f1d14;
  color: white;
  cursor: pointer;
}

.community-footer {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  color: #5e4d48;
}

@media (max-width: 980px) {
  .hero-section,
  .book-section,
  .story-section,
  .community-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 1.5rem;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.5rem 0 3rem;
  }

  .site-header {
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 9vw, 3.3rem);
  }

  .book-copy,
  .story-copy,
  .community-copy {
    padding: 0;
  }
}
