/* Songs by Andres — Modernist design system tokens + components, plus page layout.
   Flat, architectural, Archivo type, single red accent, zero border-radius, strong 2px rules. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-accent-100: #fff2ef;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-md: 0px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);

  --leading: 28px;
  --content-max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
}

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--color-accent-700);
  text-decoration: none;
}
a:hover { color: var(--color-accent); text-decoration: underline; }

img { display: block; max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.grayscale { filter: grayscale(1) contrast(1.08); }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hr {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--color-accent); color: var(--color-bg); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; background: transparent; color: var(--color-accent); }

.btn-ghost {
  border-color: var(--color-bg);
  color: var(--color-bg);
}
.btn-ghost:hover { background: var(--color-bg); color: var(--color-accent); }

/* — tags — */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: default;
}
.chip:hover { background: var(--color-accent); color: var(--color-bg); }

/* — forms — */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 130px; resize: vertical; }

/* — cards — */
.card {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-neutral, #d7d3d3);
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-text) 8%, transparent),
    color-mix(in srgb, var(--color-text) 8%, transparent) 2px,
    transparent 2px,
    transparent 14px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-body { padding: var(--space-4); }
.card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 4px;
}
.card-meta {
  margin: 0;
  font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

/* — navigation — */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--gutter);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 18px;
  margin-right: auto;
  display: inline-flex;
  align-items: baseline;
}
.nav-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--color-accent);
  animation: sbaCursorBlink 1s step-end infinite;
}
@keyframes sbaCursorBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.nav-links { display: flex; gap: var(--space-4); }
.nav-links a { color: inherit; text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--color-accent); text-decoration: underline; }

/* — sections — */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero {
  padding: calc(4 * var(--leading)) 0 calc(3 * var(--leading));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-headline {
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-subhead {
  font-size: 17px;
  line-height: 1.65;
  max-width: 46ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  will-change: transform;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.section { padding: calc(2.5 * var(--leading)) 0; }
.section-tag { margin-bottom: 16px; display: inline-block; }
.section-heading {
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.about-body { max-width: 58ch; }
.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: 0 0 18px;
}
.about-body p:last-child { margin: 0; }

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.panel h2 {
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.panel-intro {
  font-size: 15.5px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: 0 0 20px;
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

.help-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.help-list li {
  padding: 16px 0;
  border-bottom: 2px solid var(--color-divider);
  font-size: 15.5px;
  line-height: 1.5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collab {
  background: var(--color-accent);
  color: var(--color-bg);
}
.collab-inner {
  padding: calc(3 * var(--leading)) var(--gutter);
}
.collab h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.collab p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 28px;
}
.collab-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.collab-link { color: var(--color-bg); text-decoration: underline; font-size: 14px; }
.collab-link:hover { color: var(--color-bg); opacity: 0.85; }

.contact { max-width: 560px; }
.contact form { display: grid; gap: 18px; }
.contact .btn { justify-self: start; }
.turnstile { min-height: 65px; }
.contact-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.contact-status.is-error { color: var(--color-accent-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer {
  padding: 28px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 14px; }
.footer-links { display: flex; gap: 16px; font-size: 13px; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--color-accent); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-portrait img { transform: none; }
  .nav-cursor { animation: none; }
}
