/* TinyBeast LLC — styles. No external requests; fonts are self-hosted. */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-latin-400-italic.woff2") format("woff2"); }

:root {
  --navy: #081834;
  --navy-2: #1e3165;
  --gold: #fab626;
  --gold-soft: #ffe6a8;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #18203a;
  --muted: #464d66;
  --link: #1d3fa0;
  --coral: #ff7a59;
  --teal: #2bb3a3;
  --sky: #7cc8ff;
  --berry: #e46aa6;
  --line: #081834;
  --tint: #fdf0d8;
  --radius: 1.5rem;
  --radius-sm: 0.9rem;
  --wrap: 72rem;
  --focus: #081834;
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.75rem 1.1rem; border-radius: 0.6rem;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }

/* Header */
.site-header { background: var(--paper); border-bottom: 3px solid var(--gold); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none;
  color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  min-height: 48px;
}
.brand picture, .footer-brand picture { flex: none; }
.nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem;
  border-radius: 999px; color: var(--navy); font-weight: 700; text-decoration: none;
  border: 2px solid transparent;
}
.nav-list a:hover { background: var(--gold-soft); }
.nav-list a[aria-current="page"] {
  background: var(--navy); color: #fff;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.3em;
}

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.center-row { justify-content: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: 3px solid transparent; transition: transform .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.button-gold:hover { background: #ffc64f; }
.button-outline-light { color: #fff; border-color: #fff; }
.button-outline-light:hover { background: rgba(255,255,255,.12); }
.button-navy { background: var(--navy); color: #fff; }
.button-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-outline:hover { background: var(--gold-soft); }

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 48px;
  background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 2rem;
  padding-top: 3.5rem; padding-bottom: 5rem;
}
.hero h1 { color: #fff; }
.hero :focus-visible { outline-color: var(--gold); }
.hero .lede { color: #e8ecf8; font-size: 1.3rem; max-width: 36rem; }
.hero-logo { justify-self: center; width: 100%; max-width: 24rem; }
.hero-logo img { display: block; width: 100%; height: auto; }
.logo-mark { display: block; border-radius: 50%; }
.eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem;
  color: var(--muted); margin-bottom: 0.6rem;
}
.eyebrow-on-dark { color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 6s ease-in-out infinite; transform-box: fill-box; }
  .float-b { animation-duration: 7.5s; animation-delay: -2s; }
  .float-c { animation-duration: 8.5s; animation-delay: -4s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--paper); border-bottom: 2px solid #f0e2c4; padding: 3rem 0 2.5rem; }
.page-hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 44rem; margin-bottom: 0; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--tint); }
.section-intro { max-width: 46rem; font-size: 1.2rem; color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child, .prose section:first-child h2 { margin-top: 0; }
.prose li { margin-bottom: 0.4em; }

/* Feature grid */
.feature-grid, .value-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feature, .value {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 5px 0 var(--line);
}
.feature h3, .value h3 { margin-bottom: 0.4em; }
.feature p, .value p { margin: 0; color: var(--muted); }
.feature-icon {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem;
  margin-bottom: 0.9rem; color: var(--navy); border: 2px solid var(--line);
}
.feature-icon svg { width: 1.6rem; height: 1.6rem; }
.feature-coral .feature-icon { background: #ffd4c7; }
.feature-teal .feature-icon { background: #c4efe9; }
.feature-gold .feature-icon { background: var(--gold-soft); }
.feature-sky .feature-icon { background: #d6edff; }

/* Products */
.featured { margin: 1.5rem 0; }
.product-list { display: grid; gap: 2rem; }
.product-card {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 0 var(--line); scroll-margin-top: 1rem;
}
.product-art { border-right: 2px solid var(--line); background: #dff1ff; }
.product-art svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.75rem; }
.product-shots {
  margin: 0; border-right: 2px solid var(--line); background: var(--tint);
  display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 1.75rem 1.25rem 1.25rem;
}
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; }
.phone {
  display: block; flex: 0 1 11.25rem; min-width: 0; max-width: 11.25rem;
  border: 5px solid var(--navy); border-radius: 1.6rem; overflow: hidden; background: var(--navy);
  box-shadow: 0 6px 0 rgba(8, 24, 52, .2);
}
.phone img { display: block; width: 100%; height: auto; }
.product-shots figcaption { text-align: center; font-size: .95rem; color: var(--muted); font-style: italic; }
.product-kind { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .3rem; }
.product-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.name-note { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }
.product-status { margin-bottom: 1rem; font-weight: 700; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--gold-soft); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px; padding: .1rem .8rem; font-weight: 700; font-size: .95rem;
}
.badge-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--navy); }
.mini-heading { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .35rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23081834' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.note { background: #e3f6f2; border-left: 5px solid var(--teal); padding: .8rem 1rem; border-radius: 0 .6rem .6rem 0; }
.availability { font-style: italic; color: var(--muted); margin: 0; }
.text-link-strong { font-weight: 700; font-size: 1.1rem; }

/* Mission */
.mission { background: var(--gold); }
.mission-inner { text-align: center; max-width: 52rem; }
.mission h2 { color: var(--navy); }
.mission-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; color: var(--navy); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.contact-card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 6px 0 var(--line); }
.contact-icon { background: var(--gold-soft); }
.contact-email { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 700; }
.contact-email a { display: inline-block; padding: .3rem 0; }
.contact-details { margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.contact-details div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; }
.contact-details dt { font-weight: 700; color: var(--navy); }
.contact-details dd { margin: 0; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.toc { position: sticky; top: 1rem; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.2rem .8rem; font-size: 1rem; }
.toc-title { font-size: 1.1rem; margin-bottom: .5rem; }
.toc ol { padding-left: 1.3rem; margin: 0; }
.toc li { margin-bottom: .4rem; }
.legal h2 { font-size: 1.6rem; scroll-margin-top: 1rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
.table-wrap table { margin: 0; min-width: 30rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 1rem; background: var(--paper); }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border: 2px solid #b9a77f; }
th { background: var(--tint); color: var(--navy); }
.meta { color: var(--muted); font-style: italic; margin-top: 2rem; }

/* 404 */
.not-found { padding: 5rem 0; }
.lede-dark { font-size: 1.2rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #e8ecf8; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.site-footer .logo-mark { box-shadow: 0 0 0 2px #fab626; }
.footer-heading { color: var(--gold); font-size: 1.15rem; margin-bottom: .6rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .2rem; }
.footer-list a { display: inline-block; padding: .3rem 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.2rem; padding-bottom: 1.5rem; font-size: .95rem; }
.footer-base p { margin: 0; }

/* Responsive */
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-logo { max-width: 16rem; order: -1; }
  .product-card { grid-template-columns: 1fr; }
  .product-art, .product-shots { border-right: 0; border-bottom: 2px solid var(--line); }
  .contact-grid, .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .brand { font-size: 1.2rem; }
  .nav-list a { padding: .4rem .7rem; }
  .contact-details div { grid-template-columns: 1fr; gap: 0; }
}

/* Windows High Contrast / forced colors */
@media (forced-colors: active) {
  .nav-list a[aria-current="page"] { border-color: CanvasText; }
  .badge, .feature, .value, .product-card, .contact-card { border-color: CanvasText; }
}

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