/* Mask of Ice LLC — site styles */

:root {
  --ink: #14202b;
  --ink-soft: #4b5b6c;
  --bg: #fbfcfe;
  --surface: #ffffff;
  --line: #e2e9ef;
  --accent: #33739e;
  --accent-deep: #27516f;
  --wash: #eef4f9;
  --radius: 12px;
  --measure: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

::selection { background: #cfe4f0; }

.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 46rem; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark { display: block; }

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--accent-deep); }

/* Hero */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -20%, #dcebf4 0%, rgba(220, 235, 244, 0) 60%),
    linear-gradient(180deg, #f3f8fb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.lede {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  margin-bottom: 1.75rem;
}

.narrow h2 { margin-bottom: 1.25rem; }

.section p { margin: 0 0 1.25rem; }
.section p:last-child { margin-bottom: 0; }

.narrow p { color: var(--ink-soft); }

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cfdae4;
  box-shadow: 0 10px 30px rgba(20, 32, 43, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--wash);
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */

.contact { text-align: center; }
.contact p { margin-left: auto; margin-right: auto; }

.contact-action { margin-top: 1.75rem; }

.email-link {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.email-link:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; }

/* Focus */

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

/* Small screens */

@media (max-width: 40rem) {
  .header-inner { justify-content: center; }
  .site-nav { gap: 1.25rem; }
}

/* Print (handy if a bank or verifier prints the page) */

@media print {
  .site-header { position: static; }
  .site-nav { display: none; }
  .card { break-inside: avoid; }
  .email-link { border: none; padding: 0; }
}
