/* Morris Siegel Co. — landing page
   Follows Amanda's brochure direction: cream ground, navy structure, coral accent.

   Navy and coral are sampled from Images/Morris Siegel Co Logo 2026.png. The cream is
   deliberately WARMER than the logo's own #F0E8E8 — that one is pink and goes muddy at
   page scale. Cream-dominant is also the mark's native habitat: it's navy artwork drawn
   for light stock, so on cream it needs no plate behind it. */

:root {
  --navy: #0d2043;
  --navy-mid: #24365c;

  /* THREE corals, on purpose. The brand coral is light, and cream is light, so coral TEXT
     on cream fails WCAG (#f16b4d on cream is only 2.69:1). Same hue family, stepped down
     until each passes for the size it carries:
       --coral         fills, blocks, buttons, rules. NEVER text on cream.
       --coral-display large text only (>=24px or >=18.66px bold) — 3.57:1, clears the 3:1 bar.
       --coral-ink     small text (labels, eyebrows) — 4.79:1, clears the 4.5:1 bar.
     Keep the distinction if you retune the palette, or the page quietly fails contrast. */
  --coral: #f16b4d;
  --coral-display: #d8543a;
  --coral-ink: #b8442c;
  --coral-deep: #d8543a;

  --cream: #f7f1ea;
  --cream-deep: #efe5da;
  --paper: #fffcf8;

  /* Body copy is navy at reduced alpha on cream. 0.7 is the floor that still clears
     4.5:1 for small text — going lighter looks nicer and fails. */
  --ink: var(--navy);
  --ink-soft: rgba(13, 32, 67, 0.78);
  --ink-mute: rgba(13, 32, 67, 0.7);
  --rule: rgba(13, 32, 67, 0.14);
  --rule-strong: rgba(13, 32, 67, 0.26);

  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Explicit type scale. The previous draft had everything sitting at similar size and
     weight, which read flat — each step here is a deliberate jump, not a nudge. */
  --t-hero: clamp(2.75rem, 1.1rem + 6.6vw, 6rem);
  --t-h2: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem);
  --t-h3: 1.125rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---- type primitives --------------------------------------------------- */

.eyebrow {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

.section-head {
  margin: 0 0 2.75rem;
}

.section-head__label {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.section-head__label::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--coral);
  flex: none;
}

.section-head__title {
  font-family: var(--display);
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.85rem;
  max-width: 20ch;
}

.section-head__intro {
  margin: 0;
  max-width: 48rem;
  color: var(--ink-soft);
}

/* ---- masthead ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
}

/* On cream the mark stands on its own — no plate needed, unlike the navy version. */
.lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.lockup__mark {
  height: 40px;
  width: 40px;
  flex: none;
}

.lockup__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.masthead__place {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.6;
  margin: 0;
}

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* The brochure's coral wedge, carried over as the page's structural signature. */
.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -6%;
  width: 34vw;
  height: 130%;
  background: var(--coral);
  opacity: 0.14;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--coral-display);
  margin: 0 0 1.75rem;
}

/* Navy tagline bar, straight off the brochure cover. */
.tagline {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  padding: 1rem 1.5rem;
  margin: 0 0 1.75rem;
  display: inline-block;
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  background: var(--coral);
  /* Navy, not white. White on this coral is ~3:1 and the label is 12px bold, which is
     not "large text" — it needs 4.5:1. Navy on coral clears it at 5.3:1. */
  color: var(--navy);
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--coral-display);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--ghost {
  background: none;
  color: var(--navy);
  border: 2px solid var(--rule-strong);
  padding: calc(0.95rem - 2px) calc(1.6rem - 2px);
}

.btn--ghost:hover {
  background: none;
  border-color: var(--navy);
  color: var(--navy);
}

/* The mark rebuilt in markup so the dots can move: navy square, coral square offset
   down-left behind it, cream dot ring inside. Matches the drawn logo's composition. */
.hero__art {
  display: flex;
  justify-content: center;
}

/* Two real elements rather than a ::before — a pseudo-element still paints above its
   own parent's background, so the coral square kept covering the navy one. Navy sits
   top-right, coral offset down-left behind it, matching the drawn mark. */
.markbox {
  position: relative;
  width: min(100%, 21rem);
  aspect-ratio: 1;
}

