:root {
  --bg: #fcf9f8;
  --bg-alt: #f3ece6;
  --panel: rgba(255, 251, 247, 0.9);
  --panel-strong: #fff9f5;
  --text: #1b1c1c;
  --text-soft: #5b4a43;
  --primary: #4b1d0d;
  --primary-soft: #7a3f26;
  --secondary: #a84716;
  --accent: #d7b08b;
  --line: rgba(119, 83, 58, 0.18);
  --shadow: 0 18px 45px rgba(61, 32, 19, 0.12);
  --shadow-hover: 0 24px 55px rgba(61, 32, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(218, 186, 150, 0.36), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(168, 71, 22, 0.12), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(252, 249, 248, 0.82);
  border-bottom: 1px solid rgba(119, 83, 58, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  font-family: "Libre Caslon Text", serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.brand__sub {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(71, 26, 10, 0.18);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.header-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 30px rgba(71, 26, 10, 0.22);
}

.header-btn .material-symbols-outlined {
  font-size: 1.1rem;
}

.main-content {
  width: min(1440px, calc(100% - clamp(1rem, 3vw, 2.5rem) * 2));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero__content,
.hero__visual,
.material-card {
  background: var(--panel);
  border: 1px solid rgba(119, 83, 58, 0.16);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border-radius: 28px;
  backdrop-filter: blur(14px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: rgba(168, 71, 22, 0.08);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Libre Caslon Text", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  color: var(--primary);
}

.hero p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  max-width: 48rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(119, 83, 58, 0.14);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero__visual {
  position: relative;
  min-height: 100%;
  border-radius: 32px;
  overflow: hidden;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 15, 0.08), rgba(23, 18, 15, 0.18));
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transform: scale(1.01);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.section-head__text {
  max-width: 50rem;
}

.section-head__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(71, 26, 10, 0.07);
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.section-head h2 {
  margin: 0;
  font-family: "Libre Caslon Text", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  color: var(--primary);
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.material-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  grid-column: span 12;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.96), rgba(248, 239, 231, 0.94));
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 71, 22, 0.22);
}

.material-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eadfd4;
}

.material-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 14, 12, 0.02), rgba(19, 14, 12, 0.22));
  pointer-events: none;
}

.material-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.5rem;
}

.material-card__title {
  margin: 0 0 0.7rem;
  font-family: "Libre Caslon Text", serif;
  color: var(--primary);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.material-card__text {
  margin: 0;
  margin-top: auto;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1rem;
}

.footer {
  margin-top: 2rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 2rem;
  border-top: 1px solid rgba(119, 83, 58, 0.14);
  background: rgba(252, 249, 248, 0.7);
}

.footer__inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .material-card {
    grid-column: span 6;
  }
}

@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  }

  .material-card {
    grid-column: span 4;
  }
}

@media (min-width: 1320px) {
  .material-card:nth-child(5),
  .material-card:nth-child(6) {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-btn {
    width: 100%;
    justify-content: center;
  }

  .main-content {
    width: min(100%, calc(100% - 1rem * 2));
  }

  .material-card__body {
    padding: 1.15rem;
  }
}
