/* ============================================
   LEDE — styles.css
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-Regular.woff2') format('woff2'),
       url('fonts/Lora-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-Bold.woff2') format('woff2'),
       url('fonts/Lora-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sharpie';
  src: url('fonts/Sharpie-Black.woff2') format('woff2'),
       url('fonts/Sharpie-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:           #FFFFFF;
  --text:         #111111;
  --text-muted:   #999999;
  --accent:       #E8B84B;
  --border:       #EBEBEB;

  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Lora', Georgia, serif;
  --font-marker:  'Permanent Marker', cursive;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

/* ============================================
   NAV
   ============================================ */

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 56px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0px;
  line-height: 1;
}

/* ============================================
   RANSOM LETTER HOVER EFFECT
   ============================================ */

.rc {
  display: inline-block;
  font-family: 'Sharpie', cursive;
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--text);
  line-height: 1;
  padding: 6px 2px;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease,
              padding 0.12s ease, font-family 0.12s ease, border-color 0.12s ease;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: default;
}

.rc:hover {
  background: var(--c);
  color: var(--tc, #fff);
  transform: rotate(var(--r, 0deg));
  padding: 6px 7px;
  border-color: rgba(0,0,0,0.18);
}

/* Vary font per letter across 4 image styles */
.rc:nth-child(1):hover,  .rc:nth-child(5):hover  { font-family: 'Times New Roman', serif; }
.rc:nth-child(2):hover,  .rc:nth-child(9):hover   { font-family: Georgia, serif; }
.rc:nth-child(3):hover,  .rc:nth-child(10):hover  { font-family: Impact, 'Arial Black', sans-serif; }
.rc:nth-child(4):hover,  .rc:nth-child(11):hover  { font-family: 'Courier New', monospace; }
.rc:nth-child(6):hover,  .rc:nth-child(12):hover  { font-family: Georgia, serif; }
.rc:nth-child(7):hover,  .rc:nth-child(13):hover  { font-family: 'Times New Roman', serif; }
.rc:nth-child(8):hover                            { font-family: Impact, 'Arial Black', sans-serif; }

.nav-links {
  display: flex;
  gap: 40px;
  justify-self: end;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-link--active {
  color: var(--text) !important;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  max-width: 600px;
  margin: 80px auto 72px;
  padding: 0 24px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #666;
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */

.archive-header {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 56px;
}

.archive-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.archive-divider { color: var(--text-muted); font-size: 0.75rem; }

.archive-count {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   POLAROID GRID
   ============================================ */

.polaroid-grid {
  display: flex;
  flex-direction: row;
  gap: 64px;
  max-width: 1200px;
  margin: 56px auto 120px;
  padding: 0 56px;
  align-items: flex-start;
}


/* ============================================
   POLAROID CARD
   ============================================ */

.polaroid {
  width: 300px;
  flex-shrink: 0;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transform-origin: center;
  padding: 14px 14px 96px 14px;

  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 4px 8px  rgba(0,0,0,0.08),
    0 12px 32px rgba(0,0,0,0.10),
    0 28px 60px rgba(0,0,0,0.07);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polaroid:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 8px 16px  rgba(0,0,0,0.10),
    0 20px 48px rgba(0,0,0,0.13),
    0 40px 80px rgba(0,0,0,0.09);
}

/* Hairline between photo and white strip — the "development line" on a real polaroid */
.polaroid::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 96px;
  height: 1px;
  background: rgba(0,0,0,0.09);
  pointer-events: none;
  z-index: 2;
}

/* Outer frame line */
.polaroid::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,0.06);
  pointer-events: none;
  z-index: 3;
}

/* FEATURED — amber outline */
.polaroid--featured {
  outline: 3.5px solid var(--accent);
  outline-offset: 0;
}

/* PENDING — blurred/mysterious */
.polaroid--pending {
  cursor: default;
}


/* ============================================
   PHOTO AREA
   ============================================ */

.polaroid-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #CCCAC5;
  position: relative;
  display: block;
}

/* Real photo */
.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.85) contrast(1.08) brightness(0.97);
  transition: filter 0.3s ease;
}

.polaroid:hover .polaroid-photo img {
  filter: saturate(1) contrast(1.05) brightness(1);
}

