:root {
  --bg: #f3eee7;
  --bg-soft: #f8f3ee;
  --panel: #fdfbf8;
  --card: #fffdfb;
  --text: #1b1714;
  --muted: #5f5753;
  --line: rgba(27, 23, 20, 0.12);
  --brand: #8d6849;
  --brand-deep: #4e3328;
  --gold: #d9c2a2;
  --shadow: 0 24px 60px rgba(28, 22, 18, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f4efe9 0%, #f8f2ea 100%);
  color: var(--text);
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 231, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-links a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--brand);
}

.hero-copy h1,
.section-head h2,
.about h2,
.newsletter-box h2,
.quote-box blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
}

.lead {
  max-width: 620px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.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, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.button.primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.button.tertiary {
  background: transparent;
  border-color: var(--line);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.56));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 1rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-panel h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1;
  margin: 0 0 0.9rem;
}

.hero-panel p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.text-link,
.link-arrow {
  color: var(--brand-deep);
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: rgba(255,255,255,0.18);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.article-grid,
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.article-card,
.book-card,
.newsletter-box,
.quote-box,
.page-hero,
.page-list,
.contact-box,
.bio-card {
  background: rgba(255,255,255,0.38);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article-card,
.book-card {
  padding: 1.6rem;
}

.homepage-bio {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem;
}

.homepage-bio-photo {
  width: 141px;
  height: 141px;
  flex: 0 0 141px;
  object-fit: cover;
  border: 4px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(38, 29, 21, 0.16);
}

.homepage-bio h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.homepage-bio-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.article-card {
  display: flex;
  flex-direction: column;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(141, 104, 73, 0.08);
  color: var(--brand-deep);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.article-card h3,
.book-card h3,
.detail-title,
.page-title {
  margin: 1.1rem 0 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.04;
}

.article-card h3,
.book-card h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.article-card p,
.book-card p,
.about-copy p,
.page-body p,
.contact-info p,
.list-item p {
  margin: 0;
  color: var(--muted);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row a {
  color: var(--brand-deep);
  font-weight: 700;
}

.book-cover {
  display: grid;
  place-items: center;
  height: 220px;
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.book-cover-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.book-visual-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.book-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cover-1 {
  background: linear-gradient(135deg, #3b312d, #a48068);
}

.cover-2 {
  background: linear-gradient(135deg, #2a4045, #7b8b7d);
}

.cover-3 {
  background: linear-gradient(135deg, #4f413f, #b9976a);
}

.quote-section {
  padding-top: 40px;
}

.quote-box {
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-mark {
  margin: 0;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
}

.quote-box blockquote {
  font-size: clamp(2.3rem, 4vw, 4rem);
  max-width: 760px;
  margin: 0 auto;
}

.quote-author {
  margin-top: 1rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.about h2 {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
}

.about-copy {
  display: grid;
  gap: 1.1rem;
}

.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.newsletter-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  max-width: 600px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(500px, 100%);
}

.newsletter-form input {
  flex: 1;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  padding: 0.8rem 1rem;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.page-shell {
  padding: 72px 0 90px;
}

.page-hero {
  padding: clamp(2rem, 4vw, 3rem);
}

.page-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin-bottom: 1rem;
}

.page-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-list {
  margin-top: 2rem;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.list-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.published-article {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border-bottom: none;
}

.published-article + .list-item {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.published-article .detail-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.published-article .article-intro {
  max-width: 720px;
  margin: 0.4rem 0 2.2rem;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}

.published-article .article-content {
  max-width: 760px;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.82;
  text-align: justify;
  hyphens: auto;
}

.published-article .article-content p {
  margin: 0 0 1.25rem;
  color: var(--text);
}

.published-article .article-content p:last-child {
  margin-bottom: 0;
}

.published-article .meta-row {
  margin-top: 2rem;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item .meta-row {
  margin-top: 0.9rem;
}

.page-body {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 820px;
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article-head {
  margin-bottom: 2rem;
}

.article-cover {
  margin: 2rem auto;
  text-align: center;
}

.document-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(141, 104, 73, 0.24);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(217, 194, 162, 0.28));
  color: var(--brand);
  box-shadow: 0 12px 28px rgba(78, 51, 40, 0.1);
}

.document-mark svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.article-body {
  padding: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.legal {
  text-align: justify;
  color: var(--text);
  text-wrap: pretty;
  hyphens: none;
}

.legal h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--brand-deep);
}

.legal p,
.legal li {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.04rem;
}

.legal strong {
  font-weight: 700;
}

.legal a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.page-body h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 2rem;
  font-family: "Cormorant Garamond", serif;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.book-visual {
  height: 440px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1.1;
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.info-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.info-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: clamp(1.8rem, 2.5vw, 2.6rem);
}

.contact-info {
  display: grid;
  gap: 0.7rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .newsletter-box,
  .contact-box,
  .detail-grid,
  .article-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-box,
  .footer-wrap,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .newsletter-form {
    width: 100%;
  }

  .homepage-bio {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 40px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

.article-head .page-title {
  margin-top: 1rem;
}

.article-head .page-lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  font-style: italic;
}

.article-body {
  margin-top: 2.2rem;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-body p {
  margin: 0 0 1.3rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article-body h2 {
  margin: 2.6rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.article-pull {
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  font-style: italic;
}

.article-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.article-sources h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.article-sources li {
  margin-bottom: 0.6rem;
  overflow-wrap: anywhere;
}

.article-sources a {
  color: var(--brand-deep);
  text-decoration: underline;
}

.article-grid--single {
  grid-template-columns: minmax(0, 720px);
}

.draft-note {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--brand);
  border-radius: 14px;
  background: rgba(217, 194, 162, 0.25);
  color: var(--brand-deep);
  font-size: 0.9rem;
}

.legal ul {
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
}

.legal a,
.checkout-form a,
.checkout-alt a {
  color: var(--brand-deep);
  text-decoration: underline;
}

.checkout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin: 1rem 0 0.8rem;
}

.checkout-price {
  margin: 1.6rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.checkout-price small {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.checkout-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.7rem 1.1rem;
  color: var(--text);
}

.field textarea {
  min-height: 180px;
  border-radius: 20px;
  resize: vertical;
}

.article-content {
  white-space: pre-wrap;
}

.admin-articles {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.admin-articles h2 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.admin-article-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.check input {
  margin-top: 0.25rem;
  flex: none;
}

.checkout-button {
  min-height: 54px;
}

.checkout-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.checkout-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--brand-deep);
}

.checkout-status.is-error {
  color: #9a2f22;
}

.checkout-alt {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field input:focus-visible,
.check input:focus-visible,
.button:focus-visible,
.main-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .checkout {
    grid-template-columns: 1fr;
  }

  .checkout-product {
    max-width: 260px;
  }
}

.article-date {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
