/* ==========================================================================
   Yupa Tree — yupatree.com

   Every colour on the site is defined once, here, in :root. Change a value
   below and it changes everywhere — nav rules, banners, buttons, highlights.
   Nothing else in the CSS hard-codes a brand colour.

   Orange and amber are never used for text. On the near-white ground they
   measure 2.7:1 and 2.1:1, which is unreadable. They are fills only, always
   carrying near-black text on top, which is how they pass at 6.7:1 and 8.8:1.
   ========================================================================== */

:root {
  --ink:        #111111;   /* all text; footer background          */
  --teal:       #0A7C6E;   /* rules, borders, banners, links       */
  --orange:     #FF6B35;   /* accent: buttons, card marks          */
  --amber:      #F59E0B;   /* highlight: next-circle band, badges  */
  --ground:     #FAFAFA;   /* page background                      */

  --teal-dark:  #08574D;   /* link hover only                      */
  --white:      #FFFFFF;
  --rule:       #E4E4E4;   /* quiet hairlines inside tables        */

  --wrap: 1120px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------- base -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin: 0;
}

.stack > * + * { margin-top: 16px; }

/* A black-on-white JPEG logo. multiply drops the white box on light
   backgrounds; invert+screen does the same on the dark footer. Replace both
   with a transparent SVG when she sends one, and delete these rules. */
.mark { mix-blend-mode: multiply; }
.mark--on-dark { filter: invert(1); mix-blend-mode: screen; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}

.btn--solid { background: var(--orange); color: var(--ink); }
.btn--solid:hover { background: var(--ink); color: var(--white); }

.btn--outline { border-color: var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }

/* -------------------------------------------------------------- header -- */

.site-header {
  border-bottom: 1px solid var(--teal);
  background: var(--ground);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.brand span {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--teal); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* ---------------------------------------------------------- hero, band -- */

.hero {
  text-align: center;
  padding: 76px 0 84px;
}

.hero img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto; }
.hero .eyebrow { margin-top: 24px; }

.hero h1 {
  margin-top: 16px;
  font-size: clamp(44px, 7vw, 78px);
}

.hero p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead { margin-top: 26px; font-size: 19px; }

.hero .pull {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.5;
}

.hero .btn { margin-top: 34px; }

/* A full-width teal band with white text: 5.1:1, passes AA. */
.band {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 58px 0;
}

.band p { max-width: 900px; margin: 0 auto; }

.band .big {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.5;
}

.band .small { margin-top: 18px; max-width: 720px; }

/* The amber highlight strip. Ink on amber is 8.8:1. */
.strip {
  background: var(--amber);
  color: var(--ink);
  padding: 22px 0;
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.strip .label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.strip .what { font-family: var(--display); font-size: 24px; }
.strip .meta { margin-left: auto; font-size: 16px; }
.strip a { color: var(--ink); }

/* ------------------------------------------------------------ sections -- */

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section + .section { padding-top: 0; }

.section h2 { font-size: clamp(32px, 4.5vw, 40px); }

.split {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.split h2 { width: 280px; flex-shrink: 0; }
.split .body { flex: 1 1 auto; max-width: 780px; }

.lede { margin-top: 14px; max-width: 840px; }

/* ----------------------------------------------------------- the cards -- */

.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--teal);
  padding: 28px 30px 32px;
}

.card .tick {
  display: block;
  width: 36px;
  height: 4px;
  background: var(--orange);
}

.card h3 { margin-top: 14px; font-size: 25px; font-weight: 600; }
.card p { margin-top: 12px; font-size: 16px; }

/* ------------------------------------------------------------- feature -- */

.feature {
  display: flex;
  min-height: 400px;
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  background: var(--white);
}

/* The photo is portrait. Position it absolutely inside a parent with a
   definite height, or object-fit:cover never engages and the image drags the
   whole section to its own natural height. */
.feature__img {
  width: 46%;
  flex-shrink: 0;
  position: relative;
  min-height: 420px;
}

.feature__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__body {
  flex: 1 1 auto;
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.feature__body h2 { font-size: clamp(28px, 3.6vw, 38px); }
.feature__body .facts { font-weight: 700; font-size: 16px; }
.feature__body .btn { align-self: flex-start; margin-top: 10px; }

/* ----------------------------------------------------- schedule tables -- */

.table-wrap {
  margin-top: 36px;
  /* Four columns and counting — she may add more. Never clip them. */
  overflow-x: auto;              /* she may add columns; never clip them */
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

thead th {
  text-align: left;
  padding: 0 16px 14px 0;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--teal);
  white-space: nowrap;
}

tbody td {
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 2px solid var(--teal); }

/* First column: the date. Second: the topic, in the display face. */
tbody td:first-child { white-space: nowrap; }

tbody td:nth-child(2) {
  font-family: var(--display);
  font-size: 20px;
  min-width: 15em;
}

/* Third column and beyond: supporting detail, kept quieter than the topic.
   Styled by POSITION, not by what the cell says, so she can rename a column
   or invent a new status word without anything here needing to change.
   0.65 opacity on the ground is 5.8:1 — still passes AA. */
tbody td:nth-child(3) {
  padding-top: 19px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

tbody td:nth-child(n+4) {
  font-size: 15px;
  min-width: 11em;
  opacity: 0.8;
}

/* Links she adds in the Sheet with Ctrl+K. Underlined so they read as
   clickable against the surrounding plain cells. */
tbody a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-note { margin-top: 18px; font-size: 15px; }

/* ---------------------------------------------------------- info trio -- */

.trio {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.trio > div { padding-top: 22px; border-top: 3px solid var(--teal); }
.trio h2 { font-size: 26px; font-weight: 600; }
.trio p { margin-top: 12px; font-size: 16px; }

.price {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  margin-top: 12px;
}

.price span { font-size: 20px; }

/* ------------------------------------------------------------ details -- */

.detail-list {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.detail-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.detail-list dt {
  width: 220px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.detail-list dd { margin: 0; flex: 1 1 260px; }

.includes { margin-top: 20px; padding-left: 20px; }
.includes li { margin-bottom: 8px; }
.includes::marker, .includes li::marker { color: var(--teal); }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 54px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.site-footer img { width: 72px; height: 72px; object-fit: contain; }

.site-footer .name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer .contact { margin-left: auto; text-align: right; }
.site-footer .contact a { color: var(--amber); font-size: 20px; text-decoration: none; }
.site-footer .contact a:hover { text-decoration: underline; }
.site-footer .fine { font-size: 15px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .split { flex-direction: column; gap: 20px; }
  .split h2 { width: auto; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .feature { flex-direction: column; }
  .feature__img { width: 100%; min-height: 0; height: 300px; }
  .feature__body { padding: 40px 24px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* All five links on one line: a tighter header gutter, gaps and type. */
  .site-header .wrap { flex-wrap: wrap; justify-content: center; padding-left: 16px; padding-right: 16px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: center; gap: 10px; font-size: 14px; }

  .hero { padding: 52px 0 60px; }
  .hero img { width: 120px; height: 120px; }
  .hero .lead { font-size: 17px; }

  .section { padding: 56px 0; }

  .strip .meta { margin-left: 0; width: 100%; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer .contact { margin-left: 0; text-align: left; }

  .detail-list dt { width: 100%; }
}

/* Narrowest phones (360px): one size down so Contact still fits. */
@media (max-width: 374px) {
  .site-nav { font-size: 13px; }
}
