:root {
  /* --- straight from the logo --- */
  --olive:       #86a027;  /* wordmark green: top bar */
  --orange:      #e88149;  /* bowl: buttons, accents */
  --yellow:      #ffec8d;  /* broth: highlights, badges */
  --cream:       #fffbdf;  /* bowl rim: card surfaces */

  /* --- added for readability --- */
  --bg:          #e7d2a6;  /* oatmeal page background */
  --ink:         #3b2f23;  /* text + outlines */
  --ink-soft:    #6b5a47;  /* secondary text */
  --olive-dark:  #5c6b1c;  /* small olive text + links (passes contrast) */
  --orange-dark: #d36d36;  /* button hover */

  --font-display: "Short Stack", "Comic Neue", system-ui, sans-serif;
  --font-body:    "Cagliostro", system-ui, sans-serif;

  --radius: 4px;          /* corner roundness for cards;*/
  --gutter: 30px;          /* space between cards and the screen edge */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* faint paper grain (an SVG noise filter, tinted brown) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .14 .35 0 0 0 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: var(--olive-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25; 
  margin: 0 0 0em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p  { margin: 0 0 2em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--olive); 
  border-bottom: 3px solid var(--ink);
}


.nav {
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { position: relative; width: 56px; flex: none; }
.wordmark { height: 40px; width: auto; }

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s;
}
.nav-links a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- cards ---------- */
main { padding: 40px var(--gutter) 24px; }

.card {
  background: var(--cream);
  border: 3px solid var(--ink); 
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  scroll-margin-top: 110px; /* keeps headings clear of the sticky top bar */
}

/* straight line between cards */
.divider {
  border: 0;
  border-top: 2px solid var(--olive);
  margin: 35px 0;
  width: 30%; 
  margin-left: auto;
  margin-right: auto;
}

.smol-header {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: .8em;
}
.lead { font-size: 1.2rem; max-width: 38em; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-display); font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  /* box-shadow: 4px 4px 0 var(--ink); */
  transition: transform .15s, box-shadow .15s;
}
.btn:hover  { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--cream); }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.games-art { position: relative; max-width: 280px; width: 100%; margin: 30px auto 0; }
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 400;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 1em;
}

/* ---------- About ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.member {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
}
.avatar {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: .1em; }
.role { color: var(--ink-soft); font-weight: 400; font-size: .95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.character-slot {
  aspect-ratio: 3 / 4;
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
  border: 2.5px dashed var(--ink-soft);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 400;
  padding: 20px;
}
.email { font-size: clamp(1rem, 2.6vw, 1.3rem); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; color: var(--ink-soft); font-size: .9rem; padding: 32px 20px 48px; }

/* ---------- Roster page ---------- */
.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  margin: 24px 0 32px;
}
.company-info dt { font-family: var(--font-display); font-size: .85rem; color: var(--ink-soft); }
.company-info dd { margin: 0; }

.roster {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--ink);
}
.roster th,
.roster td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ink);
}
.roster thead th {
  background: var(--olive);
  font-family: var(--font-display);
  font-weight: 400;
}
.roster tbody tr:nth-child(even) { background: var(--bg); }   /* striped rows */
.roster tbody tr:last-child td { border-bottom: 0; }

/* On phones, each person becomes a stacked block instead of a squished row */
@media (max-width: 600px) {
  .roster thead { display: none; }
  .roster, .roster tbody, .roster tr, .roster td { display: block; }
  .roster tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  .roster tbody tr:last-child { border-bottom: 0; }
  .roster td { border: 0; padding: 4px 16px; }
  .roster td::before {
    content: attr(data-label);         /* pulls "Name" / "Title" / "Email" from the HTML */
    display: block;
    font-family: var(--font-display);
    font-size: .8rem;
    color: var(--ink-soft);
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  :root { --gutter: 14px; }
  .games, .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact .character-slot { max-width: 200px; }
  .card { scroll-margin-top: 140px; }   /* top bar wraps taller on phones */
}
@media (max-width: 480px) {
  .nav { justify-content: center; }
  .nav-links a { padding: 6px 10px; }
  .wordmark { height: 34px; }
}

/* ---------- Less motion for people who ask for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a { transition: none; }
}