/* ============================================
   matchaxmoxie — IU gear / campus / MAP identity
   the cookie classroom, phoenix room
   Matcha green + clay accent on cream paper.
   Rounder, louder, more joy than the other two —
   this one isn't a resume.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  /* --- colour: matcha green + clay warmth ---
     Raw hexes here mirror brand-tokens.css so this sheet still stands
     up on its own; brand-tokens.css loads after it and wins. */
  --matcha-mid:   #3d6b4a;
  --matcha-deep:  #006b45;
  --matcha-pale:  #e8f0e4;
  --clay:         #b3714f;
  --clay-deep:    #96593a;
  --clay-ink:     #8a4e2e;
  --cream:        #fff4e8;
  --ink:          #222a25;
  --ink-soft:     #4a554c;
  --rule:         rgba(0, 84, 55, 0.22);

  --font-display: 'Fraunces', serif;
  --font-body:    'Nunito Sans', sans-serif;

  /* looser scale — bigger jumps, more energy */
  --step--1: 0.9rem;
  --step-0:  1.05rem;
  --step-1:  1.35rem;
  --step-2:  1.85rem;
  --step-3:  2.5rem;
  --step-4:  3.25rem;

  --radius: 20px;      /* rounder than the other two sites, on purpose */
  --radius-sm: 12px;
  --shadow: 0 14px 30px rgba(0, 84, 55, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type: bold, upright, no italics — this is a classroom voice ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--matcha-deep);
  margin: 0 0 0.45em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.2rem, 6vw, var(--step-4)); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; }

p  { margin: 0 0 1em; color: var(--ink-soft); max-width: 60ch; }
p b, p strong { color: var(--ink); font-weight: 700; }

a { color: var(--matcha-deep); text-decoration-color: var(--matcha-mid); text-underline-offset: 3px; }
a:hover { color: var(--clay-ink); }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clay-ink);
  background: rgba(179, 113, 79, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.75em;
}

/* ---------- layout shell: photo-forward, generous ---------- */

.wrap { max-width: 960px; margin: 0 auto; padding: 64px 24px 120px; }

section { margin-top: 64px; }

.section-head { margin-bottom: 24px; }

.section-head span {
  display: block;
  font-size: var(--step--1);
  color: var(--matcha-mid);
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- classroom cards: rounder, bigger, playful shadow ---------- */

.card {
  background: var(--paper, #ffffff);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- photo-forward tiles — the signature element ---------- */
/* rounded, slightly rotated on hover: campus scrapbook energy,
   not a portfolio grid */

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.photo-tile:hover img { transform: scale(1.05) rotate(-1deg); }

/* The scrim carries the caption, so it has to hold up over the pale
   parts of a photo as well as the dark ones: at 0.82 over a light
   frame the cream label still reads about 8:1. */
.photo-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 52, 34, 0.82), rgba(0, 52, 34, 0));
  color: var(--cream);
  font-size: var(--step--1);
  font-weight: 600;
}

/* ---------- rules pinned to the wall — classroom rule cards ---------- */

.rule-card {
  background: var(--matcha-pale);
  background-color: var(--matcha-pale);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border-left: 4px solid var(--matcha-mid);
}

.rule-card + .rule-card { margin-top: 12px; }

/* ---------- buttons: rounder, playful, warm accent ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--matcha-deep);
  color: var(--cream);
  border-radius: 999px;
  font-size: var(--step-0);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

/* Hover keeps the warm gesture, but at clay-ink rather than raw clay:
   the cream label needs 4.5:1 and raw clay only gives about 2.5:1. */
.btn:hover { background: var(--clay-ink); transform: translateY(-2px); }

/* ---------- accessibility floor ---------- */

a:focus-visible, .btn:focus-visible, .card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
  .photo-tile:hover img { transform: none; }
}
