/* Kathakology — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=optional');

:root {
  --moss: #2f3a2b;
  --moss-deep: #232b20;
  --ivory: #f6f3ee;
  --blush: #e1cbcb;
  --ink: #2a2a25;
  --line-on-dark: rgba(246, 243, 238, 0.18);
  --line-on-light: rgba(42, 42, 37, 0.14);
  --max: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 112.5%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 3px;
}

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

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

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-on-light);
}

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

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.active { color: #6b4747; }
.nav-links a:hover { color: #6b4747; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line-on-light);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 28px;
    border-top: 1px solid var(--line-on-light);
  }
  .nav-toggle { display: block; }
}

/* ---------- sections ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.on-moss {
  background: var(--moss);
  color: var(--ivory);
}
.on-moss h1, .on-moss h2, .on-moss h3 { color: var(--ivory); }
.on-moss .rule { background: var(--line-on-dark); }
.on-moss .muted { color: rgba(246,243,238,0.72); }

.on-blush-deep {
  background: var(--moss-deep);
  color: var(--ivory);
}

.muted { color: rgba(42,42,37,0.68); }

.rule {
  width: 64px;
  height: 1px;
  background: var(--line-on-light);
  margin: 22px 0 28px;
}

.eyebrow-mark {
  color: #9a5f5f;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
}

/* ---------- hero (home) ---------- */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 820px;
  color: var(--ivory);
}

.hero .lede {
  max-width: 520px;
  margin-top: 26px;
  font-size: 1.15rem;
  color: rgba(246,243,238,0.82);
}

.hero-mark {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: 34vw;
  max-width: 420px;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 1150px) {
  .hero-mark { opacity: 0.5; width: 50vw; max-width: 380px; }
}
@media (max-width: 780px) {
  .hero-mark { opacity: 0.16; right: -12%; width: 72vw; max-width: 360px; }
}

.page-hero {
  padding: 150px 0 70px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .lede { max-width: 620px; margin-top: 18px; font-size: 1.08rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid currentColor;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-light {
  color: var(--ivory);
  border-color: rgba(246,243,238,0.5);
}
.btn-light:hover { background: var(--ivory); color: var(--moss); }

.btn-dark {
  color: var(--ink);
  border-color: rgba(42,42,37,0.4);
}
.btn-dark:hover { background: var(--ink); color: var(--ivory); }

/* ---------- generic layout blocks ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

.list-block { margin-top: 8px; }
.list-block .item {
  padding: 26px 0;
  border-top: 1px solid var(--line-on-light);
}
.on-moss .list-block .item { border-top: 1px solid var(--line-on-dark); }
.list-block .item:last-child { border-bottom: 1px solid var(--line-on-light); }
.on-moss .list-block .item:last-child { border-bottom: 1px solid var(--line-on-dark); }

.list-block .item h3 { font-size: 1.4rem; margin-bottom: 8px; }
.list-block .item p { margin: 0; max-width: 640px; }

.stack { display: flex; flex-direction: column; gap: 18px; }

table.simple {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
table.simple th, table.simple td {
  text-align: left;
  padding: 14px 10px;
  border-top: 1px solid var(--line-on-light);
  font-size: 0.98rem;
}
table.simple th {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
}
table.simple tr:last-child td { border-bottom: 1px solid var(--line-on-light); }

form.simple-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin-top: 12px;
}
form.simple-form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: rgba(42,42,37,0.7);
}
form.simple-form input,
form.simple-form select,
form.simple-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-on-light);
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
form.simple-form textarea { min-height: 120px; resize: vertical; }
form.simple-form button {
  justify-self: start;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  padding: 14px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}
form.simple-form button:hover { background: #6b4747; }

.note-box {
  border-left: 2px solid #9a5f5f;
  padding: 18px 22px;
  background: rgba(154,95,95,0.06);
  max-width: 640px;
  margin-top: 20px;
}

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--moss-deep);
  color: rgba(246,243,238,0.75);
  padding: 56px 0 32px;
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
footer.site-footer h4 {
  color: var(--ivory);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
footer.site-footer .foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.social-link { display: flex; align-items: center; gap: 8px; }
.social-link svg { flex: none; opacity: 0.85; }
.social-links-inline { display: flex; flex-direction: column; gap: 10px; }
footer.site-footer .foot-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.82rem;
  text-align: center;
  color: rgba(246,243,238,0.5);
}

/* ---------- diagonal narrative sections ---------- */

.diag {
  position: relative;
  padding: 130px 0 150px;
}
.diag.slant-down { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px)); }
.diag.slant-up   { clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); }
.diag + .diag { margin-top: -60px; }

.diag .measure {
  max-width: 640px;
}
.diag .measure.right { margin-left: auto; text-align: left; }

.pull {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
}

.overlap-outer { position: relative; }
.overlap-tag {
  position: absolute;
  z-index: 3;
  width: 220px;
  background: var(--blush);
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.overlap-tag img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.overlap-tag.top-right { top: -40px; right: 8%; }
.overlap-tag.bottom-left { bottom: -40px; left: 6%; }

@media (max-width: 780px) {
  .diag { padding: 90px 0 100px; }
  .diag + .diag { margin-top: -40px; }
  .diag.slant-down { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 34px)); }
  .diag.slant-up   { clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%); }
  .overlap-tag { position: static; width: 160px; margin: 24px auto 0; box-shadow: none; }
}

/* ---------- mosaic grid ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.mosaic .tile {
  padding: 30px 26px;
  border: 1px solid var(--line-on-light);
  background: #fff;
}
.mosaic .tile.dark { background: var(--moss); color: var(--ivory); border-color: transparent; }
.mosaic .tile.dark p { color: rgba(246,243,238,0.8); }
.mosaic .tile.blush { background: var(--blush); color: #4a2f2f; border-color: transparent; }
.mosaic .tile h3 { font-size: 1.35rem; margin-bottom: 10px; }
.mosaic .tile p { margin: 0; font-size: 0.96rem; }
.mosaic .s2 { grid-column: span 2; }
.mosaic .s3 { grid-column: span 3; }
.mosaic .s4 { grid-column: span 4; }
.mosaic .s6 { grid-column: span 6; }
@media (max-width: 780px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .s2, .mosaic .s3, .mosaic .s4 { grid-column: span 1; }
}

/* ---------- coming soon ---------- */
.coming-soon-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid rgba(42,42,37,0.3);
  margin-left: 10px;
  vertical-align: middle;
  color: rgba(42,42,37,0.6);
}
