/* tazfarrito.com: type-led, warm, light/dark aware. System fonts only (no font downloads). */
:root {
  --paper: #f5efe6;
  --ink: #221c18;
  --muted: #6f625a;
  --line: #ddd1c3;
  --accent: #a8482a;        /* terracotta */
  --accent-ink: #fff8f2;
  --frame: #ebe1d4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181412;
    --ink: #f1e8dd;
    --muted: #a8998d;
    --line: #3a302a;
    --accent: #e0835c;
    --accent-ink: #1b1411;
    --frame: #241d19;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 26rem;
  padding: max(3.5rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Fade in once links.json has rendered. Only when JS runs, so a no-JS visitor still sees the page. */
@media (scripting: enabled) {
  .card { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
  .card.is-ready { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; transform: none; } }

/* Photo slot. Without a photo it shows a monogram; set "photo" in links.json to fill it. */
.portrait {
  margin: 0 0 1.75rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: var(--frame);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--photo { border-color: transparent; }
.monogram {
  font-family: var(--serif);
  font-size: 2.1rem;
  letter-spacing: .02em;
  color: var(--ink);
}
.monogram i { color: var(--accent); font-style: italic; padding: 0 .08em; }

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.handle {
  margin: .5rem 0 0;
  font-size: .875rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.bio {
  margin: 1.25rem 0 0;
  max-width: 20rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.bio:empty, .handle:empty { display: none; }

.links {
  width: 100%;
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: transform .12s ease, background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { border-color: var(--accent); filter: brightness(1.06); }
.btn:focus-visible, .foot__link:focus-visible, .brands__email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brands {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 22rem;
  font-size: .95rem;
  color: var(--muted);
}
.brands__text { margin: 0 0 .75rem; }
.brands__email { color: var(--ink); text-underline-offset: 3px; }

.foot { margin-top: auto; padding-top: 3rem; }
.foot__link {
  background: none;
  border: 0;
  padding: .5rem;
  font: inherit;
  font-size: .85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
