/* re/me — light take on the Caldera visual language:
   wide heavy grotesk headlines, DM Sans body, Fragment Mono labels, 32–40px cards, pill buttons. */
:root {
  --bg: #ffffff;
  --paper: #f4f5f7;
  --paper-2: #eceef2;
  --white: #ffffff;
  --ink: #0a0b0d;
  --ink-2: #33363d;
  --mute: #6b6f78;
  --line: rgba(10, 14, 22, 0.1);
  --line-2: rgba(10, 14, 22, 0.2);
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecff;
  --yellow: #f5f28e;
  --violet: #7b4bfe;
  --orange: #fc5000;
  --green: #1f9d55;
  --green-soft: #dcf3e4;

  --f-display: 'Archivo', 'Arial Black', sans-serif;
  --f-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-xl: 40px;
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
}
.d-xxl {
  font-size: clamp(56px, 10.5vw, 176px);
}
.d-xl {
  font-size: clamp(44px, 7vw, 112px);
}
.d-lg {
  font-size: clamp(36px, 4.6vw, 72px);
}
.d-md {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}
.d-sm {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.muted {
  color: var(--mute);
}

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #1f47e6;
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: #252325;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-white {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
.btn-white:hover {
  border-color: var(--line-2);
}
.btn-sm {
  --h: 38px;
  padding: 0 18px;
  font-size: 14px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn .arr {
  transition: transform 0.2s;
}
.btn:hover .arr {
  transform: translateX(3px);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: progress;
}

/* ---------- brand mark ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: 22px;
  letter-spacing: -0.04em;
}
/* the re/me badge: 1234 × 780 */
.mark {
  width: 70px;
  height: 44px;
  flex: none;
}

/* ---------- surfaces ---------- */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
}
.card-white {
  background: var(--white);
  border-radius: var(--r-lg);
}
.dotted {
  border: 1.5px dotted var(--ink);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font: 500 12px/1 var(--f-body);
  background: var(--paper);
  border: 1px solid var(--line);
}
.tag-green {
  background: var(--green-soft);
  border-color: transparent;
  color: #146c3a;
}
.tag-blue {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}
.tag .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- url field (pill input + button) ---------- */
.urlbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(7, 6, 7, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.urlbox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.urlbox .prefix {
  padding-left: 14px;
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 13px;
}
.urlbox input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  height: 44px;
  font-size: 16px;
}
.urlbox .btn {
  --h: 44px;
}

@media (max-width: 560px) {
  .urlbox {
    flex-wrap: wrap;
    border-radius: 24px;
  }
  .urlbox input {
    flex-basis: 60%;
  }
  .urlbox .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
