/* ---------------------------------------------------
   Tokens
--------------------------------------------------- */
:root {
  --bg: #15141a;
  --bg-panel: #1c1a21;
  --ink: #ece6da;
  --ink-muted: #948c82;
  --wine: #a34345;
  --line: #322d34;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.22, .61, .36, 1); }
}

/* ---------------------------------------------------
   Base
--------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

h2, h3 {
  font-family: var(--serif);
  font-weight: 480;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--ink); }

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

:focus-visible {
  outline: 1.5px solid var(--wine);
  outline-offset: 3px;
}

/* ---------------------------------------------------
   Top bar
--------------------------------------------------- */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem var(--gutter);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 480;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease, ease);
}

.nav a + a {
  margin-left: 1.75rem;
}

.nav a:hover { color: var(--ink); }

/* ---------------------------------------------------
   About
--------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: 2rem var(--gutter) 6rem;
  max-width: 1180px;
  margin: 0 auto;
  opacity: 0;
  animation: rise 0.9s var(--ease, ease) 0.1s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .about { opacity: 1; animation: none; }
}

.about-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.about-copy .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: var(--measure);
  margin-bottom: 1.1em;
}

.about-copy p:not(.lede) {
  max-width: var(--measure);
  color: var(--ink);
}

.about-copy p:not(.lede):not(:first-of-type) {
  color: var(--ink-muted);
}

/* ---------------------------------------------------
   Works
--------------------------------------------------- */
.works {
  padding: 4rem var(--gutter) 6rem;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.works h2 {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

.work {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.work:last-child { padding-bottom: 0; }

.work-meta h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.work-sub {
  color: var(--wine);
  font-size: 0.88rem;
  margin-bottom: 0.9em;
}

.work-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

.work-player {
  align-self: start;
}

.work-player iframe {
  display: block;
  border: 1px solid var(--line);
}

.sc-credit {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-credit a {
  color: var(--ink-muted);
}

.sc-credit a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------
   Reels
--------------------------------------------------- */
.reels {
  padding: 4rem var(--gutter) 6rem;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.reels h2 {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.reel-item {
  display: flex;
  flex-direction: column;
}

.reel-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.reel-item .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
}

@media (max-width: 620px) {
  .reel-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact {
  padding: 4rem var(--gutter) 6rem;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact .lede {
  color: var(--ink-muted);
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.contact .email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.6rem;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 0.15em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact .email:hover {
  color: var(--wine);
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
}

.footer p {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 720px) {
  .about,
  .work {
    grid-template-columns: 1fr;
  }

  .about-figure {
    max-width: 320px;
  }

  .work-desc {
    max-width: none;
  }
}
