/* Outfit: the live ascaribe.com typeface, kept for brand continuity. SIL OFL 1.1, see assets/fonts/OFL.txt */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/outfit-latin-var.woff2") format("woff2");
}

/* Design tokens. Palette is the existing A&S Caribe brand: black ground, white type, terracotta ampersand. */
:root {
  color-scheme: dark;

  --ground: #0c0c0c;
  --ink: #f5f4f2;
  --muted: #a8a6a3;
  --rule: #2b2b2b;
  --control-border: #6e6e6e;
  --accent: #e86a2a;
  --accent-hover: #f0824a;
  --on-accent: #0c0c0c;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1.1rem + 5.6vw, 5.5rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 144px;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1160px;
  --radius: 6px;

  --speed: 160ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a[href], button, summary, label[for] { cursor: pointer; }

a { color: inherit; }

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

.amp { color: var(--accent); font-weight: inherit; }

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

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--ground);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* Header: wordmark, a link to the contact section below, and the switch to the other language. */
.site-header { padding-block: var(--space-4); }
.site-header .wrap { --od-gap: var(--space-4); justify-content: space-between; }
.site-nav { --od-gap: var(--space-4); }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 450;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--muted);
  transition: text-decoration-color var(--speed) var(--ease-out), text-decoration-thickness var(--speed) var(--ease-out);
}

/* Language switch sits one step below Contact in the hierarchy; hover brightens it to full ink. */
.lang-link { color: var(--muted); transition: color var(--speed) var(--ease-out), text-decoration-color var(--speed) var(--ease-out), text-decoration-thickness var(--speed) var(--ease-out); }

/* Hero: one focal statement. Spacing grows with the viewport so phones stay short. */
.hero { padding-block: var(--space-6) var(--space-8); }

.hero h1 {
  max-width: 17ch;
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* Spanish runs longer; a slightly wider measure keeps the headline at three lines from tablet up, matching English. */
.hero h1:lang(es) { max-width: 19ch; }

.hero-lede {
  max-width: 36ch;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.5;
}
.hero-lede strong { color: var(--ink); font-weight: 500; }

.actions { --od-gap: var(--space-3); margin-top: var(--space-6); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: background-color var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--control-border); }
.button:active { transform: translateY(1px); }

/* Sections share a header row; composition below it changes per section. */
.section { padding-block: var(--space-7); border-top: 1px solid var(--rule); }

.section-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--muted);
}

/* Offers: three rows that read as one sentence, joined by the brand ampersand. */
.offers { margin-top: var(--space-5); }

.offer {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule);
}
.offer:first-child { border-top: 0; padding-top: 0; }

.offer h3 {
  font-size: var(--text-xl);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.offer-body { max-width: 62ch; color: var(--muted); }
.offer-body p + p { margin-top: var(--space-3); }
.offer-body .lead { color: var(--ink); }

.tools { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--muted); }

/* Work: short text columns, links to live sites. */
.work { --od-cols: 1; --od-gap: var(--space-5); margin-top: var(--space-5); }

.work-item { --od-gap: var(--space-1); }
.work-item a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--muted);
  transition: text-decoration-color var(--speed) var(--ease-out), text-decoration-thickness var(--speed) var(--ease-out);
}
.work-item p { color: var(--muted); }
.work-kind { font-size: var(--text-sm); color: var(--muted); }

/* Contact: the closing focal point, big enough to copy by eye. */
.contact h2 {
  max-width: 18ch;
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.contact-lede { max-width: 48ch; margin-top: var(--space-4); color: var(--muted); }

.channels { --od-gap: var(--space-5); margin-top: var(--space-6); }
.channel { --od-gap: var(--space-1); }
.channel-label { font-size: var(--text-sm); color: var(--muted); }
.channel a {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--accent);
  overflow-wrap: anywhere;
  transition: text-decoration-thickness var(--speed) var(--ease-out);
}

.site-footer {
  padding-block: var(--space-5) var(--space-6);
  border-top: 1px solid var(--rule);
  font-size: var(--text-sm);
  color: var(--muted);
}
.site-footer .wrap { --od-gap: var(--space-2) var(--space-4); }

/* Pointer-only feedback: underline thickens or appears, so hover never relies on color alone. */
@media (hover: hover) {
  .text-link:hover,
  .work-item a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
  .lang-link:hover { color: var(--ink); }
  .channel a:hover { text-decoration-thickness: 3px; }
  .button-primary:hover { background: var(--accent-hover); text-decoration-line: underline; }
  .button-secondary:hover { border-color: var(--ink); text-decoration-line: underline; }
}

@media (min-width: 768px) {
  .hero { padding-block: var(--space-8) var(--space-9); }
  .section { padding-block: var(--space-8); }
  .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); padding-block: var(--space-6); }
  .offer h3 { padding-top: 2px; }
  .work { --od-cols: 3; --od-gap: var(--space-6); }
  .channels { flex-direction: row; flex-wrap: wrap; --od-gap: var(--space-8); }
}

@media (min-width: 1024px) {
  .section-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--space-6); }
  .section-grid > .section-title { padding-top: 6px; }
  .section-grid > .offers,
  .section-grid > .work { margin-top: 0; }
  .hero { padding-block: var(--space-9) 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
