/* Agile Dayton - one stylesheet, no framework, no build step. */

:root {
  --paper:  #fbfaf8;
  --raised: #ffffff;
  --ink:    #16212c;
  --muted:  #5c6b7a;
  --accent: #c8472c;
  --accent-soft: #fbeae5;
  --teal:   #1f6f6b;
  --line:   #e4e0d8;
  --shadow: 0 1px 2px rgba(22,33,44,.06), 0 8px 24px rgba(22,33,44,.06);
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #12171d;
    --raised: #1a2129;
    --ink:    #edf0f3;
    --muted:  #98a6b3;
    --accent: #ff7a57;
    --accent-soft: #2a1e1a;
    --teal:   #4fbdb6;
    --line:   #263038;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px; flex-wrap: wrap;
}
.logo {
  font-size: 1.15rem; font-weight: 700; margin: 0;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo .dot { color: var(--accent); }
nav.site { margin-left: auto; display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
nav.site a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(.92); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--raised); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- sections ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { padding-top: 0; }
.hero { padding-top: clamp(3.5rem, 8vw, 6rem); }
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}

.card {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- events ---------- */

.event {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 92px 1fr; gap: 1.5rem; align-items: start;
}
.event + .event { margin-top: 1rem; }
.event .when {
  text-align: center; border-radius: 10px; padding: .6rem .2rem;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.event .mon {
  font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.event .day {
  font-family: "Space Grotesk", sans-serif; font-size: 1.85rem; font-weight: 700;
  line-height: 1; color: var(--ink);
}
.event h3 { margin-bottom: .35rem; }
.event .meta { color: var(--muted); font-size: .93rem; margin: 0 0 .7rem; }
.event .desc { margin: 0 0 .9rem; color: var(--ink); }
@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; gap: .9rem; }
  .event .when { width: 92px; }
}

.empty {
  background: var(--raised); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center;
}

/* ---------- form ---------- */

form.pitch { max-width: 680px; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 600; font-size: .96rem; margin-bottom: .3rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .85rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--raised);
  border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="file"] { padding: .55rem; }
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
fieldset { border: 0; padding: 0; margin: 0 0 2.4rem; }
fieldset legend {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 0 0 .9rem; margin-bottom: .4rem; width: 100%;
  border-bottom: 1px solid var(--line); color: var(--ink);
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 5rem);
  padding: 2.5rem 0 3rem; color: var(--muted); font-size: .93rem;
}
footer.site .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
footer.site .spacer { margin-left: auto; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding-left: 1.5rem; position: relative; margin-bottom: .6rem; }
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
