/* ---- Theme: matched to tomasespinoza.com (css/style.css tokens) ----- */

/* Self-hosted fonts, same files as the main site */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/playfair-display-latin.woff2') format('woff2');
}

:root {
  --bg:          #FAFAF8;   /* --color-bg */
  --ink:         #1A1A1A;   /* --color-text */
  --muted:       #6B6B6B;   /* --color-text-muted */
  --card:        #FFFFFF;   /* --color-white */
  --border:      #E5E3DF;   /* --color-border */
  --accent:      #8B7355;   /* --color-accent (warm taupe) */
  --accent-hover:#7A6448;   /* --color-accent-hover */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: var(--maxw);
  padding: clamp(2.5rem, 9vw, 4rem) 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Profile ------------------------------------------------------- */
.profile {
  text-align: center;
  margin-bottom: 2rem;
}

/* Holds the inline monogram SVG; becomes a circular photo if a
   square avatar.jpg is dropped in the folder (see config.js). */
.avatar {
  width: 116px;
  height: 116px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar svg { width: 100%; height: 100%; }
.avatar.photo {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.tagline {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 24rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Links: sharp corners + uppercase, like the site's .btn -------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.link:hover,
.link:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.link .icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  opacity: 0.55;
}
.link .icon svg { width: 18px; height: 18px; }

.link .label { flex: 1 1 auto; }

.link .chev {
  flex: 0 0 auto;
  opacity: 0.3;
  transition: transform 0.2s ease;
}
.link:hover .chev { transform: translateX(3px); }

/* Primary (hero) button — the site's .btn--primary: solid near-black,
   inverts on hover */
.link.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
.link.primary .icon,
.link.primary .chev { opacity: 0.8; }
.link.primary:hover,
.link.primary:focus-visible {
  background: transparent;
  color: var(--ink);
}
.link.primary:hover .icon,
.link.primary:hover .chev { opacity: 0.55; }

/* ---- Footer -------------------------------------------------------- */
.foot {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