.markbox__coral,
.markbox__navy {
  position: absolute;
  width: 93%;
  height: 93%;
  display: block;
}

.markbox__coral {
  left: 0;
  top: 7%;
  background: var(--coral);
}

.markbox__navy {
  right: 0;
  top: 0;
  background: var(--navy);
  padding: 8%;
}

.ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring circle {
  fill: var(--cream);
  transform-origin: center;
  transform-box: fill-box;
  animation: dot-settle 0.75s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
  animation-delay: calc(var(--i) * 12ms);
}

/* A scattering picks up the coral, the way the offset square does. */
.ring circle:nth-child(7n + 3) {
  fill: var(--coral);
}

@keyframes dot-settle {
  from {
    opacity: 0;
    transform: scale(0.15);
  }
}

/* ---- figures ----------------------------------------------------------- */

.figures {
  background: var(--navy);
  color: var(--cream);
}

.figures__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.figure {
  padding: clamp(1.75rem, 3vw, 2.5rem) 1.5rem;
  text-align: center;
}

.figure + .figure {
  border-left: 1px solid rgba(247, 241, 234, 0.18);
}

.figure__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 2.2vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--coral);
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

/* Coral number brightens to cream when you roll over the stat. */
.figure:hover .figure__num,
.figure:focus-within .figure__num {
  color: var(--cream);
}

.figure__label {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 241, 234, 0.78);
  display: block;
  line-height: 1.5;
}

/* ---- bands ------------------------------------------------------------- */

.band {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.band--deep {
  background: var(--cream-deep);
}

/* ---- categories -------------------------------------------------------- */

.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.5rem;
}

.cat {
  background: var(--paper);
  border-top: 4px solid var(--coral);
  padding: 1.5rem 1.35rem;
}

.cat__name {
  font-family: var(--display);
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 0.45rem;
}

.cat__items {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ---- manufacturer wall ------------------------------------------------- */

.wall {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.wall li {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.6rem 0.95rem;
  white-space: nowrap;
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin: 0;
  max-width: 48rem;
  line-height: 1.65;
}

/* ---- shipping terms ---------------------------------------------------- */

.terms {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
}

.term__key {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin: 0 0 0.5rem;
}

.term__val {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

/* ---- contact ----------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.record-wrap {
  position: relative;
}

/* The mark sets a coral square behind a navy one, offset down-left. The card repeats it. */
.record-wrap::before {
  content: "";
  position: absolute;
  inset: 1.15rem 1.15rem -1.15rem -1.15rem;
  background: var(--coral);
  z-index: 0;
}

.record {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--cream);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.record__head {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 234, 0.7);
  margin: 0 0 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(247, 241, 234, 0.2);
}

.record__list {
  margin: 0;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.8rem 1.25rem;
  font-size: var(--t-small);
}

.record__list dt {
  font-family: var(--display);
  color: rgba(247, 241, 234, 0.62);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}

.record__list dd {
  margin: 0;
  color: var(--cream);
  line-height: 1.5;
}

.record__list a {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.record__list a:hover {
  border-bottom-color: var(--coral);
}

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

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- a11y -------------------------------------------------------------- */

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  position: fixed;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1rem;
  font-family: var(--display);
  font-size: var(--t-label);
  text-transform: uppercase;
}

/* ---- responsive -------------------------------------------------------- */

@media (max-width: 62rem) {
  .hero__inner,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

  .markbox {
    width: min(62%, 14rem);
  }

  .hero::before {
    width: 60vw;
    opacity: 0.1;
  }

  .figures__grid {
    grid-template-columns: 1fr;
  }

  .figure + .figure {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(247, 241, 234, 0.18);
  }

  .figure {
    padding-block: 1.5rem;
    padding-right: 0;
  }
}

@media (max-width: 34rem) {
  /* The lockup plus the address overruns the viewport at this width and the place text
     gets clipped. Drop it entirely — the full address is in the contact record below. */
  .masthead__place {
    display: none;
  }

  .record__list {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .record__list dd + dt {
    margin-top: 0.85rem;
  }

  .record-wrap::before {
    inset: 0.85rem 0.85rem -0.85rem -0.85rem;
  }

  .tagline {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }

  /* Dots land in place with no settle rather than disappearing. */
  .ring circle {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
