/* Studio EA - legal and support pages. Same palette and type as the app
   (lib/src/core/theme/app_theme.dart). Fonts are self-hosted so reading the
   privacy policy sends nothing to a third party. */

@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #f6f6f4;
  --surface: #ffffff;
  --ink: #282827;
  --muted: #636260;
  --primary: #535250;
  --tint: #e8e8e6;
  --line: #e3e3e1;
  --star: #b6b6b4;
  --wordmark: #6d6d6d;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wordmark);
}
.brand img { width: 40px; height: auto; }
.brand span {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.95rem;
}
.site-header nav a { text-decoration: none; padding: 6px 0; }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- main */

main { padding: 40px 0 56px; }

h1, h2, h3 {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.35rem); margin: 0 0 8px; }
h2 { font-size: 1.35rem; margin: 40px 0 10px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }

.meta { color: var(--muted); margin: 0 0 28px; font-size: 0.95rem; }

p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
ul, ol { padding-left: 1.3em; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 16px;
}
.card > :last-child { margin-bottom: 0; }

.note {
  background: var(--tint);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.note > :last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
th { font-weight: 600; background: var(--ground); }
tr:last-child td { border-bottom: 0; }

dl { margin: 0 0 14px; }
dt { font-weight: 600; }
dd { margin: 0 0 10px; }

/* Unfilled facts. scripts/web_check.sh refuses to deploy while any remain. */
.todo {
  background: #fff1a8;
  outline: 1px dashed #a08a00;
  padding: 0 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- home */

.wrap.wide { max-width: 1080px; }

.home main { padding: 0; }

.band { padding: 64px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }

.section-head { max-width: 620px; margin: 0 0 32px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* hero */
.hero { text-align: center; padding: 72px 0 64px; }
.hero img { width: 168px; height: auto; }
.hero .wordmark {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem);
  letter-spacing: 0.2em;
  color: var(--wordmark);
  margin: 16px 0 6px;
  /* letter-spacing adds space after the last letter too */
  padding-left: 0.2em;
}
.hero .tagline { color: var(--muted); margin: 0 0 22px; font-size: 1.05rem; }
.hero .lead { max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.button:hover { background: var(--ink); color: #fff; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--star); color: var(--ink); }
.actions.start { justify-content: flex-start; }

/* classes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.cards .card { margin: 0; padding: 24px; }
.cards .card h3 { margin: 16px 0 6px; font-size: 1.25rem; }
.cards .card p { color: var(--muted); }
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-tile svg { width: 26px; height: 26px; }

/* app */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.app-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
}
.app-card img { width: 96px; height: auto; }
.app-card p { color: var(--muted); margin: 12px 0 0; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}
.contact-grid .card { margin: 0; }
.contact-grid h3 { margin: 0 0 8px; font-size: 1.1rem; }
.contact-grid address { font-style: normal; margin: 0 0 12px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); background: none; }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 28px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .wide { max-width: 1080px; }

@media print {
  .site-header nav, .site-footer nav, .skip { display: none; }
  body { background: #fff; }
  .todo { background: none; outline: none; }
}
