/* Fermín Larrarte — personal professional page
   Editorial, minimal, no color beyond ink/paper. System fonts only. */

:root {
  --paper: #faf8f5;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --rule: #ddd7cd;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 640px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 28px;
}

a {
  color: var(--ink);
}

a:hover,
a:focus {
  color: var(--ink-soft);
}

/* Hero */

.hero {
  padding: 112px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.hero .eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.hero .descriptor {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}

.hero .location {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

#profile p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0 0 20px;
  max-width: 58ch;
}

#profile p:last-child {
  margin-bottom: 0;
}

/* Experience entries */

.entry {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.entry:first-of-type {
  border-top: none;
  padding-top: 0;
}

.entry h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.entry .role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.entry p:not(.role) {
  margin: 0;
  max-width: 56ch;
  color: var(--ink);
}

/* Areas */

.areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}

.areas-list li {
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

/* Links */

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-list li {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.links-list a {
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.links-list a:hover {
  text-decoration: underline;
}

/* Footer */

footer {
  padding: 40px 28px 64px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer p {
  margin: 0 0 4px;
}

/* Responsive */

@media (max-width: 520px) {
  .hero {
    padding: 72px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .areas-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 0.15s ease;
  }
}
