/* QUIBBO Studio — styles
   No web fonts are loaded: the type uses high-quality system faces,
   so the page makes zero third-party requests. */

:root {
  --paper: #F4F2ED;
  --paper-2: #ECE9E2;
  --ink: #1D1E21;
  --ink-soft: #55565B;
  --navy: #15213B;
  --navy-2: #1E2C4A;
  --on-navy: #E9E7E1;
  --on-navy-soft: #A7ADBC;
  --rule: rgba(29, 30, 33, 0.14);
  --rule-navy: rgba(233, 231, 225, 0.16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--navy); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 2px;
}
.section-dark :focus-visible { outline-color: var(--on-navy); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 237, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.wordmark,
.footer-brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--navy);
}
.wordmark-sub {
  margin-left: 0.6em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.08em;
  color: var(--ink-soft);
}

.nav-list {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  font-size: 0.875rem;
}
.nav-list a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4.5rem, 10vw, 8rem);
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 9.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.hero-title em {
  font-style: italic;
  color: var(--ink);
}
.br-sm { display: none; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.hero > .wrap > .hero-lede { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s var(--ease);
}
.text-link svg { transition: transform 0.35s var(--ease); }
.text-link:hover { border-bottom-color: var(--ink); }
.text-link:hover svg { transform: translateY(3px); }

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  align-self: start;
  position: sticky;
  top: 6.5rem;
}
.section-label .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}
.section-label h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Focus (dark) ---------- */

.section-dark {
  background: var(--navy);
  color: var(--on-navy);
  border-top: 0;
}
.section-dark .section-label .num { color: var(--on-navy-soft); }

/* ---------- Contact ---------- */

.email-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.25rem);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-decoration: none;
  max-width: 100%;
}
.email-text {
  overflow-wrap: break-word;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.5s var(--ease);
}
.email-arrow {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  transition: transform 0.45s var(--ease);
}
.email-link:hover .email-text { background-size: 0% 1px; background-position: 100% 100%; }
.email-link:hover .email-arrow { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem;
}
.footer-brand { font-size: 0.85rem; }

/* ---------- Products ---------- */

.product-list { border-top: 1px solid var(--rule-navy); }
.product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule-navy);
}
.product h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.status {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}
/* When a product ships, wrap its name in <a href="..."> inside the h3. */
.product a { text-decoration: none; }
.product a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* ---------- Reveal motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .section-label { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { height: 3.75rem; }
  .wordmark-sub { display: none; }
  .br-sm { display: inline; }
}

@media print {
  .site-header, .skip-link { display: none; }
  .section-dark { background: none; color: var(--ink); }
  .js .reveal { opacity: 1; transform: none; }
}
