/* ································································
   Ale Gómez · portfolio
   Minimal editorial: warm paper, ink text, one vermilion accent.
   No animations, no effects. The work does the talking.
   ································································ */

:root {
  --paper: #faf8f3;
  --ink: #1a1815;
  --muted: #8a857c;
  --line: #e5e1d6;
  --accent: #d9432b;
  --font: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(5rem, 12vh, 8rem);
  color-scheme: light dark;
}

/* Dark version: follows the visitor's system setting. Same warm
   family as the light theme, the screening room instead of the page. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181613;
    --ink: #ece9e2;
    --muted: #8f897e;
    --line: #312e28;
    --accent: #e8553d;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

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

/* ······ nav ······ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem var(--pad);
  font-size: 0.875rem;
  background: var(--paper);
}

.nav-name { font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-contact { color: var(--accent); }

@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-contact) { display: none; }
}

/* ······ hero ······ */

.hero {
  padding: clamp(9rem, 22vh, 14rem) var(--pad) var(--section-gap);
  max-width: 78rem;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-line {
  font-size: clamp(1.1875rem, 2.6vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  max-width: 30ch;
  line-height: 1.3;
}

/* ······ sections ······ */

.section {
  padding: 0 var(--pad);
  margin: 0 auto var(--section-gap);
  max-width: 78rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-note {
  color: var(--muted);
  max-width: 34ch;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .section-head { flex-direction: column; gap: 0.75rem; }
}

/* ······ placeholders ······ */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      var(--line) 14px 15px
    );
  color: var(--muted);
}
.ph span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  background: var(--paper);
  padding: 0.4rem 0.7rem;
}

.ph-phone { aspect-ratio: 9 / 19; }
.ph-portrait { aspect-ratio: 3 / 4; }
.r-43 { aspect-ratio: 4 / 3; }
.r-34 { aspect-ratio: 3 / 4; }
.r-11 { aspect-ratio: 1 / 1; }

/* ······ links ······ */

.link-accent {
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link-accent:hover { color: var(--ink); }

/* ······ apps ······ */

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }

.app-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-desc { color: var(--muted); margin: 0.5rem 0 1rem; max-width: 40ch; }

/* ······ photography ······ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

/* ······ projects ······ */

.project-list { list-style: none; }

.project {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}
.project + .project { margin-top: 2.75rem; }

.project-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-desc { color: var(--muted); margin-top: 0.25rem; max-width: 50ch; }

.project-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
  text-align: right;
}
.project-year {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.project-pending .project-title { color: var(--muted); }

@media (max-width: 600px) {
  .project { flex-direction: column; gap: 0.75rem; }
  .project-side { align-items: flex-start; text-align: left; }
}

/* ······ about ······ */

.about {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.about-portrait { max-width: 20rem; }

.about-text { max-width: 58ch; }
.about-text p + p { margin-top: 1.25rem; }

.about-closing {
  font-weight: 500;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

/* ······ cv ······ */

.cv-group + .cv-group { margin-top: clamp(3rem, 6vh, 4.5rem); }

.cv-group-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.cv-list { list-style: none; }

.cv-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.cv-item + .cv-item { margin-top: 2.25rem; }

/* Company / school mark: any logo rendered as a single ink silhouette
   (ink fill clipped by a CSS mask) so brand colours never fight the
   palette, and it flips lighter in dark mode like the rest. Needs a
   transparent asset; the alpha channel defines the shape. The
   mask-image is set inline per entry with a root-relative path.
   An empty .cv-mark stays invisible but reserves the column, so rows
   line up even before every logo is in. */
.cv-logo,
.cv-mark,
.cv-self {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  margin-top: 0.15rem;
}
.cv-logo {
  background-color: var(--ink);
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* Personal mark for the freelance / own-practice roles: the site's
   accent icon (rounded square), in the accent colour rather than ink,
   so they read as "Ale" rather than a company. Flips with the accent
   in dark mode, like the favicon. */
.cv-self {
  background-color: var(--accent);
  border-radius: 19%;
}

.cv-main { flex: 1; min-width: 0; }

.cv-role {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.cv-org { font-weight: 500; margin-top: 0.15rem; }
.cv-note { color: var(--muted); margin-top: 0.4rem; max-width: 52ch; }

.cv-year {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
  margin-top: 0.2rem;
}

.cv-skills { max-width: 60ch; }

@media (max-width: 600px) {
  .cv-item { gap: 0.85rem; }
}

/* ······ contact / footer ······ */

.contact {
  padding: 0 var(--pad) 3rem;
  margin: 0 auto;
  max-width: 78rem;
}

.contact-mail {
  display: inline-block;
  font-size: clamp(1.375rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.contact-mail:hover { color: var(--accent); }

.contact-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
}
.contact-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.contact-links a:hover { color: var(--ink); }

.contact-fine {
  margin-top: 4rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
