/* ============================================================
   Monarch Methods — calling card
   Aesthetic: Teenage Engineering. Spec sheet as website.
   ============================================================ */

:root {
  --bg:        #F4F1EA;   /* warm paper */
  --ink:       #0E0E0B;   /* near-black, high contrast */
  --ink-soft:  #3A3A33;
  --ink-mute:  #8A8678;
  --rule:      #0E0E0B;   /* hairlines are pure ink */
  --accent:    #D14A0E;   /* monarch orange — used sparingly */

  --f-sans: "Inter", system-ui, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1.5rem, 4vw, 3rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html, body { height: 100%; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  padding-inline: var(--gutter);
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Mono / label utility look ---------- */

.spec dt,
.spec dd,
.contact-label,
.contact-addr,
.page-footer {
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.page-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 220ms var(--ease);
}

.brand:hover { opacity: 0.7; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mark — both echo waves inherit currentColor (so the mark adapts to
   any context). Each echo pulses on a different period and phase, so
   the overall motion shimmers rather than blinks in unison. */

.mark-echo-1 {
  opacity: 0.24;
  animation: mark-echo-1 4.2s var(--ease) infinite;
}

.mark-echo-2 {
  opacity: 0.10;
  animation: mark-echo-2 6.4s var(--ease) infinite;
  animation-delay: -1.8s;
}

@keyframes mark-echo-1 {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.32; }
}

@keyframes mark-echo-2 {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.16; }
}

/* ---------- Card (main content) ---------- */

.card {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.card-inner {
  width: 100%;
  max-width: 44rem;
}

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.wordmark-line {
  display: block;
}

/* ---------- Spec sheet ---------- */

.spec {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 1fr;
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.spec-row:last-child { border-bottom: 0; }

.spec dt {
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin: 0;
}

.spec dd {
  font-size: 0.72rem;
  color: var(--ink);
  margin: 0;
}

/* ---------- Tagline ---------- */

.tagline {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 42ch;
  text-wrap: balance;
}

/* ---------- Contact button (TE hardware-button feel) ---------- */

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.5rem);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  transition:
    background 200ms var(--ease),
    color 200ms var(--ease),
    border-color 200ms var(--ease);
}

.contact-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
  transition: background 200ms var(--ease);
}

.contact-label {
  color: var(--ink-mute);
  transition: color 200ms var(--ease);
}

.contact-addr {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
}

.contact-arrow {
  font-family: var(--f-sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
  transition: transform 240ms var(--ease), color 200ms var(--ease);
}

@media (hover: hover) {
  .contact:hover {
    background: var(--ink);
    border-color: var(--ink);
  }
  .contact:hover .contact-label { color: rgba(244, 241, 234, 0.55); }
  .contact:hover .contact-addr  { color: var(--bg); }
  .contact:hover .contact-arrow {
    color: var(--bg);
    transform: translateX(3px);
  }
  .contact:hover .contact-dot   { background: var(--bg); }
}

@media (max-width: 460px) {
  .contact {
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
  }
}

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

.page-footer {
  flex: 0 0 auto;
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--ink-mute);
}

@media (max-width: 480px) {
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .contact-arrow { transition: none; }
}
