/* Reel Season — shared styles */
:root {
  --ivory: #F4F1EA;
  --ink: #141414;
  --muted: #6B675F;
  --body: #57534B;
  --line: #D6D0C4;
  --placeholder: #E6E1D6;
  --accent: #8A1C2B;
  --panel: #111111;
  --panel-text: #EDEAE3;
  --panel-prompt: #D7D2C8;
  --panel-muted: #A39D92;
  --panel-line: #2A2A2A;
  --panel-heart: #E46A78;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { display: block; }
button { font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.page { min-height: 100vh; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* Labels */
.label { margin: 0; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dot-label { display: flex; align-items: center; gap: 8px; }
.dot-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; padding-top: 28px; }
.brand { display: flex; flex-direction: column; gap: 8px; }
.wordmark { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.tagline { margin: 0; font-size: 10px; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pill-link { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; text-decoration: none; }
.header-link { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Gallery page tabs */
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; text-underline-offset: 6px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.site-nav .nav-logout { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 0 18px; min-height: 38px; }
.view[hidden] { display: none; }
@media (max-width: 640px) {
  /* Phone: Log out sits top right, next to the wordmark; tabs stay on the row below */
  .site-header { position: relative; }
  .site-nav .nav-logout { position: absolute; top: 24px; right: 0; }
}

/* Figures */
.frame { margin: 0; }
.frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--placeholder); }
.frame figcaption { margin-top: 10px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 28px 0 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Log in ---------- */
.login-main { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 96px; }
.login-copy { flex: 1 1 420px; min-width: 0; max-width: 520px; padding-bottom: 12px; }
.login-copy .dot-label { margin-bottom: 20px; }
.login-title { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 0.98; font-weight: 500; letter-spacing: -0.035em; }
.login-lede { margin: 24px 0 40px; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 420px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.code-input { height: 54px; border: none; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font: inherit; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 2px; color: var(--ink); }
.code-input::placeholder { color: var(--muted); }
.form-error { margin: 0; min-height: 18px; font-size: 13px; color: var(--accent); }
.btn-primary { margin-top: 8px; height: 54px; border: none; border-radius: 999px; background: var(--ink); color: var(--ivory); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }
.login-note { margin: 28px 0 0; font-size: 13px; color: var(--body); }
.login-frames { flex: 1.4 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.login-frames .frame--tall { margin-bottom: 48px; }
.login-frames .frame--tall img { aspect-ratio: 3 / 4.6; }

/* ---------- Gallery ---------- */
.gallery-hero { padding-top: 88px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.gallery-hero .dot-label { margin-bottom: 18px; }
.gallery-title { margin: 0; font-size: clamp(44px, 7vw, 92px); line-height: 0.95; font-weight: 500; letter-spacing: -0.04em; }
.gallery-intro { margin: 0; max-width: 300px; font-size: 13px; line-height: 1.6; color: var(--body); }

/* Season banner with the headline on top of the photo */
.season-hero { position: relative; margin-top: 64px; border-radius: 12px; overflow: hidden; background: #2A2A2A; color: var(--ivory); }
.season-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 35%; }
/* darkening along the bottom and left so the light text stays readable on the snow */
.season-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.72) 0%, rgba(12, 11, 10, 0.35) 42%, rgba(12, 11, 10, 0) 70%),
              linear-gradient(to right, rgba(12, 11, 10, 0.35) 0%, rgba(12, 11, 10, 0) 55%); }
.season-hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; }
.season-hero-text .dot-label { margin-bottom: 14px; color: var(--ivory); }
.season-hero-text .dot-label::before { background: var(--ivory); }
.season-hero-text .gallery-title { color: var(--ivory); text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25); }
.season-hero-text .gallery-intro { color: #EDEAE3; }
@media (max-width: 760px) {
  .season-hero { margin-top: 40px; }
  .season-hero-img { aspect-ratio: 3 / 4; object-position: 64% 30%; }
  .season-hero-text .gallery-intro { font-size: 13px; }
}

.seasons { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.season-btn { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); font-size: 13px; cursor: pointer; }
.season-btn[disabled] { border: 1px dashed #A8A194; background: transparent; color: var(--body); display: flex; align-items: center; gap: 8px; cursor: default; }

.toolbar { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.tabs { display: flex; gap: 32px; }
.tab { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: none; border-bottom: 2px solid transparent; padding: 12px 0; min-height: 44px; cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .heart-icon { color: var(--accent); }
.search { display: flex; align-items: center; gap: 10px; min-height: 52px; flex: 0 1 320px; }
.search input { flex: 1; min-width: 0; height: 44px; border: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }

/* Category dropdown */
.toolbar-tools { display: flex; align-items: center; gap: 0 28px; flex: 0 1 auto; min-width: 0; }
.toolbar-tools .search { flex: none; width: 260px; }
.cat-select { position: relative; display: flex; align-items: center; color: var(--ink); }
.cat-select select { -webkit-appearance: none; appearance: none; height: 44px; padding: 0 22px 0 0; border: none; background: transparent; font: inherit; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); cursor: pointer; max-width: 100%; }
.cat-select svg { position: absolute; right: 2px; pointer-events: none; }
@media (max-width: 760px) {
  .toolbar-tools { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); }
  .toolbar-tools { flex-wrap: wrap; }
  .toolbar-tools .search { flex: 1 1 160px; width: auto; }
}

.empty { padding: 120px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.empty[hidden] { display: none; }
.empty .heart-icon { color: var(--accent); }
.empty-title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.empty-text { margin: 0; font-size: 14px; color: var(--body); max-width: 340px; line-height: 1.6; }

.grid { margin-top: 56px; scroll-margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; column-gap: 12px; } }
.card-media { position: relative; }
.card-open { display: block; width: 100%; padding: 0; border: none; border-radius: 12px; overflow: hidden; background: var(--placeholder); cursor: zoom-in; }
.card-open img { width: 100%; aspect-ratio: 768 / 1376; object-fit: cover; transition: opacity .2s ease; } /* the images' real shape, so nothing is cut off */
.card-open:hover img { opacity: .88; }
.card-heart { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(244, 241, 234, 0.92); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.card-heart[aria-pressed="true"] { color: var(--accent); }
.card-title { margin-top: 12px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.card-cat { margin-top: 4px; font-size: 12px; color: var(--muted); }

.pager { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pager[hidden] { display: none; }
.pager-range { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pager-buttons { display: flex; align-items: center; gap: 4px; }
.pager button { background: none; border: none; min-width: 44px; min-height: 44px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; color: var(--ink); padding: 0 12px; text-underline-offset: 5px; }
.pager button[disabled] { color: var(--muted); cursor: default; }
.pager .page-num { color: var(--muted); padding: 0; }
.pager .page-num[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Heart icon fill swap */
.heart-icon { --heart-fill: none; }
[aria-pressed="true"] .heart-icon, .heart-icon.filled { --heart-fill: currentColor; }

/* About */
.about { padding-top: 88px; display: flex; flex-direction: column; gap: 32px; } /* "About me" label sits above the bio */
.about-label { min-width: 0; }
.about-body { min-width: 0; display: flex; flex-wrap: wrap; gap: 48px; }
.about-text { flex: 1.3 1 360px; min-width: 0; }
.about-title { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.0; font-weight: 500; letter-spacing: -0.035em; }
.about-text p { margin: 18px 0 0; font-size: 15px; line-height: 1.7; color: #3F3C36; text-wrap: pretty; }
.about-title + p { margin-top: 32px; }
.about-link { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.about .frame { flex: 1 1 260px; min-width: 0; }

/* Guidelines */
.guide { padding-top: 88px; }
.guide-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.guide-hero .dot-label { margin-bottom: 18px; }
.guide-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; gap: 48px; } }
.guide-block h2, .guide-broken h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.guide-intro { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.guide-list { list-style: none; margin: 12px 0 0; padding: 0; }
.guide-list li { position: relative; padding: 14px 0 14px 32px; font-size: 15px; line-height: 1.6; color: #3F3C36; text-wrap: pretty; }
.guide-list li + li { border-top: 1px solid var(--line); } /* lines only between items */
.guide-list li::before { content: ''; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; background: var(--ink); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.guide-list--no { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); }
.guide-list--yes { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.guide-section { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 28px; }
.guide-section .guide-grid { margin-top: 32px; }
.guide-broken p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: #3F3C36; max-width: 560px; }
.guide-cta { margin-top: 64px; background: var(--ink); color: var(--ivory); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.guide-cta h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.guide-cta p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.6; color: #D7D2C8; }
.guide-note { margin: 32px 0 0; font-size: 13px; line-height: 1.7; color: var(--body); }

/* ---------- Prompt preview ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(12, 11, 10, 0.72); display: flex; align-items: center; justify-content: center; padding: clamp(0px, 3vw, 40px); }
.overlay[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal { width: 100%; max-width: 1280px; height: min(880px, 100vh); background: var(--panel); color: var(--panel-text); overflow: hidden; display: flex; }
.modal-img { position: relative; flex: none; height: 100%; aspect-ratio: 768 / 1376; max-width: 45%; background: #0B0B0B; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-close-img { display: none; position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(17, 17, 17, 0.7); color: var(--panel-text); align-items: center; justify-content: center; cursor: pointer; }
.modal-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: clamp(24px, 3vw, 44px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-cat, .modal-model, .modal-label { margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-muted); }
.modal-cat { margin-bottom: 10px; }
.modal-model { margin-top: 10px; font-size: 12px; }
.modal-label { font-size: 12px; }
.modal-title { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.025em; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; color: var(--panel-text); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.modal-actions { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--panel-line); padding-top: 20px; }
.modal-actions-buttons { display: flex; gap: 10px; }
.btn-love { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #3A3A3A; background: transparent; color: var(--panel-text); display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.btn-love[aria-pressed="true"] .heart-icon { color: var(--panel-heart); }
.btn-copy { height: 44px; padding: 0 20px; border-radius: 999px; border: none; background: var(--ivory); color: var(--panel); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.modal-prompt { margin-top: 18px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 12px; font-size: 15px; line-height: 1.7; color: var(--panel-prompt); white-space: pre-wrap; }
.modal-prompt::-webkit-scrollbar { width: 6px; }
.modal-prompt::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 3px; }
.modal-nav { margin-top: 20px; border-top: 1px solid var(--panel-line); padding-top: 12px; display: flex; justify-content: space-between; }
.modal-nav button { min-height: 44px; background: none; border: none; color: var(--panel-text); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 640px) {
  .overlay { padding: 72px 10px 0; align-items: flex-end; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .modal { flex-direction: column; height: 100%; max-width: none; border-radius: 24px 24px 0 0; }
  .modal-img { height: 34vh; width: 100%; max-width: none; aspect-ratio: auto; align-self: stretch; }
  .modal-img img { object-position: center 30%; }
  /* Phone: title, buttons and Prev/Next stay put; only the prompt box scrolls */
  .modal-info { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 20px 20px 6px; }
  .modal-title { font-size: 26px; }
  .modal-actions { margin-top: 16px; padding-top: 14px; }
  .modal-prompt { flex: 1 1 auto; min-height: 140px; margin-top: 14px; padding: 14px 10px 14px 14px; border: 1px solid var(--panel-line); border-radius: 12px; font-size: 14px; line-height: 1.65; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-nav { margin-top: 6px; padding-top: 4px; border-top: none; }
}
