/* ============================================================
   KEYS EXOTIC — Shared Stylesheet (index + article pages)
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  --ink: #111714;
  --cream: #f2ede2;
  --white: #fffdf8;
  --acid: #c6d63c;
  --rust: #c6533e;
  --blue: #276d73;
  --gray: #68716c;
  --line: #c9c4b8;
  --max: 1240px;
  --reading: 760px;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none }
img { width: 100%; height: 100%; object-fit: cover; display: block }

/* Accessibility skip link */
.skip { position: absolute; left: -9999px }
.skip:focus { left: 15px; top: 15px; z-index: 99; background: #fff; padding: 12px }

/* ============================================================
   TOP BAR
   ============================================================ */
.top {
  background: var(--ink);
  color: #fff;
  padding: 9px 20px;
  font: 700 18px Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topin {
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   HEADER
   ============================================================ */
header { background: var(--white); border-bottom: 3px solid var(--ink) }
.head {
  max-width: var(--max);
  margin: auto;
  padding: 24px 20px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Index page header labels */
.weather { font: 700 18px Arial, sans-serif; color: var(--gray); text-transform: uppercase }
.weather b { color: var(--rust) }
.date { text-align: right; font: 18px Arial, sans-serif; color: var(--gray) }

/* Article page header labels */
.head-side { font: 700 18px Arial, sans-serif; color: var(--gray); text-transform: uppercase }
.head-side.right { text-align: right }

.logo {
  text-align: center;
  font: 900 clamp(45px, 7vw, 82px) / .8 Arial, sans-serif;
  letter-spacing: -.09em;
  background: linear-gradient(to right, #39264A, #C5D83E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.logo span { -webkit-text-fill-color: inherit }

/* ============================================================
   NAVIGATION — mobile-first hamburger nav
   ============================================================ */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* Hidden checkbox hack for toggle */
#nav-toggle { display: none }

/* Hamburger button — visible only on small screens */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  cursor: pointer;
  user-select: none;
  font: 700 15px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-hamburger span { color: var(--gray) }

/* Three-bar icon */
.nav-hamburger .bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.nav-hamburger .bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Animate bars into X when open */
#nav-toggle:checked ~ .nav-hamburger .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg) }
#nav-toggle:checked ~ .nav-hamburger .bars i:nth-child(2) { opacity: 0 }
#nav-toggle:checked ~ .nav-hamburger .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* Desktop nav links */
.navin {
  max-width: var(--max);
  margin: auto;
  display: flex;
  overflow: auto;
  padding: 0 20px;
}
nav a {
  padding: 14px 18px;
  font: 700 18px Arial, sans-serif;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
nav a:first-child { border-left: 1px solid var(--line) }
nav a:hover { background: var(--acid) }

/* ============================================================
   INDEX PAGE — MAIN CONTENT
   ============================================================ */
main { max-width: var(--max); margin: auto; padding: 28px 20px 70px }

/* ----- Masthead note ----- */
.mast-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px;
  margin-bottom: 18px;
  font: 700 18px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mast-note span:last-child { color: var(--rust) }

/* ----- Newspaper front page grid ----- */
.front {
  display: grid;
  grid-template-columns: 1.55fr .85fr .65fr;
  gap: 14px;
  min-height: 590px;
}
.photo-story, .brief { position: relative; overflow: hidden; background: var(--ink) }
.photo-story img { filter: saturate(.8) contrast(1.03) }
.photo-story::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.86));
}
.story-copy {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #fff;
}
.tag {
  display: inline-block;
  background: var(--acid);
  color: var(--ink);
  padding: 4px 9px;
  margin-bottom: 10px;
  font: 800 18px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.front-story h1 { margin: 0 0 8px; font-size: clamp(36px, 4vw, 62px); line-height: .93; letter-spacing: -.045em }
.front-story p  { margin: 0; font-size: 20px; color: #e4e7e3 }
.secondary { display: grid; grid-template-rows: 1fr 1fr; gap: 14px }
.secondary .front-story h2 { font-size: 32px; line-height: .98 }
.briefs { display: grid; gap: 14px; grid-template-rows: auto 1fr }
.brief {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  color: var(--ink);
}
.brief .tag { background: var(--rust); color: #fff }
.brief h3 { margin: 0 0 9px; font-size: 29px; line-height: 1.02 }
.brief p  { margin: 0; color: #59625d; font-size: 18px }

/* ----- Image Wall ----- */
.section { margin-top: 52px }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 5px solid var(--ink);
  padding-top: 10px;
  margin-bottom: 16px;
}
.section-title h2   { margin: 0; font-size: 38px; line-height: 1 }
.section-title small { font: 700 18px Arial, sans-serif; color: var(--gray) }
.wall {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}
.tile { position: relative; overflow: hidden; background: var(--ink) }
.tile.large { grid-row: 1 / 3 }
.tile::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.tile .caption { position: absolute; z-index: 2; left: 17px; right: 17px; bottom: 14px; color: #fff }
.caption b    { display: block; font-size: 27px; line-height: 1.02 }
.caption span { font-size: 18px; color: #d8dfdb }

/* ----- Oddity Strip ----- */
.odd {
  margin-top: 52px;
  background: var(--acid);
  padding: 28px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 35px;
  align-items: center;
}
.odd h2 { margin: 0; font: 900 clamp(40px, 5vw, 64px) / .9 Arial, sans-serif; letter-spacing: -.07em }
.odd p  { margin: 0; font-size: 21px }
.odd em { font-weight: 700 }

/* ----- Editorial Index ----- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.index-card {
  padding: 23px;
  border-right: 1px solid var(--ink);
  min-height: 230px;
  background: var(--white);
}
.index-card:last-child  { border-right: 0 }
.index-card .num { font: 900 18px Arial, sans-serif; color: var(--rust) }
.index-card h3  { margin: 25px 0 10px; font-size: 29px; line-height: 1 }
.index-card p   { margin: 0; color: var(--gray) }

/* ----- Shop ----- */
.shop { margin-top: 52px; background: var(--ink); color: #fff; padding: 34px }
.shop-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
  border-bottom: 1px solid #55605a;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.shop h2       { margin: 0; font: 900 44px / .95 Arial, sans-serif; letter-spacing: -.06em }
.shop-head p   { margin: 0; color: #bfc8c2; font-size: 18px }
.products      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.product       { background: #202a25 }
.product-art   {
  height: 220px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font: 900 36px Arial, sans-serif;
  letter-spacing: -.06em;
  color: #fff;
  text-align: center;
}
.product:nth-child(2) .product-art { background: var(--rust) }
.product:nth-child(3) .product-art { background: var(--acid); color: var(--ink) }
.product-copy  { padding: 18px }
.product h3    { margin: 0 0 5px; font-size: 26px }
.product p     { margin: 0; color: #c5cec8; font-size: 18px }

/* ----- Club / Email (index version) ----- */
.club {
  margin-top: 52px;
  border: 3px solid var(--ink);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--white);
}
.club h2 { margin: 0; font-size: 42px; line-height: 1 }
.club p  { margin: 12px 0 0; color: var(--gray); font-size: 20px }
form     { display: flex; align-items: center; gap: 10px }
input    { width: 100%; padding: 14px; border: 2px solid var(--ink); background: #fff; font-size: 18px }
button   {
  padding: 14px 19px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}
.note { grid-column: 1 / -1; color: var(--gray); font: 18px Arial, sans-serif }

/* ============================================================
   ARTICLE PAGE — CONTENT
   ============================================================ */

/* Article main resets the index-page max-width constraint */
.article-main { max-width: none; margin: 0; padding: 0 0 70px }

.article-header {
  max-width: 970px;
  margin: auto;
  padding: 60px 20px 34px;
  text-align: center;
}
.kicker {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 5px 11px;
  font: 800 18px Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.article-header h1 {
  margin: 22px auto 19px;
  max-width: 940px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .9;
  letter-spacing: -.06em;
}
.dek {
  max-width: 790px;
  margin: auto;
  color: #555f5a;
  font-size: 23px;
  line-height: 1.42;
}
.byline {
  margin-top: 25px;
  font: 700 18px Arial, sans-serif;
  color: var(--gray);
}
.byline b { color: var(--ink) }

/* ----- Hero image ----- */
.hero {
  width: 100%;
  height: clamp(220px, 45vw, 520px);
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.hero img {
  filter: saturate(.78) contrast(1.07);
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}
.hero-caption {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--max);
  margin: auto;
  padding: 50px 20px 17px;
  color: #fff;
  font: 18px Arial, sans-serif;
}
.hero-caption span { color: #d3dad5 }

/* ----- Story body ----- */
.story {
  max-width: var(--reading);
  margin: auto;
  padding: 45px 20px 0;
}
.story p          { font-size: 20px; line-height: 1.75; margin: 0 0 26px }
.story p.lead     { font-size: 27px; line-height: 1.45; font-weight: 700; letter-spacing: -.012em }
.story h2         { margin: 56px 0 18px; font-size: 42px; line-height: .98; letter-spacing: -.045em }
.story h3         { margin: 40px 0 14px; font-size: 30px; line-height: 1.05 }
.story blockquote {
  margin: 43px 0;
  padding: 27px 30px;
  border-top: 4px solid var(--acid);
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  line-height: 1.25;
  font-style: italic;
}

/* ----- In-story photos ----- */
.story-photo        { width: 100%; margin: 42px 0 48px; background: var(--white) }
.story-photo .image { width: 100%; height: 430px }
.story-photo figcaption {
  padding: 11px 14px;
  color: var(--gray);
  font: 18px Arial, sans-serif;
  line-height: 1.45;
}

/* ----- Field note ----- */
.field-note {
  margin: 48px 0;
  padding: 29px 30px;
  background: var(--ink);
  color: #fff;
}
.field-note .label {
  color: var(--acid);
  font: 800 18px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field-note h3 { font-size: 32px; margin: 12px 0 }
.field-note p  { font-size: 18px !important; line-height: 1.6 !important; color: #d2dad5; margin: 0 !important }

/* ----- Article tags ----- */
.tags {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 50px;
  font: 700 18px Arial, sans-serif;
  color: var(--gray);
}

/* ----- Related stories ----- */
.after {
  max-width: 1040px;
  margin: 65px auto 0;
  padding: 0 20px;
}
.after-head {
  border-top: 5px solid var(--ink);
  padding-top: 11px;
  margin-bottom: 18px;
  font: 900 36px Arial, sans-serif;
  letter-spacing: -.06em;
}
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px }
.related article { background: var(--white); border: 1px solid var(--line) }
.related .image  { height: 230px }
.related .copy   { padding: 19px }
.related .copy span {
  color: var(--rust);
  font: 800 18px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.related h3 { margin: 9px 0 0; font-size: 26px; line-height: 1.05 }

/* ----- Club / Email (article version — acid background) ----- */
.club-article {
  max-width: 1040px;
  margin: 58px auto 0;
  padding: 30px;
  background: var(--acid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.club-article h2   { margin: 0; font: 900 42px / .95 Arial, sans-serif; letter-spacing: -.06em }
.club-article p    { margin: 10px 0 0; font-size: 19px }
.club-note         { grid-column: 1 / -1; font: 18px Arial, sans-serif; color: #4f5a54 }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: #fff; padding: 35px 20px }
.foot  {
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.foot strong { font: 900 34px Arial, sans-serif; letter-spacing: -.06em; background: linear-gradient(to right, #39264A, #C5D83E); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent }
.foot strong span { -webkit-text-fill-color: inherit }
.foot p { margin: 6px 0 0; color: #aeb9b2; font-size: 18px }
.right  { text-align: right; color: #aeb9b2; font-size: 18px }

/* ============================================================
   RESPONSIVE — Tablet  ≤ 1000px
   ============================================================ */
@media (max-width: 1000px) {
  /* Index */
  .front { grid-template-columns: 1.3fr .7fr; min-height: 600px }
  .briefs { display: none }
  .index-grid { grid-template-columns: 1fr 1fr }
  .index-card:nth-child(2) { border-right: 0 }
  .index-card { border-bottom: 1px solid var(--ink) }
  .wall { grid-template-columns: 1fr 1fr }
  .tile.large { grid-row: auto }
  .odd { grid-template-columns: 1fr }
}

/* ============================================================
   RESPONSIVE — Mobile  ≤ 700px
   ============================================================ */
@media (max-width: 700px) {
  /* Top bar */
  .topin span:last-child { display: none }

  /* Header — collapse to logo only */
  .weather, .date, .head-side { display: none }
  .head { grid-template-columns: 1fr }
  .logo { text-align: left }

  /* Nav — show hamburger, stack links */
  .nav-hamburger { display: flex }
  .navin {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
  }
  #nav-toggle:checked ~ .navin { max-height: 600px }
  nav a {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    font-size: 17px;
  }
  nav a:first-child { border-left: none }

  /* Index main */
  main { padding-left: 14px; padding-right: 14px }
  .mast-note { display: block }
  .mast-note span { display: block; margin-top: 5px }
  .front { display: block; min-height: 0 }
  .photo-story { height: 520px }
  .secondary { margin-top: 14px }
  .secondary .front-story { height: 310px }
  .wall { grid-template-rows: 330px 260px 260px }
  .tile.large { grid-row: auto }
  .wall, .index-grid, .products, .club { grid-template-columns: 1fr }
  .index-card { border-right: 0 !important }
  .shop { padding: 22px }
  .shop-head { display: block }
  .shop-head p { margin-top: 10px }
  form { display: block }
  button { margin-top: 10px; width: 100% }
  .foot { display: block }
  .right { text-align: left; margin-top: 20px }

  /* Article page */
  .article-main { padding-bottom: 50px }
  .article-header { padding: 42px 17px 28px }
  .article-header h1 { font-size: clamp(38px, 12vw, 48px); line-height: .93 }
  .dek    { font-size: 20px; line-height: 1.45 }
  .byline { font-size: 18px; line-height: 1.5 }
  .hero   { height: clamp(180px, 52vw, 260px) }
  .hero-caption { padding: 40px 15px 13px }
  .story  { padding: 31px 17px 0 }
  .story p       { font-size: 19px; line-height: 1.72 }
  .story p.lead  { font-size: 23px; line-height: 1.45 }
  .story h2      { font-size: 35px; margin-top: 48px }
  .story h3      { font-size: 28px }
  .story blockquote { font-size: 24px; padding: 21px; margin: 35px 0 }
  .story-photo   { margin: 36px 0 42px }
  .story-photo .image { height: 235px }
  .story-photo figcaption { padding: 10px 12px }
  .field-note    { padding: 23px; margin-top: 38px }
  .field-note h3 { font-size: 28px }
  .after         { padding: 0 17px; margin-top: 50px }
  .related       { grid-template-columns: 1fr }
  .related .image { height: 220px }
  .club-article  { margin: 50px 17px 0; padding: 23px; display: block }
  .club-article h2 { font-size: 36px }
  .club-note     { margin-top: 16px }
}

/* ============================================================
   RESPONSIVE — Very small  ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
  .article-header h1  { font-size: 38px }
  .hero               { height: 180px }
  .story              { padding-left: 14px; padding-right: 14px }
  .story p            { font-size: 18px }
  .story p.lead       { font-size: 22px }
  .story h2           { font-size: 32px }
  .story-photo .image { height: 205px }
}
