:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --paper-dark: #ece8dc;
  --ink: #263c31;
  --ink-soft: #536257;
  --rust: #a8583a;
  --gold: #d3a75d;
  --line: rgba(38, 60, 49, 0.18);
  --serif: Georgia, "Noto Serif Tamil", serif;
  --sans: system-ui, "Noto Sans Tamil", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 7.4%;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(168, 88, 58, 0.55);
  border-radius: 50%;
  color: var(--rust);
  font-size: 20px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.8rem);
}

.site-nav a,
.footer-nav a {
  font-size: 0.78rem;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--rust);
}

.header-note {
  color: var(--rust);
  font-size: 1.05rem;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 4%;
  overflow: hidden;
  padding: 6rem 10.5% 7rem 12%;
  background:
    radial-gradient(ellipse at 6% 85%, rgba(196, 177, 130, 0.13), transparent 40%),
    var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 550px;
  padding-bottom: 1rem;
}

.eyebrow,
.section-label,
.art-index,
.card-number,
.place-placeholder > span:last-child,
.gallery-placeholder > span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--rust);
}

.eyebrow-line {
  width: 27px;
  height: 1px;
  background: var(--rust);
}

.hero h1 {
  margin: 1.2rem 0 0.6rem -0.07em;
  font-family: var(--serif);
  font-size: clamp(3.9rem, 8.2vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.hero-tagline {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.hero-tamil {
  margin: 0.65rem 0 0;
  color: var(--rust);
  font-size: 0.94rem;
}

.hero-intro {
  max-width: 390px;
  margin: 1.4rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rust);
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  color: var(--rust);
  font-size: 1rem;
}

.hero-art {
  position: relative;
  display: flex;
  min-height: 415px;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 48% 48% 3px 3px;
  background:
    linear-gradient(180deg, rgba(247, 224, 172, 0.18), transparent 52%),
    linear-gradient(145deg, #d6ba80 0%, #d7ad75 40%, #a67c59 100%);
}

.sun {
  position: absolute;
  top: 17%;
  left: 50%;
  width: clamp(95px, 13vw, 170px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #f2dfad;
  box-shadow: 0 0 65px rgba(248, 231, 183, 0.42);
}

.horizon {
  position: absolute;
  right: -5%;
  bottom: 17%;
  left: -5%;
  height: 36%;
  border-radius: 50% 50% 0 0;
}

.horizon-back {
  transform: rotate(-6deg);
  background: #71816a;
}

.horizon-front {
  right: -12%;
  bottom: 7%;
  left: -16%;
  height: 31%;
  transform: rotate(7deg);
  background: #455e4d;
}

.palm {
  position: absolute;
  z-index: 1;
  bottom: 24%;
  left: 20%;
  width: 3px;
  height: 38%;
  transform: rotate(-9deg);
  transform-origin: bottom;
  background: #3c4f40;
}

.palm::before,
.palm::after {
  position: absolute;
  top: -4px;
  left: -37px;
  width: 75px;
  height: 28px;
  border-top: 3px solid #3c4f40;
  border-radius: 50%;
  content: "";
}

.palm::before {
  transform: rotate(25deg);
}

.palm::after {
  transform: rotate(-30deg);
}

.palm-right {
  bottom: 20%;
  left: 78%;
  height: 28%;
  transform: rotate(8deg) scale(0.75);
  transform-origin: bottom;
}

.palm span::before,
.palm span::after {
  position: absolute;
  top: 3px;
  left: -28px;
  width: 58px;
  height: 20px;
  border-top: 2px solid #3c4f40;
  border-radius: 50%;
  content: "";
}

.palm span::before {
  transform: rotate(48deg);
}

.palm span::after {
  transform: rotate(-52deg);
}

.art-caption,
.art-index {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: #fffaf0;
}

.art-caption {
  bottom: 12%;
  left: 10%;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.4;
}

.art-index {
  right: 9%;
  bottom: 9%;
  font-size: 0.55rem;
}

.hero-bottom {
  position: absolute;
  right: 7.4%;
  bottom: 2rem;
  left: 7.4%;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bottom a {
  text-decoration: none;
}

.section {
  padding: 7rem 12%;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink-soft);
}

.section-label span {
  color: var(--rust);
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 12%;
  margin-top: 3.2rem;
}

.about-grid h2,
.section-heading h2,
.places-grid h2,
.gallery-heading h2,
.news-content h2,
.error-content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.3vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

h2 em,
.error-content h1 em {
  color: var(--rust);
  font-weight: 500;
}

.about-copy {
  padding-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.location-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.74rem;
}

.location-note span {
  color: var(--rust);
  font-size: 1.3rem;
}

.about-rule {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.heritage-section {
  background: var(--ink);
  color: var(--paper);
}

.heritage-section .section-label {
  color: #c3cdbf;
}

.section-heading,
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2,
.gallery-heading h2 {
  margin-top: 1.2rem;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.section-heading > p,
.gallery-heading > p {
  margin: 0 0 0.45rem;
  color: #c3cdbf;
  font-size: 0.79rem;
}

.heritage-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: 3.4rem;
  padding: 2.4rem;
  border: 1px solid rgba(246, 243, 235, 0.23);
  background:
    radial-gradient(ellipse at 73% 10%, rgba(213, 167, 93, 0.2), transparent 40%),
    linear-gradient(125deg, rgba(246, 243, 235, 0.04), transparent 60%);
}

.card-sun {
  position: absolute;
  top: -90px;
  right: 10%;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 243, 235, 0.16);
  border-radius: 50%;
}

.card-sun::after {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(246, 243, 235, 0.16);
  border-radius: 50%;
  content: "";
}

.card-number {
  position: relative;
  z-index: 1;
  color: #d7ba80;
  font-size: 0.58rem;
}

.heritage-card > p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0.85rem 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.4;
}

.coming-soon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #c3cdbf;
  font-size: 0.72rem;
}

.coming-soon span {
  color: #d7ba80;
}

.places-section {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.places-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 12%;
  margin-top: 3rem;
}

.places-grid h2 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.section-intro {
  max-width: 365px;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.place-placeholder {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(213, 167, 93, 0.11), transparent 58%);
}

.place-symbol {
  color: var(--rust);
  font-size: 1.5rem;
}

.place-placeholder p {
  max-width: 245px;
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
}

.place-placeholder > span:last-child {
  color: var(--ink-soft);
  font-size: 0.52rem;
}

.gallery-section {
  padding: 6.5rem 12%;
  background: var(--paper-dark);
}

.gallery-heading h2 {
  color: var(--ink);
}

.gallery-heading > p {
  color: var(--ink-soft);
}

.gallery-placeholder {
  position: relative;
  display: flex;
  min-height: 325px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid rgba(38, 60, 49, 0.14);
  text-align: center;
}

.gallery-pattern {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.32;
}

.gallery-pattern span {
  border-right: 1px solid var(--line);
}

.gallery-pattern span:last-child {
  border: 0;
}

.gallery-placeholder p,
.gallery-placeholder > span {
  position: relative;
  z-index: 1;
}

.gallery-placeholder p {
  max-width: 380px;
  margin: 0 auto 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.4;
}

.gallery-placeholder > span {
  color: var(--rust);
  font-size: 0.55rem;
}

.community-section {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 12%;
  background: #e7e8dc;
  text-align: center;
}

.community-copy {
  position: relative;
  z-index: 1;
}

.community-copy .section-label {
  justify-content: center;
}

.community-copy h2 {
  margin: 1.5rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.community-copy > p {
  max-width: 510px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.community-tamil {
  position: relative;
  z-index: 1;
  margin: 1.7rem 0 0;
  color: var(--rust);
  font-size: 0.95rem;
}

.community-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(60vw, 470px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(38, 60, 49, 0.08);
  border-radius: 50%;
  color: rgba(168, 88, 58, 0.09);
  font-size: clamp(10rem, 24vw, 20rem);
}

.news-section {
  padding: 7rem 12%;
}

.news-content {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 10%;
  margin-top: 2.4rem;
}

.news-content h2 {
  font-size: clamp(2.5rem, 4.3vw, 4rem);
}

.news-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.5rem;
  color: var(--ink-soft);
}

.news-note > span {
  color: var(--rust);
}

.news-note p {
  max-width: 320px;
  margin: 0;
  font-size: 0.85rem;
}

.site-footer {
  padding: 3.7rem 7.4% 1.2rem;
  background: var(--ink);
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: start;
  gap: 2rem;
  padding-bottom: 3.1rem;
}

.footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-brand span {
  color: #d7ba80;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.footer-top > p {
  margin: 0;
  color: #c3cdbf;
  font-family: var(--serif);
  font-size: 1rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
}

.footer-nav a {
  color: #d1d8ce;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 243, 235, 0.2);
  color: #c3cdbf;
  font-size: 0.66rem;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.error-content {
  max-width: 600px;
}

.error-content .brand {
  margin-bottom: 3rem;
}

.error-content h1 {
  margin: 1.25rem 0;
}

.error-content > p:not(.eyebrow) {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

@media (max-width: 850px) {
  .site-header {
    flex-wrap: wrap;
    padding: 1.1rem 6%;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem 1.5rem;
    padding-top: 0.35rem;
  }

  .hero {
    min-height: 600px;
    grid-template-columns: 1.05fr 0.85fr;
    gap: 2%;
    padding-right: 7%;
    padding-left: 7%;
  }

  .hero-art {
    min-height: 370px;
  }

  .section,
  .gallery-section,
  .news-section {
    padding-right: 8%;
    padding-left: 8%;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 76px;
    gap: 0.75rem;
    padding: 0.8rem 6%;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .site-nav {
    gap: 0.5rem 1rem;
  }

  .site-nav a {
    font-size: 0.71rem;
  }

  .header-note {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 4.5rem 7% 6.6rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 15vw, 6rem);
  }

  .hero-art {
    width: min(100%, 410px);
    min-height: 340px;
    justify-self: center;
  }

  .hero-bottom {
    right: 7%;
    bottom: 1.5rem;
    left: 7%;
    font-size: 0.56rem;
  }

  .section,
  .gallery-section,
  .news-section {
    padding: 4.7rem 7%;
  }

  .about-grid,
  .places-grid,
  .news-content {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-top: 2.2rem;
  }

  .about-rule {
    gap: 0.6rem;
    margin-top: 3rem;
    font-size: 0.82rem;
  }

  .section-heading,
  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .section-heading > p,
  .gallery-heading > p {
    margin: 0;
  }

  .heritage-card {
    min-height: 275px;
    margin-top: 2.2rem;
    padding: 1.5rem;
  }

  .places-grid {
    gap: 2rem;
  }

  .place-placeholder {
    min-height: 210px;
  }

  .gallery-placeholder {
    min-height: 280px;
  }

  .community-section {
    min-height: 390px;
    padding: 4.5rem 7%;
  }

  .community-copy h2 {
    font-size: clamp(1.9rem, 8.5vw, 3rem);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .footer-nav {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
