/* Cinnamon and Sugar Toast LLC: one stylesheet, no scripts, fonts served from this site. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rampart One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/rampart-one-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --color-page: #F3E6D3;
  --color-surface: #FFF8EC;
  --color-surface-alt: #F8EBD8;
  --color-card: #FFFFFF;
  --color-ink: #3A2014;
  --color-ink-muted: #6B4E3D;
  /* Large display text only (3:1 rule). */
  --color-heading-soft: #A07A5C;
  /* The same warm tone, darkened to pass 4.5:1 for text under 24px (the "LLC" tag, the lead paragraph). */
  --color-soft-text: #82603F;
  --color-pps-brown: #4B2A20;
  --color-butter: #FFE2A1;
  --color-tile-cream: #F8E6CC;
  --color-tile-wheat: #F6E3C4;
  --color-divider: #EBD9C0;
  /* The handoff's #CA612D is 3.8:1 on the panel, under AA for small text; this pumpkin passes 4.5:1 on every background. */
  --color-link-hover: #A84A1C;
  --color-button-hover: #4B2A20;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pps: "Rampart One", system-ui, sans-serif;

  --page-inset: 16px;
  --radius-panel: 28px;
  --radius-card: 20px;
  --radius-card-sm: 16px;
  --radius-pill: 999px;
  --content-max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 8vw, 112px);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: var(--page-inset);
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

h1, h2, h3, p, dl, dd { margin: 0; }

a {
  color: var(--color-ink);
  text-underline-offset: 5px;
  transition: color 150ms ease;
}
a:hover,
a:focus-visible { color: var(--color-link-hover); }
a:focus-visible {
  outline: 2px solid var(--color-link-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute;
  left: calc(var(--page-inset) + 12px);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-surface);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: calc(var(--page-inset) + 12px);
  color: var(--color-surface);
}

.panel {
  background: var(--color-surface);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.glow {
  background: radial-gradient(ellipse 60% 70% at 8% 0%, #FFE2A1 0%, rgba(255, 226, 161, 0) 70%);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  display: inline-block;
  padding: 12px 4px;
  text-decoration: none;
}
.nav a.nav-cta {
  font-weight: 600;
  text-decoration: underline;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(40px, 7vw, 96px) 0 var(--section-y);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 10.5vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
.hero-title .llc {
  margin-left: 0.3em;
  font-size: 0.22em;
  letter-spacing: 0.08em;
  vertical-align: top;
  color: var(--color-soft-text);
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero-intro {
  flex: 1 1 360px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-intro p {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
  font-weight: 500;
}
.text-link {
  align-self: flex-start;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.feature-card {
  flex: 0 1 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.feature-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 20px;
  border-radius: var(--radius-card-sm);
  background: var(--color-tile-cream);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.feature-tile img { width: 78%; height: 100%; object-fit: contain; }
.feature-card:hover .feature-tile,
.feature-card:focus-visible .feature-tile {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(58, 32, 20, 0.10);
}

.caption-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.muted { color: var(--color-ink-muted); }
.pps-name {
  font-family: var(--font-pps);
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-pps-brown);
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: var(--section-y) 0;
}
.section + .section { border-top: 1px solid var(--color-divider); }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--making { margin-top: 40px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.section-title .soft { color: var(--color-heading-soft); }
.section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  padding-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink-muted);
}
.section-meta strong { font-weight: 500; color: var(--color-ink); }

.lead {
  max-width: 760px;
  margin-left: auto;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lead .soft { color: var(--color-soft-text); }

/* Brands */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-item { display: flex; flex-direction: column; gap: 12px; }
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 220px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--color-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.brand-tile--pps { padding: 20px; }
.brand-tile > img { width: 100%; height: 100%; object-fit: contain; }
.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(58, 32, 20, 0.10);
}
.brand-tile > .wizmo-mark {
  width: clamp(56px, 18vw, 84px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border-radius: 22%;
  object-fit: cover;
}
.wizmo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.strong { font-weight: 600; }

/* Projects */
.projects {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}
.project { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.project--wizmo { flex: 1 1 420px; }
.project--game { flex: 1 1 360px; padding-top: clamp(0px, 10vw, 140px); }
.project-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
}
.project-tile--wizmo {
  aspect-ratio: 4 / 3;
  background: var(--color-tile-wheat);
}
.project-tile--wizmo img {
  width: 38%;
  border-radius: 22%;
  box-shadow: 0 16px 32px rgba(58, 32, 20, 0.12);
}
.project-tile--game {
  flex-direction: column;
  gap: 20px;
  aspect-ratio: 4 / 3.4;
  padding: 32px;
  background: var(--color-pps-brown);
}
.project-tile--game img { width: 62%; height: 58%; object-fit: contain; }
.project-tile--game p {
  font-family: var(--font-pps);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
  text-align: center;
  color: var(--color-butter);
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}
.project-meta > div { flex: 1 1 220px; min-width: 0; }
.project-meta h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.project-meta p { font-size: 13px; line-height: 1.5; }
.project-meta .status { font-size: 13px; line-height: 1.5; color: var(--color-ink-muted); }
.project-meta .pps-name { font-size: 15px; }

/* Stack the cards: drop the stagger. */
@media (max-width: 827px) {
  .project--game { padding-top: 0; }
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: clamp(40px, 6vw, 80px) 0 var(--section-y);
  border-top: 1px solid var(--color-divider);
}
.contact-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-copy p { max-width: 420px; color: var(--color-ink-muted); }
.button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color 150ms ease;
}
.button:hover,
.button:focus-visible {
  background: var(--color-button-hover);
  color: var(--color-surface);
}
.button:active { transform: translateY(1px); }
@media (max-width: 420px) {
  .button { padding: 12px 20px; font-size: 15px; }
}

.facts {
  flex: 1 1 360px;
  min-width: 0;
  align-self: flex-start;
}
.facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-divider);
}
.facts dt { font-size: 13px; color: var(--color-ink-muted); }
.facts dd {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: break-word;
}

/* Footer */
.site-footer { background: var(--color-surface-alt); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink-muted);
}
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { display: inline-block; padding: 12px 0; font-weight: 500; }

/* Legal pages and 404 */
.doc {
  max-width: 760px;
  padding: clamp(32px, 5vw, 64px) 0 var(--section-y);
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.doc .updated { margin-top: 16px; font-size: 14px; color: var(--color-ink-muted); }
.doc .summary {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-card-sm);
  background: var(--color-tile-cream);
  font-size: 17px;
  font-weight: 500;
}
.doc h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.doc p,
.doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 8px; }
.doc .back { display: inline-block; margin-top: 40px; padding: 12px 0; font-weight: 600; }

/* Motion off when asked. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
  .feature-card:hover .feature-tile,
  .feature-card:focus-visible .feature-tile,
  .brand-tile:hover { transform: none; }
}

/* Windows high contrast: keep focus and buttons visible. */
@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  a:focus-visible { outline-color: Highlight; }
}
