/* Thich Nhât Hanh Sangha — standalone styles */

:root {
  --ink:        #1f1b16;
  --ink-soft:   #4a4239;
  --paper:      #f5efe3;
  --paper-warm: #ebe2d1;
  --rule:       #c9bfa9;
  --accent:     #8a5a3b;
  --accent-deep:#5a3a25;
  --max-width:  720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(at 12% 8%, rgba(138,90,59,0.06), transparent 55%),
    radial-gradient(at 88% 92%, rgba(90,58,37,0.05), transparent 55%);
  background-attachment: fixed;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* --- masthead --- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(245,239,227,0.85);
  backdrop-filter: blur(4px);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.masthead img.logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
  flex: 0 0 auto;
}
.masthead .site-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.masthead .site-sub {
  display: block;
  font-size: 0.78rem;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* --- article --- */
article.page {
  padding: 64px 0 48px;
}

h1.title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}

h2.lede {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.4;
  color: var(--accent-deep);
  margin: 0 0 38px;
  max-width: 36ch;
}

h3 {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 44px 0 14px;
}

p {
  margin: 0 0 1.15em;
  color: var(--ink);
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .15s ease, border-color .15s ease;
}
a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- media --- */
figure {
  margin: 34px 0;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  box-shadow: 0 14px 38px -20px rgba(31,27,22,0.35);
}
figcaption {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: right;
}

.media-text {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 32px;
  align-items: start;
  margin: 32px 0;
}
.media-text figure { margin: 0; }
@media (max-width: 640px) {
  .media-text { grid-template-columns: 1fr; }
}

/* --- pull-quote --- */
blockquote.quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--accent-deep);
  border: none;
  margin: 42px 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--accent);
  position: relative;
}
blockquote.quote::before {
  content: "“";
  position: absolute;
  left: -10px;
  top: -28px;
  font-size: 5rem;
  color: var(--rule);
  line-height: 1;
  pointer-events: none;
}
blockquote.quote .attr {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: "Manrope", sans-serif;
}

/* --- info card --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.info-grid .cell {
  padding: 26px 22px;
  border-right: 1px solid var(--rule);
}
.info-grid .cell:last-child { border-right: none; }
.info-grid h3 {
  margin: 0 0 12px;
}
.info-grid p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .info-grid .cell:last-child { border-bottom: none; }
}

/* --- ornamental rule --- */
.ornament {
  text-align: center;
  margin: 50px 0;
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 1em;
  padding-left: 1em;
}

/* --- footer --- */
footer.site-footer {
  margin-top: 60px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}
footer.site-footer a {
  color: var(--ink-soft);
  border-bottom-color: transparent;
}
footer.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
footer.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* --- legal pages --- */
article.legal h1.title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 28px;
}
article.legal h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--accent-deep);
  margin: 38px 0 10px;
}
article.legal h3 {
  margin: 24px 0 6px;
}
article.legal p, article.legal li {
  font-size: 1.02rem;
  line-height: 1.65;
}
article.legal ul {
  padding-left: 1.2em;
}

/* gentle entry */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
article > *, .masthead-inner > * {
  animation: rise 0.7s ease both;
}
h1.title { animation-delay: 0.05s; }
h2.lede  { animation-delay: 0.18s; }
