/*
Theme Name: The Study at Hillview
Theme URI: https://thestudyathillview.com
Author: The Study at Hillview
Description: A minimal native block theme for The Study at Hillview.
Version: 1.1.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: hillview
*/

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lora.woff2") format("woff2");
}

@font-face {
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/lexend-deca.woff2") format("woff2");
}

:root {
  --maroon: #4b1011;
  --deep: #2a090a;
  --gold: #d8a868;
  --cream: #f1d5a7;
  --paper: #f8f5ef;
  --ink: #201617;
  --muted: #665d59;
  --line: rgb(75 16 17 / 18%);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend Deca", Arial, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1, h2, h3, p { margin-block-start: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.5rem, 4.5vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
p, li { max-width: 68ch; }
em { color: var(--gold); font-style: italic; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.wp-site-blocks { overflow: hidden; }
.shell { width: min(100% - 40px, 1240px); margin-inline: auto; }
.section { padding-block: clamp(5rem, 10vw, 7.8rem); }
.section-lede, .lede { font-size: 1.0625rem; line-height: 1.7; }
.section-lede { color: var(--muted); max-width: 65ch; }
.eyebrow {
  color: var(--maroon);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.eyebrow::before {
  display: inline-block;
  width: 25px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  color: #fff;
}
.site-header-inner {
  width: min(100% - 40px, 1240px);
  min-height: 82px;
  margin-inline: auto;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
}
.brand-mark, .footer-mark {
  display: block;
  width: 220px;
  height: 120px;
  flex: 0 0 220px;
  background: url("assets/logo.png") center / 150px auto no-repeat;
}
.site-navigation { margin-left: auto; }
.site-navigation .wp-block-navigation-item__content {
  padding: 8px 0;
  font-size: .875rem;
  opacity: .86;
  transition: color 180ms ease, opacity 180ms ease;
}
.site-navigation .wp-block-navigation-item__content:hover { color: var(--gold); opacity: 1; }
.header-cta, .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.header-cta { border-color: rgb(255 255 255 / 65%); }
.header-cta:hover, .button:hover { transform: translateY(-2px); }
.header-cta::after, .button::after, .text-link::after { content: "↗"; }

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 100vh);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 6vw;
  align-items: center;
  padding: 120px max(20px, calc((100vw - 1176px) / 2)) 80px;
  overflow: hidden;
  background: var(--maroon);
  color: #fff;
}
.hero-copy { max-width: 700px; animation: hillview-enter 600ms var(--ease) both; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 11ch; margin-bottom: 30px; color: #fff; }
.hero .lede { max-width: 65ch; color: rgb(255 255 255 / 86%); }
.actions { margin-top: 36px; }
.actions > * + * { margin-left: 24px; }
.gold { background: var(--gold); color: var(--maroon); }
.gold:hover { background: #e5bb78; }
.maroon { background: var(--maroon); color: #fff; }
.text-link {
  display: inline-flex;
  gap: 12px;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  font-size: .875rem;
  font-weight: 600;
}
.note {
  margin-top: 24px;
  padding-left: 12px;
  border-left: 1px solid rgb(255 255 255 / 30%);
  color: rgb(255 255 255 / 72%);
  font-size: .875rem;
}
.hero-mark {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  animation: hillview-mark-enter 700ms 100ms var(--ease) both;
}
.hillview-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(540px, 96%);
  aspect-ratio: 1;
  background: url("assets/logo.png") center / contain no-repeat;
}
.orbit {
  position: absolute;
  width: 78%;
  height: 92%;
  border: 1px solid rgb(216 168 104 / 45%);
  border-radius: 50%;
  animation: hillview-orbit 24s linear infinite;
}
.orbit::after {
  position: absolute;
  inset: 8% -12%;
  border: 1px solid rgb(241 213 167 / 18%);
  border-radius: 50%;
  content: "";
  transform: rotate(27deg);
}

.academics { padding-block: clamp(4rem, 7vw, 6rem); background: var(--paper); }
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}
.programme {
  min-height: 360px;
  padding: 28px;
  background: var(--gold);
  transition: box-shadow 280ms ease, transform 280ms ease;
}
.programme:nth-child(2) { background: var(--cream); transform: translateY(24px); }
.programme:nth-child(3) { background: var(--maroon); color: #fff; }
.programme:hover, .programme:focus-within { box-shadow: 0 18px 42px rgb(42 9 10 / 16%); transform: translateY(-5px); }
.programme:nth-child(2):hover, .programme:nth-child(2):focus-within { transform: translateY(19px); }
.number { display: flex; justify-content: space-between; font-family: "Lora", Georgia, serif; }
.card-label {
  margin: 58px 0 12px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.programme h3 { margin-bottom: 14px; font-size: clamp(1.8rem, 2.7vw, 2.5rem); }
.programme p:not(.card-label) { font-size: 1rem; line-height: 1.65; }
.programme-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 13px 15px;
  border: 2px solid currentColor;
  background: var(--maroon);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.programme:nth-child(3) .programme-link { background: var(--gold); color: var(--maroon); }

.journey { color: #fff; }
.intro.light h2 { color: #fff; }
.intro.light .eyebrow { color: var(--gold); }
.intro.light .section-lede { color: rgb(255 255 255 / 78%); }
.journey-number { color: var(--gold); font-family: "Lora", Georgia, serif; }
.journey-step p { color: rgb(255 255 255 / 82%); line-height: 1.65; }

.beyond { background: var(--cream); }
.beyond-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: clamp(36px, 6vw, 80px); margin-top: 50px; align-items: start; }
.community-list { border-top: 1px solid var(--line); }
.community-item {
  display: grid;
  grid-template-columns: 50px minmax(200px, .7fr) 1fr;
  gap: 28px;
  min-height: 102px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.community-item h3 { margin: 0; }
.community-item p { max-width: 420px; margin: 0; color: #594b42; font-size: 1rem; line-height: 1.65; }
.workshop-column { padding: 30px; background: var(--maroon); color: #fff; }
.workshop-column .card-label { margin: 0 0 18px; color: var(--gold); }
.workshop-column h3 { margin-bottom: 24px; font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.workshop-column ul { margin: 0; padding-left: 1.15rem; }
.workshop-column li { margin-top: 14px; color: rgb(255 255 255 / 86%); font-size: 1rem; line-height: 1.5; }
.beyond-end { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 58px; }
.beyond-end p { margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.beyond-end em { color: var(--maroon); }

.journey { padding-block: clamp(4.5rem, 7vw, 6rem); background: var(--deep); }
.journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 42px; }
.journey-step { min-height: 205px; padding: 0 26px; border-left: 1px solid rgb(255 255 255 / 22%); }
.journey-step:first-child { padding-left: 0; border-left: 0; }
.journey-step h3 { max-width: 230px; margin: 38px 0 12px; font-size: clamp(1.55rem, 2.1vw, 1.85rem); }
.journey-step p { max-width: 245px; font-size: 1.08rem; }

.visit { background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: end; }
.visit .intro { margin-bottom: 34px; }
.visit-card { min-height: 350px; padding: 28px 30px; background: var(--gold); }
.visit-card small { font-size: .875rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.visit-card strong { display: block; margin: 75px 0 28px; font-family: "Lora", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.25; }
.visit-card a { display: block; width: max-content; margin-top: 12px; padding-bottom: 4px; border-bottom: 1px solid rgb(75 16 17 / 40%); font-size: .875rem; }

.resource-hero { padding: 145px 0 62px; background: var(--maroon); color: #fff; }
.resource-hero .eyebrow { color: var(--gold); }
.resource-hero h1 { max-width: 18ch; margin-bottom: 0; color: #fff; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.resource-content { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.resource-intro { max-width: 65ch; margin-bottom: 34px; color: var(--muted); font-size: 1.1rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.resource-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); background: #fff; }
.resource-card h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.resource-card p { color: var(--muted); }
.resource-card .button { margin-top: 16px; }
.resource-viewer { width: 100%; min-height: 720px; margin-top: 26px; border: 1px solid var(--line); background: #fff; }

.site-footer { padding: 70px 0 22px; background: var(--maroon); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1fr; gap: 42px; }
.footer-mark { width: 220px; height: 120px; }
.footer-grid p { color: rgb(255 255 255 / 72%); font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .875rem; }
.footer-links small { color: rgb(255 255 255 / 55%); letter-spacing: .025em; text-transform: uppercase; }
.copyright { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 20%); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes hillview-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hillview-mark-enter { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hillview-orbit { to { transform: rotate(348deg); } }

@media (max-width: 800px) {
  .site-header-inner { width: min(100% - 40px, 1240px); }
  .brand-mark, .footer-mark { width: 170px; height: 100px; flex-basis: 170px; background-size: 125px auto; }
  .site-navigation { margin-left: auto; }
  .site-navigation .wp-block-navigation__responsive-container-open { display: flex; min-height: 44px; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 65%); color: #fff; }
  .site-navigation .wp-block-navigation__responsive-container { background: var(--deep); color: #fff; }
  .site-navigation .wp-block-navigation__responsive-container-content { padding: 30px 20px; }
  .site-navigation .wp-block-navigation-item__content { min-height: 44px; padding: 9px 12px; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .hero-mark { min-height: 330px; opacity: .72; }
  .programme-grid, .beyond-grid, .visit-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-viewer { min-height: 560px; }
  .programme, .programme:nth-child(2) { min-height: 300px; transform: none; }
  .programme:nth-child(2):hover, .programme:nth-child(2):focus-within { transform: translateY(-5px); }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-item { grid-template-columns: 35px 1fr; padding-block: 20px; }
  .community-item p { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .shell, .site-header-inner { width: min(100% - 40px, 1240px); }
  .brand-mark, .footer-mark { width: 150px; height: 88px; flex-basis: 150px; background-size: 112px auto; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.8rem); }
  .actions { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .actions > * + * { margin-left: 0; }
  .actions .button { justify-content: space-between; }
  .section { padding-block: 5.1rem; }
  .principles, .journey-grid { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even), .journey-step, .journey-step:first-child { min-height: auto; padding: 22px 0; border-left: 0; }
  .journey-step { border-bottom: 1px solid rgb(255 255 255 / 22%); }
  .journey-step h3 { margin-top: 24px; }
  .beyond-end { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .programme:hover, .programme:focus-within, .programme:nth-child(2):hover, .programme:nth-child(2):focus-within, .header-cta:hover, .button:hover { transform: none; }
}
