:root {
  --bg: #fbf7f1;
  --surface: rgba(255, 255, 252, 0.94);
  --surface-strong: #fffefb;
  --surface-muted: #f5ede1;
  --text: #3a342d;
  --muted: #756d62;
  --brand: #b65435;
  --brand-dark: #8d3920;
  --accent: #0f766e;
  --accent-soft: #e4f3f0;
  --border: rgba(58, 52, 45, 0.1);
  --shadow: 0 18px 40px rgba(76, 58, 40, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(182, 84, 53, 0.07), transparent 34%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, #fcf8f2 0%, var(--bg) 40%, #fffdf9 100%);
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--brand-dark);
}

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

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.4rem 0 1rem;
}

.site-photo {
  margin: 0 auto 1.5rem;
}

.site-photo__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.22), rgba(255, 254, 250, 0.08)),
    #dbe7ef;
}

.site-photo__frame img {
  width: 100%;
  height: clamp(180px, 28vw, 270px);
  object-fit: cover;
  object-position: center center;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(76, 58, 40, 0.07);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, var(--brand) 0%, #df7d57 100%);
  color: #fffaf2;
  display: grid;
  place-items: center;
  font-family: "Alegreya", "Palatino Linotype", serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(182, 84, 53, 0.2);
}

.brand__title {
  display: block;
  font-family: "Alegreya", "Palatino Linotype", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand__subtitle {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav a {
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 1rem 0 2rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 254, 250, 0.98) 0%, rgba(251, 246, 237, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5rem -5rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 84, 53, 0.1), transparent 68%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Alegreya", "Palatino Linotype", serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.28rem;
}

.hero p {
  max-width: 42rem;
  margin: 0 0 1rem;
  font-size: 1.06rem;
}

.hero__aside {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(76, 58, 40, 0.08);
}

.logo-card {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.logo-card img {
  width: min(150px, 100%);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--brand);
  color: #fffaf2;
  box-shadow: 0 14px 26px rgba(182, 84, 53, 0.2);
}

.button--primary:hover {
  color: #fffaf2;
  background: var(--brand-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(58, 52, 45, 0.1);
  color: var(--text);
}

.button--secondary:hover {
  color: var(--text);
  background: #fffdf9;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-stack {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.anchor-section {
  scroll-margin-top: 8rem;
}

.anchor-section__header {
  margin-bottom: 1rem;
}

.anchor-section__header p {
  margin: 0;
  color: var(--muted);
}

.content-stack {
  display: grid;
  gap: 1.25rem;
}

.card {
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card--warm {
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.98) 0%, rgba(250, 245, 237, 0.98) 100%);
}

.card--accent {
  background: linear-gradient(180deg, rgba(246, 252, 251, 0.98) 0%, rgba(232, 245, 242, 0.98) 100%);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
}

.list-clean,
.list-spaced {
  padding-left: 1.25rem;
}

.list-spaced li + li {
  margin-top: 0.55rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.pill {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(58, 52, 45, 0.07);
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.info-list {
  display: grid;
  gap: 0.95rem;
}

.info-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Alegreya", "Palatino Linotype", serif;
  font-size: 1.08rem;
}

.downloads {
  display: grid;
  gap: 0.75rem;
}

.download-link {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(58, 52, 45, 0.08);
  text-decoration: none;
  color: inherit;
}

.download-link span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
  gap: 1.2rem;
  align-items: start;
}

.embed-frame,
.shop-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: #fff;
}

.embed-frame {
  min-height: 175px;
}

.shop-frame {
  min-height: 900px;
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand);
  background: rgba(182, 84, 53, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.site-footer {
  padding: 0 0 2.6rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 253, 248, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(76, 58, 40, 0.07);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero,
.card,
.site-header__bar,
.site-footer__inner {
  animation: rise 500ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header__bar,
  .hero__inner,
  .page-grid,
  .image-feature {
    grid-template-columns: 1fr;
  }

  .site-header__bar {
    border-radius: 1.5rem;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    top: 0;
    padding-top: 0.7rem;
  }

  .site-header__bar {
    padding: 1rem;
  }

  .nav a,
  .button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .hero {
    margin-top: 0.75rem;
    padding: 1.5rem;
  }
}
