/* mdoughty.com styles. Colors are at the top; one color per section. */
:root {
  --bar: #202124;          /* top menu bar */
  --bar-text: #e8eaed;
  --bg: #ffffff;
  --soft: #f1f3f4;         /* light grey panels */
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --tech: #1a73e8;
  --school: #188038;
  --car: #e37400;
  --music: #8430ce;
  --misc: #5f6368;
  --family: #c5221f;
  --accent: #3c6e91;       /* home page color, like your Google Site title */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202124; --soft: #2d2e31; --ink: #e8eaed; --muted: #9aa0a6; --line: #3c4043; --bar: #111214;
    --tech: #8ab4f8; --school: #81c995; --car: #fcad70; --music: #d7aefb; --misc: #bdc1c6; --family: #f28b82; --accent: #8ab4f8;
  }
}
body.tech { --accent: var(--tech); } body.school { --accent: var(--school); } body.car { --accent: var(--car); }
body.music { --accent: var(--music); } body.misc { --accent: var(--misc); } body.family { --accent: var(--family); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Lato", "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ms { width: 24px; overflow: hidden; font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; min-height: 64px;
  padding: env(safe-area-inset-top, 0px) 1.25rem 0; background: var(--bar); color: var(--bar-text); }
.brand { font-size: 1.5rem; font-weight: 400; text-decoration: none; margin-right: auto; letter-spacing: .01em; }
.toplinks { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: flex-end; }
.toplinks a { text-decoration: none; font-weight: 300; font-size: 1.05rem; opacity: .9; padding: .25rem 0; border-bottom: 2px solid transparent; }
.toplinks a:hover { opacity: 1; border-bottom-color: currentColor; }
.toplinks a[aria-current="page"] { font-weight: 700; opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: .5rem; margin-left: -.5rem; border-radius: 50%; cursor: pointer; }
.menu-btn:hover { background: rgba(255,255,255,.1); }

/* ---- phone menu drawer ---- */
.drawer { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(80vw, 300px); background: var(--bg);
  padding: env(safe-area-inset-top, 0px) 0 1rem; transform: translateX(-102%); transition: transform .22s ease; overflow-y: auto;
  box-shadow: 0 0 24px rgba(0,0,0,.25); visibility: hidden; }
.drawer-head { font-size: 1.35rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.drawer a { display: flex; align-items: center; gap: 1.1rem; padding: .8rem 1.5rem; text-decoration: none; margin-right: .75rem; border-radius: 0 999px 999px 0; }
.drawer a .ms { color: var(--muted); }
.drawer a:hover { background: var(--soft); }
.drawer a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.drawer a[aria-current="page"] .ms { color: var(--accent); }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.4); }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .toplinks { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { font-size: 1.3rem; }
}

/* ---- banner ---- */
.hero { text-align: center; padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg)); }
.hero h1 { font-weight: 300; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1.1; color: var(--accent); margin: 0; letter-spacing: .01em; }
.hero p { color: var(--muted); margin: .9rem auto 0; max-width: 34rem; font-size: 1.1rem; font-weight: 300; }

/* ---- page body ---- */
main { max-width: 64rem; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2.5rem 3rem; }
section h2 { font-weight: 400; font-size: 1.5rem; margin: 0 0 .75rem; color: var(--accent); }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.links a, .links strong { font-weight: 700; text-decoration: none; }
.links a:hover { text-decoration: underline; color: var(--accent); }
.links span { display: block; color: var(--muted); font-size: .95rem; }
.note { background: var(--soft); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.note p { margin: 0 0 .4rem; } .note p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .55rem 1rem .55rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 700; color: var(--muted); }

/* ---- home tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; text-decoration: none; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); transition: box-shadow .15s ease, border-color .15s ease; }
.tile:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); border-color: transparent; }
.tile .ms { flex: none; width: 48px; overflow: hidden; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.tile b { display: block; font-size: 1.2rem; }
.tile small { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; margin-top: .15rem; }
.home-h2 { font-weight: 400; font-size: 1.3rem; color: var(--muted); margin: 2.5rem 0 1rem; }

footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* command boxes with copy button */
.cmd { display: flex; align-items: center; gap: .5rem; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .45rem .45rem .9rem; margin-top: .4rem; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; padding: .25rem 0; font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .9rem; }
.cmd .copy { flex: none; font: inherit; font-size: .8rem; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; }
.links li > p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.links ol { margin: .4rem 0 0; padding-left: 1.3rem; color: var(--muted); font-size: .95rem; }
.sub { font-weight: 700; font-size: 1rem; margin: 1.25rem 0 .4rem; }
.wide { grid-column: 1 / -1; }
.links ol li { border: 0; padding: .15rem 0; }
.tile .logo { flex: none; width: 48px; height: 48px; border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--line); object-fit: contain; }

/* thin strip of section colors under the top bar */
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--tech) 0 16.6%, var(--school) 0 33.3%, var(--car) 0 50%, var(--music) 0 66.6%, var(--misc) 0 83.3%, var(--family) 0); }

/* School: coming up box */
.coming { background: var(--soft); border-radius: 12px; padding: 1.5rem 1.5rem .75rem; }
.coming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; }
.coming .sub { margin-top: .5rem; color: var(--muted); font-weight: 700; }
.upcoming, .scores { list-style: none; margin: 0 0 1rem; padding: 0; }
.upcoming li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.upcoming li:last-child { border-bottom: 0; }
.upcoming .when { flex: none; width: 6.5rem; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.upcoming .when small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.upcoming .what { line-height: 1.4; }
.upcoming .meta, .scores .meta { display: block; color: var(--muted); font-size: .9rem; }
.upcoming .empty { color: var(--muted); display: block; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; margin-left: .4rem; vertical-align: .1em; color: #fff; }
.badge.vols { background: #c75b00; }
.badge.tide { background: #9e1b32; }
.scores li { font-size: .95rem; padding: .2rem 0; }
.scores .meta { display: inline; }
.win { color: var(--school); } .loss { color: var(--family); }
.live { color: var(--family); }
