@font-face {
  font-family: "Optician Sans";
  src: url("fonts/optician-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v32-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v32-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v32-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v32-latin-500italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

html {
  font-size: 17px;
}

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --fg: #111111;
  --muted: #757575;
  --border: rgba(0, 0, 0, 0.06);
  --accent: #3e5fe5;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Hero photo row */
.hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.hero-photo {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro */
.intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

h1 {
  font-family: "Optician Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  max-width: 24rem;
  margin-inline: auto;
}

/* Links */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.links a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(62, 95, 229, 0.25);
  outline: none;
}

.link-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.link-thumb svg {
  width: 58%;
  height: 58%;
  display: block;
}

/* Per-platform brand colors */
.link-thumb[data-platform="glass"]      { background: #FFCC00; }
.link-thumb[data-platform="bluesky"]    { background: #1185fe; }
.link-thumb[data-platform="mastodon"]   { background: #6364ff; }
.link-thumb[data-platform="letterboxd"] { background: #14181c; }

/* Letterboxd dots need a tiny bit more room */
.link-thumb[data-platform="letterboxd"] svg { width: 72%; height: 72%; }

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.link-name {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
}

.link-handle {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links a:hover .link-name,
.links a:focus-visible .link-name {
  color: var(--accent);
}

@media (max-width: 28rem) {
  body { padding: 1.5rem 1rem 3rem; }
  main { gap: 1.75rem; }
  .hero { gap: 0.375rem; }
}
