/* Wawai Calendar site — shared styles for the landing page, terms and privacy.
 *
 * Tokens and the base rules below are Jon's design, lifted verbatim from the export in
 * temp/Wawai Calendar Landing Page-project/Main.dc.html (its <style data-dc-design-system-vars>
 * block and its <helmet> block). The export rendered through a design-tool React runtime; this
 * site is plain static HTML, so that runtime is gone and the CSS lives here instead.
 *
 * Fonts are the woff2 cuts already serving Jon's booking page, NOT the .otf/.ttf in the export.
 * Same three typefaces; 1.9 MB of font became 210 KB. Worth knowing before anyone "restores"
 * the originals: Iosevka Charon alone was 1.36 MB as .ttf against 17 KB as .woff2.
 */

@font-face {
  font-family: "TAY Flapjack";
  src: url(fonts/TAYFlapjack.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "TAY Wingman";
  src: url(fonts/TAYWingman.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka Charon";
  src: url(fonts/IosevkaCharon-Regular.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --wawai-red: #b6573d;
  --wawai-red-dark: #9c4630;
  --wawai-teal: #0d7575;
  --wawai-green: #7c9b70;
  --wawai-cream: #f7f2ed;
  --wawai-char: #424242;
  --line-subtle: rgba(66, 66, 66, 0.12);
  --line-input: rgba(66, 66, 66, 0.2);
  --ink-45: rgba(66, 66, 66, 0.45);
  --ink-72: rgba(66, 66, 66, 0.72);
  --bg: #f7f2ed;
  --surface: #fcf9f4;
  --fg1: #424242;
  --accent: #b6573d;
  --link: #0d7575;
  --container: 1200px;
  --reading: 700px;
  --font-display: "TAY Flapjack", "Arial Black", sans-serif;
  --font-head: "TAY Wingman", "Arial Black", sans-serif;
  --font-body: "Iosevka Charon", ui-monospace, monospace;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

a { color: var(--link); }
a:hover { color: var(--fg1); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

a.nav { color: var(--fg1); text-decoration: none; }
a.nav:hover { color: var(--accent); }

a.cta, button.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--wawai-cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  padding: 18px 28px;
  text-decoration: none;
  border: 0;
  border-radius: 0;
}
a.cta:hover, button.cta:hover { color: var(--wawai-cream); background: var(--wawai-red-dark); }
button.cta { cursor: pointer; }

/* The log-in control. Outlined rather than solid so it never competes with "Get a Free Design",
   which is the page's one primary action. */
a.login {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 11px 18px;
  text-decoration: none;
}
a.login:hover { background: var(--accent); color: var(--wawai-cream); }

input.f, textarea.f {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line-input);
  border-radius: 0;
  padding: 14px;
  font: inherit;
  font-size: 17px;
  color: var(--fg1);
}
input.f:focus, textarea.f:focus { outline: 2px solid var(--link); outline-offset: 1px; }

@media (prefers-reduced-motion: no-preference) {
  a.cta, button.cta, a.login { transition: background 120ms cubic-bezier(0.4, 0, 0.2, 1); }
}

/* ---- Shared chrome: the nav and footer every page carries ---------------------------- */

.site-head { border-bottom: 1px solid var(--line-subtle); }
.site-head .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 36px; width: auto; display: block; }
.brand span { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--fg1); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 16px; }

.site-foot { border-top: 1px solid var(--line-subtle); }
.site-foot .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  font-size: 15px;
}
.site-foot .where { display: flex; align-items: center; gap: 16px; }
.site-foot .where img { height: 30px; width: auto; display: block; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---- Legal pages --------------------------------------------------------------------
   Terms and privacy are long-form reading, so they get a narrow measure rather than the
   1200px grid the landing page uses. Same type scale and palette otherwise.             */

.legal { max-width: var(--reading); margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.legal .updated { margin: 20px 0 0; font-size: 15px; color: var(--ink-72); }
.legal h2 {
  margin: 56px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  padding-top: 24px;
  border-top: 2px solid var(--fg1);
}
.legal h3 {
  margin: 32px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}
.legal p, .legal li { font-size: 16px; }
.legal p { margin: 16px 0 0; }
.legal ul { margin: 16px 0 0; padding-left: 22px; }
.legal li { margin: 8px 0 0; }
.legal .lead { font-size: 19px; margin-top: 28px; }

/* Callout for the paragraphs a reader most needs to find — in practice, the Google user-data
   disclosures, which is what Google's OAuth reviewer looks for. */
.legal .note {
  margin: 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line-input);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
}
.legal .note p:first-child { margin-top: 0; }

.legal table { width: 100%; border-collapse: collapse; margin: 20px 0 0; font-size: 15px; }
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--line-input);
}
.legal th { background: var(--surface); font-family: var(--font-head); font-weight: 700; }

/* Wide content must scroll inside its own box rather than the page scrolling sideways. */
.scroll-x { overflow-x: auto; }
