/*
Theme Name: Icy Interactive
Description: The Icy Interactive company site.
Version: 1.0.0
Text Domain: icy-interactive
*/

:root {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --ink: #101820;
  --muted: #52616d;
  --line: #c9d8e3;
  --accent: #087ea4;
  --accent-strong: #005f7a;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; overflow-wrap: anywhere; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.site-header nav,
footer nav { display: flex; gap: 1.25rem; }
.site-header nav a,
footer nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; text-decoration: none; }
.wordmark-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

section { padding-block: clamp(4rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
h1,
h2,
p { margin-top: 0; }
h1 { max-width: 13ch; margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 5.75rem); line-height: 0.98; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.05; letter-spacing: 0; }
.eyebrow { color: var(--accent-strong); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.intro {
  min-height: min(650px, calc(100svh - 72px));
  padding-block: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
}
.intro-copy { align-self: center; }
.intro-summary { max-width: 45rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.intro-index { display: grid; gap: 0.4rem; padding-bottom: 0.35rem; color: var(--muted); font-size: 0.78rem; text-align: right; }
.primary-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.product { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: 4rem; }
.section-heading h2 { margin-bottom: 0; }
.product-frame { grid-column: 1 / -1; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #dceaf3; }
.product-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-copy { align-self: end; max-width: 33rem; }
.product-copy p { color: var(--muted); font-size: 1.15rem; }
.text-link { color: var(--accent-strong); font-weight: 750; }

.company { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 7rem); }
.company-statement > p:last-child { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; background: var(--line); list-style: none; }
.principles li { min-width: 0; padding: 1.5rem; background: var(--surface); }
.principles span { display: block; margin-top: 0.5rem; color: var(--muted); }

.contact { max-width: 900px; }
.contact p { color: var(--muted); }
.contact > a { color: var(--accent-strong); font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 800; }
.primary-action,
.product-copy a,
.contact a { transition: color 160ms ease, background-color 160ms ease, transform 160ms ease; }

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
footer p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.legal-page { min-height: calc(100svh - 192px); padding-block: clamp(4rem, 10vw, 8rem); }
.legal-page article { max-width: 48rem; }
.legal-page article > p,
.legal-page article li { color: var(--muted); }
.legal-page h1 { max-width: none; font-size: clamp(2.75rem, 7vw, 5rem); }
.legal-page h2 { margin-top: 2.5rem; font-size: 1.25rem; }
.legal-page .return-link { display: inline-block; margin-top: 1.5rem; color: var(--accent-strong); font-weight: 750; }

@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover,
  footer nav a:hover { color: var(--ink); }
  .primary-action:hover { transform: translateY(-2px); background: var(--accent-strong); }
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; padding-block: 1rem; }
  .site-header nav { gap: 0.75rem; font-size: 0.9rem; }
  .wordmark > span:last-child { display: none; }
  .intro { min-height: auto; grid-template-columns: 1fr; }
  .intro-index { display: none; }
  .product,
  .company { grid-template-columns: 1fr; }
  h1 { font-size: 2.7rem; }
  .principles { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
