/*
Theme Name: TAS Scholar-Practitioner Version 3
Theme URI: https://www.tanaikseng.org/
Description: Self-contained scholar-practitioner theme for Tan Aik Seng. Version 3 includes its own page templates, forms, Insights archive and homepage safeguard.
Author: Tan Aik Seng
Version: 3.0.0
Text Domain: tas-scholar-practitioner-version-3
*/

:root {
  --tas-navy: #152238;
  --tas-teal: #2f6f6d;
  --tas-brass: #b28a4a;
  --tas-ivory: #f6f2e9;
  --tas-ink: #20262e;
  --tas-white: #ffffff;
  --tas-line: #ddd5c7;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tas-ink);
  background: var(--tas-white);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-main {
  min-height: 60vh;
}

.tas-site-header {
  position: sticky;
  z-index: 9999;
  top: 0;
  border-bottom: 1px solid rgba(21, 34, 56, 0.10);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.tas-header-inner,
.tas-footer-inner {
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}

.tas-header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tas-site-brand img {
  display: block;
  width: min(250px, 48vw);
  height: auto;
}

.tas-primary-menu,
.tas-primary-menu ul,
.tas-fallback-menu {
  display: flex;
  align-items: center;
  gap: 19px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tas-primary-menu a,
.tas-fallback-menu a {
  color: var(--tas-navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.tas-primary-menu a:hover,
.tas-fallback-menu a:hover {
  color: var(--tas-teal);
}

.tas-menu-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--tas-line);
  border-radius: 999px;
  color: var(--tas-navy);
  background: var(--tas-white);
  font-weight: 800;
}

.tas-site-footer {
  padding: 52px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #0d1726;
}

.tas-footer-inner {
  display: grid;
  gap: 28px;
}

.tas-footer-inner strong {
  color: var(--tas-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.tas-site-footer a {
  color: var(--tas-white);
}

.tas-single {
  width: min(calc(100% - 32px), 860px);
  margin: 78px auto 110px;
}

.tas-single h1 {
  color: var(--tas-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1.02;
}

.tas-single__meta {
  margin: 18px 0 30px;
  color: #69717c;
  font-size: 0.82rem;
  font-weight: 700;
}

.tas-single__content {
  font-size: 1.03rem;
  line-height: 1.82;
}

.tas-single__content h2 {
  margin-top: 44px;
  color: var(--tas-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

@media (min-width: 760px) {
  .tas-footer-inner {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 1050px) {
  .tas-menu-toggle {
    display: inline-flex;
  }

  .tas-primary-menu {
    position: absolute;
    top: 80px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 19px;
    border: 1px solid var(--tas-line);
    border-radius: 16px;
    background: var(--tas-white);
    box-shadow: 0 18px 55px rgba(21, 34, 56, 0.16);
  }

  .tas-primary-menu.is-open {
    display: block;
  }

  .tas-primary-menu ul,
  .tas-primary-menu,
  .tas-fallback-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .tas-primary-menu a,
  .tas-fallback-menu a {
    display: block;
    padding: 9px 7px;
  }
}
