/* ============================
   Deep Wisdom House Landing Page
   Static companion page for Timescape
   ============================ */

:root {
  --dwh-bg: #f7f3eb;
  --dwh-bg-soft: #fffdf8;
  --dwh-paper: rgba(255, 253, 248, 0.84);
  --dwh-ink: #171411;
  --dwh-muted: #655d52;
  --dwh-soft: #8f8475;
  --dwh-line: rgba(34, 28, 22, 0.15);
  --dwh-line-strong: rgba(34, 28, 22, 0.28);
  --dwh-bronze: #9b6d35;
  --dwh-bronze-dark: #66421f;
  --dwh-bronze-soft: rgba(155, 109, 53, 0.16);
  --dwh-shadow: 0 28px 70px rgba(39, 29, 18, 0.14);
  --dwh-radius: 30px;
  --dwh-font-display: "Cinzel", Georgia, serif;
  --dwh-font-body: "EB Garamond", Georgia, serif;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.dwh-body {
  min-height: 100%;
  margin: 0;
  font-family: var(--dwh-font-body);
  font-size: 20px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: var(--dwh-ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(196, 161, 102, 0.24) 0, transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.92) 0, transparent 28%),
    linear-gradient(135deg, #efe7da 0%, #fbf8f1 45%, #eee4d4 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dwh-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 70, 41, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 70, 41, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
}

a {
  color: var(--dwh-bronze-dark);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.dwh-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.dwh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px 26px;
}

.dwh-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--dwh-ink);
}

.dwh-brand:hover,
.dwh-brand:focus-visible {
  text-decoration: none;
}

.dwh-brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--dwh-line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 12px 32px rgba(48, 33, 18, 0.11);
  overflow: hidden;
}

.dwh-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dwh-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dwh-brand-title {
  font-family: var(--dwh-font-display);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.05;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dwh-brand-subtitle {
  font-size: 14px;
  color: var(--dwh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dwh-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dwh-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--dwh-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  color: var(--dwh-muted);
  font-family: var(--dwh-font-display);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dwh-nav a:hover,
.dwh-nav a:focus-visible {
  color: var(--dwh-ink);
  border-color: var(--dwh-line-strong);
  text-decoration: none;
}

.dwh-main {
  position: relative;
}

.dwh-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 74px);
  align-items: center;
  min-height: 520px;
  padding: clamp(36px, 7vw, 82px);
  border: 1px solid var(--dwh-line);
  border-radius: var(--dwh-radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(246, 240, 229, 0.76)),
    var(--dwh-bg-soft);
  box-shadow: var(--dwh-shadow);
  overflow: hidden;
  animation: dwh-enter 700ms ease both;
}

.dwh-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(102, 66, 31, 0.14);
  border-radius: calc(var(--dwh-radius) - 12px);
  pointer-events: none;
}

.dwh-hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -18%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(155, 109, 53, 0.12);
  background: radial-gradient(circle, rgba(155, 109, 53, 0.11), transparent 68%);
  pointer-events: none;
}

.dwh-hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(315px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(102, 66, 31, 0.08),
    0 24px 58px rgba(72, 47, 23, 0.12);
}

.dwh-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(44, 25, 8, 0.08));
}

.dwh-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.dwh-kicker {
  margin: 0 0 13px;
  font-family: var(--dwh-font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dwh-bronze-dark);
}

.dwh-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--dwh-font-display);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  color: var(--dwh-ink);
}

.dwh-intro {
  max-width: 660px;
  margin: 30px 0 0;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.38;
  color: #332b23;
}

.dwh-statement {
  display: grid;
  grid-template-columns: 120px minmax(0, 830px);
  justify-content: center;
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(54px, 8vw, 94px) clamp(8px, 4vw, 44px) 44px;
}

.dwh-rule {
  width: 1px;
  min-height: 100%;
  justify-self: center;
  background: linear-gradient(to bottom, transparent, var(--dwh-line-strong), transparent);
}

.dwh-prose {
  max-width: 830px;
}

.dwh-prose p {
  margin: 0 0 1.18em;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.55;
  color: #29231d;
}

.dwh-prose p:first-child::first-letter {
  float: left;
  padding: 0.08em 0.08em 0 0;
  font-family: var(--dwh-font-display);
  font-size: 4.4em;
  line-height: 0.76;
  color: var(--dwh-bronze-dark);
}

.dwh-prose cite {
  font-style: italic;
}

.dwh-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 30px;
}

.dwh-field-card {
  min-height: 230px;
  padding: 30px 28px;
  border: 1px solid var(--dwh-line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 16px 44px rgba(39, 29, 18, 0.07);
}

.dwh-field-card h2 {
  margin: 0 0 16px;
  font-family: var(--dwh-font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dwh-bronze-dark);
}

.dwh-field-card p {
  margin: 0;
  color: var(--dwh-muted);
  font-size: 20px;
  line-height: 1.45;
}

.dwh-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-top: 22px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--dwh-line-strong);
  border-radius: var(--dwh-radius);
  background:
    radial-gradient(circle at 0 0, rgba(155, 109, 53, 0.12), transparent 40%),
    rgba(255, 253, 248, 0.74);
}

.dwh-contact h2 {
  margin: 0;
  font-family: var(--dwh-font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.dwh-contact address {
  display: grid;
  gap: 3px;
  font-style: normal;
  color: var(--dwh-muted);
  text-align: right;
}

.dwh-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.dwh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--dwh-line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--dwh-ink);
  font-family: var(--dwh-font-display);
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dwh-button:hover,
.dwh-button:focus-visible {
  text-decoration: none;
  border-color: rgba(102, 66, 31, 0.48);
  background: rgba(255, 253, 248, 0.92);
}

.dwh-button-primary {
  background: #201a15;
  border-color: #201a15;
  color: #fff7e9;
}

.dwh-button-primary:hover,
.dwh-button-primary:focus-visible {
  background: #33271d;
  border-color: #33271d;
}

.dwh-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 28px 8px 4px;
  color: var(--dwh-soft);
  font-size: 16px;
  text-align: center;
}

.dwh-footer a {
  color: var(--dwh-muted);
}

@keyframes dwh-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dwh-hero {
    animation: none;
  }
}

@media (max-width: 900px) {
  .dwh-page {
    width: min(100% - 22px, 680px);
    padding-top: 12px;
  }

  .dwh-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .dwh-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .dwh-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 24px 40px;
    text-align: left;
  }

  .dwh-hero::before {
    inset: 13px;
  }

  .dwh-hero-mark {
    width: min(230px, 72vw);
    order: -1;
  }

  .dwh-intro {
    margin-top: 22px;
  }

  .dwh-statement {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 6px 30px;
  }

  .dwh-rule {
    width: 100%;
    height: 1px;
    min-height: 1px;
    background: linear-gradient(to right, transparent, var(--dwh-line-strong), transparent);
  }

  .dwh-fields {
    grid-template-columns: 1fr;
  }

  .dwh-field-card {
    min-height: 0;
  }

  .dwh-contact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dwh-contact address {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body.dwh-body {
    font-size: 18px;
  }

  .dwh-brand-mark {
    width: 46px;
    height: 46px;
  }

  .dwh-brand-subtitle {
    white-space: normal;
  }

  .dwh-nav a {
    flex: 1 1 auto;
  }

  .dwh-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .dwh-prose p:first-child::first-letter {
    font-size: 3.55em;
  }

  .dwh-actions {
    display: grid;
  }

  .dwh-button {
    width: 100%;
  }
}
