/*
Theme Name: Good Grief
Theme URI: https://goodgrief.cool
Author: Good Grief
Description: Custom lightweight theme for goodgrief.cool — Isle of Wight food & drink. Matches the Local Guide brand.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: goodgrief
*/

:root {
  --purple: #662483;
  --purple-deep: #4E1B65;
  --orange: #EA571C;
  --peach: #FBE4D9;
  --cream: #FDF1EA;
  --ink: #2B2130;
  --ink-soft: #77636F;
  --line: #EED9CD;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Avenir Next', 'Avenir', 'Nunito Sans', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); }

/* header */
.site-head {
  background: var(--purple);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-head .logo-link { color: #fff; display: block; line-height: 0; }
.site-head nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-head nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.site-head nav a:hover { color: #F9C08F; }
.site-head nav a.cta {
  background: var(--orange);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 800;
}
.site-head nav a.cta:hover { color: #fff; background: #C2410F; }

/* hero */
.hero {
  background: var(--peach);
  text-align: center;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; opacity: .12; }
.blob-1 { width: 280px; height: 280px; top: -120px; left: -100px; background: var(--orange); }
.blob-2 { width: 200px; height: 200px; bottom: -90px; right: -70px; background: var(--purple); opacity: .1; }
.kicker {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--orange);
  margin: 0 0 16px;
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(30px, 6.5vw, 52px);
  line-height: 1.07;
  letter-spacing: -.01em;
  margin: 0 auto 14px;
  max-width: 18ch;
  text-wrap: balance;
  position: relative;
}
.hero .sub { color: var(--ink-soft); font-size: 17px; max-width: 44ch; margin: 0 auto 26px; position: relative; }
.btnrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
}
.btn:hover { background: var(--purple-deep); color: #fff; }
.btn.ghost { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn.ghost:hover { background: var(--peach); }

/* full-bleed image band */
.band { line-height: 0; }
.band img { width: 100%; max-height: 520px; object-fit: cover; }

/* sections */
.section { max-width: 1020px; margin: 0 auto; padding: 64px 24px 8px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .kicker { margin-bottom: 8px; }
.section-head h2 {
  font-weight: 900;
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* films */
.films { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.film { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 3px 14px rgba(102, 36, 131, .08); }
.film .yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
}
.film .yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.film .yt .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.film .yt .play span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.film .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film h3 { font-size: 15.5px; font-weight: 800; margin: 0; padding: 14px 16px 16px; line-height: 1.35; }

/* quote band */
.quoteband { background: var(--orange); margin-top: 64px; padding: 40px 24px; text-align: center; }
.quoteband p {
  color: #fff;
  font-weight: 900;
  font-size: clamp(20px, 3.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: 30ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.about img { border-radius: 20px; box-shadow: 0 12px 30px rgba(102, 36, 131, .15); }
.about h2 { font-weight: 900; font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px; letter-spacing: -.01em; }
.about p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 12px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip img { border-radius: 16px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (max-width: 600px) { .strip { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* guide teaser */
.guide-teaser {
  background: var(--purple);
  border-radius: 24px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 40px 40px 0;
  overflow: hidden;
}
.guide-teaser .kicker { color: #F9C08F; }
.guide-teaser h2 { font-weight: 900; font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px; letter-spacing: -.01em; }
.guide-teaser p { color: #D9BFE8; font-size: 15px; margin: 0 0 20px; }
.guide-teaser .btn { background: var(--orange); margin-bottom: 36px; }
.guide-teaser .btn:hover { background: #C2410F; }
.guide-teaser .shot { align-self: end; line-height: 0; }
.guide-teaser .shot img { border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); max-width: 300px; }
@media (max-width: 760px) {
  .guide-teaser { grid-template-columns: 1fr; text-align: center; padding: 32px 24px 0; }
  .guide-teaser .shot { justify-self: center; }
}

/* blog cards */
.postgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.postcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(102, 36, 131, .08);
  display: flex;
  flex-direction: column;
}
.postcard a.thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.postcard a.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.postcard:hover a.thumb img { transform: scale(1.04); }
.postcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.postcard time { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9B8791; font-weight: 800; }
.postcard h3 { font-size: 17px; font-weight: 800; margin: 0; line-height: 1.3; }
.postcard h3 a { color: var(--ink); text-decoration: none; }
.postcard h3 a:hover { color: var(--purple); }
.postcard .excerpt { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.morelink { text-align: center; margin-top: 26px; }

/* single post / page */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.article h1.title { font-weight: 900; font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
.article .meta { color: #9B8791; font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.article .feat { border-radius: 18px; margin-bottom: 26px; }
.entry { font-size: 17px; color: #3A2F40; }
.entry h2, .entry h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.entry img { border-radius: 14px; }
.entry a { color: var(--purple); }
.entry blockquote { border-left: 4px solid var(--orange); margin: 1.4em 0; padding: .3em 0 .3em 1.1em; color: var(--ink-soft); font-style: italic; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 30px 0 0; font-weight: 800; }
.pagination .page-numbers { padding: 8px 14px; background: #fff; border-radius: 10px; text-decoration: none; color: var(--purple); border: 1.5px solid var(--line); }
.pagination .current { background: var(--purple); color: #fff; border-color: var(--purple); }

/* footer */
.site-foot { margin-top: 72px; background: var(--purple); color: #fff; text-align: center; padding: 44px 24px 40px; }
.site-foot .logo-foot { color: #fff; display: inline-block; line-height: 0; margin-bottom: 14px; }
.site-foot .socials { display: flex; gap: 18px; justify-content: center; margin: 6px 0 16px; }
.site-foot .socials a { color: #F9C08F; font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.site-foot .socials a:hover { color: #fff; }
.site-foot .tiny { font-size: 12px; color: #D9BFE8; margin: 0; }
.site-foot .tiny a { color: #D9BFE8; }