/* Placeholder — awaiting photo */
.polaroid-photo--empty {
  background: linear-gradient(150deg, #D4D0C8 0%, #C2BEB6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-initial {
  font-family: var(--font-marker);
  font-size: 5rem;
  color: rgba(255,255,255,0.4);
  user-select: none;
}

/* ============================================
   BLUR / MYSTERY — for pending cards
   ============================================ */

/* Blur the photo area */
.polaroid--pending .polaroid-photo--empty {
  filter: blur(10px);
  transform: scale(1.05); /* prevent blur fringe at edges */
}

/* Frosted overlay on top of the blurred photo */
.polaroid--pending .polaroid-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

/* Blur the label text */
.polaroid--pending .label-text {
  filter: blur(4px);
  user-select: none;
}

/* ============================================
   POLAROID LABEL (white strip)
   ============================================ */

.polaroid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.label-text {
  font-family: var(--font-marker);
  font-size: 1.45rem;
  color: #111111;
  line-height: 1.2;
  max-width: 100%;
}

.label-sub {
  font-family: var(--font-marker);
  font-size: 0.78rem;
  color: #555;
  line-height: 1.3;
}



/* ============================================
   FLOATING LETTERS — about page background
   ============================================ */

.float-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fb {
  position: absolute;
  font-family: 'Sharpie', cursive;
  font-weight: 900;
  font-size: 1.8rem;
  background: var(--c);
  color: #fff;
  padding: 6px 9px;
  border-radius: 2px;
  border: 2px solid rgba(0,0,0,0.1);
  opacity: 0.28;
  transform: rotate(var(--r, 0deg));
  animation: floatBob var(--du, 7s) var(--d, 0s) infinite ease-in-out;
}

@keyframes floatBob {
  0%,  100% { transform: translateY(0px)   rotate(var(--r, 0deg)); }
  50%        { transform: translateY(-20px) rotate(calc(var(--r, 0deg) + 1.5deg)); }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 56px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-social-link:hover { color: var(--text); }

.footer-logo-text {
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-logo-text .rc {
  font-size: 1.3rem;
  padding: 3px 1px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-subscribe-label {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.subscribe-form { display: flex; gap: 8px; }

.subscribe-input {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 2px;
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}

.subscribe-input:focus { border-color: #AAAAAA; }
.subscribe-input::placeholder { color: var(--text-muted); }

.subscribe-btn {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 22px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.subscribe-btn:hover { background: #333; }

.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-base p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.article-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-byline {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.article-photo {
  width: 100%;
  overflow: hidden;
  margin-bottom: 56px;
}

.article-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.88) contrast(1.06) brightness(0.97);
}

.article-body p {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #222;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.article-h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin: 52px 0 20px;
  letter-spacing: -0.02em;
}

.article-quote {
  border-left: 2px solid var(--text);
  padding: 2px 0 2px 22px;
  margin: 32px 0 32px 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0rem;
  font-style: italic;
  line-height: 1.75;
  color: #444;
}

.article-img {
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
}

.article-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.88) contrast(1.06) brightness(0.97);
}

.article-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px 0;
}

.article-img-pair img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.06) brightness(0.97);
}

.article-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}

.article-link:hover {
  opacity: 0.7;
}

.article-closer {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 48px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-stage {
  position: relative;
  width: 100%;
}

.about-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 56px 120px;
  position: relative;
  z-index: 1;
}

.about-hero {
  margin-bottom: 56px;
}

.about-statement {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
}

.scrap {
  display: inline-block;
  background: var(--c, #C4A060);
  color: var(--tc, #111);
  font-family: var(--f, Georgia, serif);
  transform: rotate(var(--r, 0deg));
  padding: 1px 4px;
  border-radius: 1px;
  border: 1.5px solid rgba(0,0,0,0.1);
  line-height: 1;
  vertical-align: -3px;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 56px;
}

.about-body p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #444;
  letter-spacing: -0.01em;
}

/* ============================================
   LANDING PAGE
   ============================================ */

@keyframes scrapCycle {
  0%,  28%   { background: transparent; color: var(--text); transform: rotate(0deg); border-color: transparent; }
  38%, 62%   { background: var(--c); color: var(--tc, #fff); transform: rotate(var(--r, 0deg)); border-color: rgba(0,0,0,0.18); }
  72%, 100%  { background: transparent; color: var(--text); transform: rotate(0deg); border-color: transparent; }
}

.ra {
  display: inline-block;
  font-family: 'Sharpie', cursive;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  color: var(--text);
  line-height: 1;
  padding: 6px 4px;
  border: 2px solid transparent;
  border-radius: 3px;
  animation: scrapCycle var(--du, 8s) var(--d, 0s) infinite ease-in-out;
}

.hero-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 73px);
  text-align: center;
  padding: 48px 24px;
}

.hero-landing-text {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.hero-landing-word {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  vertical-align: bottom;
}

.hero-landing-word .ra {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  padding: 3px 3px;
}

.hero-btn {
  display: inline-block;
  margin-top: 52px;
  padding: 14px 36px;
  background: #3B6FD8;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}

.hero-btn:hover {
  background: #2B5CC7;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .polaroid-grid { padding: 0 24px; gap: 28px; }
  .polaroid { width: 240px; padding: 12px 12px 80px 12px; }
  .polaroid::before { bottom: 80px; left: 12px; right: 12px; }
  .polaroid-label { height: 80px; padding: 0 12px; }
  .label-text { font-size: 1rem; }
  .archive-header { padding: 0 24px; }
  .essays-strip-inner { padding: 0 24px; }
  .footer { padding: 48px 24px 32px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 600px) {
  /* Nav — stack logo above links, both centred */
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
  }
  .nav-logo { grid-column: unset; }
  .nav-logo .rc { font-size: 1.45rem; padding: 3px 1px; }
  .nav-links { justify-self: unset; gap: 24px; }
  .nav-links a { font-size: 0.85rem; }

  /* Polaroids — stack vertically, centred */
  .polaroid-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
    margin: 40px auto 80px;
  }
  .polaroid { width: 100%; max-width: 320px; }

  /* Footer / forms */
  .subscribe-form { flex-direction: column; }
  .subscribe-input { width: 100%; }
}
