/* Gables — the Modern Day-inspired look designed for coralgableslove.com:
   Playfair Display serif headlines, Montserrat body, Sofia Sans uppercase meta,
   salmon accent with blush/lilac tints, wavy section dividers, arched
   "doorway" post cards, magazine hero front page (site.homeLayout: "hero"),
   and a columned footer with newsletter band + Instagram grid (site.footerHtml). */

:root {
  --ui-font: "Sofia Sans", "Montserrat", -apple-system, sans-serif;
  --display-font: "Playfair Display", Georgia, serif;
  --ink: #1c1c1c;
  --blush: #f7ecec;
  --lilac: #dec1e1;
  --lilac-soft: #f5edf7;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
h1, h2, h3, h4 { font-family: var(--display-font); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--ink); }
a:hover { color: var(--accent); text-decoration: none; }

/* shared bits */
.eyebrow, .pc-cats, .post-meta {
  font-family: var(--ui-font); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow { color: var(--accent); margin: 0 0 10px; }
.btn {
  display: inline-block; font-family: var(--ui-font); font-weight: 700;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 34px; border-radius: 999px; line-height: 1.2;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.9); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn-dark { border: 2px solid var(--ink); color: var(--ink); }
.btn-dark:hover { color: var(--accent); border-color: var(--accent); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }

/* ------------------------------------------------------------- header --- */
.site-header { position: static; background: #fff; border-bottom: none; backdrop-filter: none; }
.header-inner {
  flex-direction: row; justify-content: space-between; align-items: center;
  gap: 32px; padding: 20px 24px; max-width: 1360px;
}
.logo {
  font-family: var(--display-font); font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.01em; text-transform: none; color: var(--ink);
}
.nav-list { gap: 28px; }
.nav-list a, .nav-sub-toggle {
  font-family: var(--ui-font); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  padding: 12px 0; display: inline-block;
}
.nav-list a:hover { color: var(--accent); text-decoration: none; }
/* the last nav item ("Subscribe") renders as the accent pill */
.nav-list > li:last-child > a {
  background: var(--accent); color: #fff; padding: 13px 24px; border-radius: 999px;
}
.nav-list > li:last-child > a:hover { color: #fff; filter: brightness(1.06); }
.sub { border-radius: 15px; }

/* --------------------------------------------------- home: hero + grid --- */
/* the front page's header floats over the hero image */
.page-home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; z-index: 10; }
.page-home .logo, .page-home .nav-list a, .page-home .nav-sub-toggle { color: #fff; }
.page-home .nav-list a:hover { color: rgba(255, 255, 255, 0.75); }
.page-home .nav-list > li:last-child > a { color: #fff; }
.home-hero { position: relative; background: var(--ink); overflow: hidden; }
.hh-img { width: 100%; height: min(86vh, 760px); object-fit: cover; }
.hh-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 16, 16, 0.55) 0%, rgba(24, 16, 16, 0.32) 45%, rgba(24, 16, 16, 0.5) 100%);
}
.hh-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 22px;
  text-align: center; padding: 90px 24px 150px;
}
.hh-eyebrow {
  font-family: var(--ui-font); font-weight: 700; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin: 0;
}
.hh-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; color: #fff;
  max-width: 880px; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hh-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 110px; display: block; }

.home-intro { text-align: center; padding: 72px 24px 0; }
.home-intro .eyebrow { margin-bottom: 14px; }
.home-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 0; }

.home-grid .post-grid { margin-top: 48px; }
.home-more { text-align: center; margin: 10px 0 80px; }

/* ------------------------------------- arched post cards (site-wide) --- */
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px; row-gap: 56px; max-width: 1180px; margin-left: auto; margin-right: auto;
}
.post-card {
  background: none; border-radius: 0; box-shadow: none; overflow: visible;
  text-align: center; align-items: center;
}
.post-card:hover { transform: translateY(-4px); box-shadow: none; }
.post-card img, .post-card .ph {
  width: 100%; max-width: 320px; margin: 0 auto; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 999px 999px 14px 14px;
}
.pc-body { padding: 18px 8px 0; }
.pc-cats { color: var(--accent); font-size: 11.5px; margin: 0 0 8px; }
.pc-body h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.post-card:hover h2 { color: var(--accent); }
.pc-excerpt { display: none; }
.post-card .post-meta { color: #8a8a8a; letter-spacing: 0.05em; text-transform: none; font-family: var(--body-font); font-weight: 400; font-size: 13px; }
.pager { font-family: var(--ui-font); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* blog/category heads */
.page-plain-head { text-align: center; padding: 56px 0 6px; }

/* --------------------------------------------------- home: about band --- */
.home-about { position: relative; background: var(--blush); padding: 150px 0 110px; margin-top: 90px; }
.home-about::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 110px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 110" preserveAspectRatio="none"%3E%3Cpath d="M0,58 C180,96 340,18 560,34 C760,48 900,104 1120,88 C1260,78 1360,44 1440,52 L1440,0 L0,0 Z" fill="%23ffffff"/%3E%3C/svg%3E') top / 100% 100% no-repeat;
}
.ha-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 70px; align-items: center; }
.ha-copy { text-align: center; }
.ha-copy h2 {
  color: var(--accent); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15;
  margin: 0 0 6px; position: relative; padding-bottom: 18px;
}
.ha-copy h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 150px; height: 14px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 14"%3E%3Cpath d="M2 8 Q 11 2, 20 8 T 38 8 T 56 8 T 74 8 T 92 8 T 110 8 T 128 8 T 146 8" stroke="%23ffffff" stroke-width="4" fill="none" stroke-linecap="round"/%3E%3C/svg%3E') center / contain no-repeat;
}
.ha-copy p { max-width: 440px; margin: 1em auto; line-height: 1.8; color: #4a4a4a; }
.ha-copy .btn { margin-top: 10px; }
.ha-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* -------------------------------------------------------- single post --- */
.post-head { text-align: center; padding: 56px 24px 6px; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; max-width: 880px; margin: 0 auto; }
.page-post .post-meta { color: var(--accent); margin-bottom: 14px; }
.page-post .post-meta a { color: var(--accent); }
.post-hero img { border-radius: 18px; }
.prose { font-size: 17px; line-height: 1.85; color: #3a3a3a; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote {
  border-left: none; background: var(--blush); border-radius: 22px;
  padding: 34px 40px; text-align: center;
  font-family: var(--display-font); font-size: 1.35rem; line-height: 1.45; color: var(--ink);
}
.post-tags a {
  background: none; border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--ui-font); font-weight: 700; letter-spacing: 0.14em; padding: 12px 22px;
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); background: none; }

/* author box */
.author-card {
  background: var(--lilac-soft); border-radius: 22px; padding: 34px 38px;
  display: flex; align-items: center; gap: 26px; margin: 40px 0 70px;
}
.ac-photo { width: 92px; height: 92px; object-fit: cover; border-radius: 999px; flex-shrink: 0; }
.ac-name { font-family: var(--display-font); font-weight: 600; font-size: 1.3rem; margin: 0 0 6px; }
.ac-bio { font-size: 0.92rem; line-height: 1.7; color: #4a4a4a; margin: 0 0 10px; }
.ac-link {
  font-family: var(--ui-font); font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); text-decoration: underline; text-underline-offset: 4px;
}

/* related */
.related h3 {
  text-align: center; font-family: var(--display-font); font-size: 1.7rem;
  text-transform: none; letter-spacing: 0; margin-bottom: 34px;
}
.rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rel-card { background: none; border-radius: 0; box-shadow: none; text-align: center; }
.rel-card img { height: auto; aspect-ratio: 3 / 4; max-width: 280px; margin: 0 auto; border-radius: 999px 999px 14px 14px; }
.rel-card span { font-family: var(--display-font); font-size: 1.1rem; line-height: 1.3; padding: 16px 8px 0; }
.rel-card:hover span { color: var(--accent); }

/* pages */
.page-hero { border-radius: 0; }
.page-plain-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ------------------------------------------- designed about page ---------
   Activates when a page's content opens with .about-hero: the generic title
   head/hero hide and the article goes full-width so the bands can bleed. */
body:has(.about-hero) .page-plain-head, body:has(.about-hero) .page-hero { display: none; }
article:has(.about-hero) { max-width: none; padding: 0; }
.about-hero {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--blush); padding: 80px 24px 150px;
}
.about-hero::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 110px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 110" preserveAspectRatio="none"%3E%3Cpath d="M0,58 C180,96 340,18 560,34 C760,48 900,104 1120,88 C1260,78 1360,44 1440,52 L1440,110 L0,110 Z" fill="%23ffffff"/%3E%3C/svg%3E') bottom / 100% 100% no-repeat;
}
.ah-grid {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 70px; align-items: center;
}
.ah-copy { text-align: center; }
.ah-copy .eyebrow { letter-spacing: 0.2em; }
.ah-copy h2 {
  color: var(--accent); font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12;
  margin: 0 0 6px; position: relative; padding-bottom: 20px;
}
.ah-copy h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 150px; height: 14px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 14"%3E%3Cpath d="M2 8 Q 11 2, 20 8 T 38 8 T 56 8 T 74 8 T 92 8 T 110 8 T 128 8 T 146 8" stroke="%23ffffff" stroke-width="4" fill="none" stroke-linecap="round"/%3E%3C/svg%3E') center / contain no-repeat;
}
.ah-copy p { max-width: 460px; margin: 1em auto 0; line-height: 1.8; color: #4a4a4a; }
.about-hero .ah-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; margin: 0; }
.about-story { max-width: 720px; margin: 70px auto; padding: 0 24px; }
.about-things { max-width: 1148px; margin: 0 auto; padding: 0 24px 60px; }
.at-heading {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 44px;
  position: relative; padding-bottom: 18px;
}
.at-heading::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 120px; height: 12px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 12"%3E%3Cpath d="M2 6 Q 9 1, 16 6 T 30 6 T 44 6 T 58 6 T 72 6 T 86 6 T 100 6 T 114 6" stroke="%23dec1e1" stroke-width="3.5" fill="none" stroke-linecap="round"/%3E%3C/svg%3E') center / contain no-repeat;
}
.at-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.at-card { border-radius: 22px; padding: 40px 42px; text-align: left; }
.at-card:nth-child(1), .at-card:nth-child(4) { background: var(--blush); }
.at-card:nth-child(2), .at-card:nth-child(3) { background: var(--lilac-soft); }
.at-thumb {
  background: #fff; border-radius: 14px; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.at-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }
.at-thumb img.at-contain { width: auto; max-width: 82%; height: auto; max-height: 92%; object-fit: contain; }
.at-card h3 { font-size: 1.45rem; margin: 0 0 10px; }
.at-card p { font-size: 0.93rem; line-height: 1.75; color: #4a4a4a; margin: 0 0 14px; }
.at-link {
  font-family: var(--ui-font); font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent) !important;
  text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding: 8px 0;
}
.at-link:hover { color: var(--ink) !important; }

/* ------------------------------------------- footer + newsletter band --- */
.site-footer { background: var(--blush); color: var(--ink); margin-top: 110px; padding: 0; font-size: 0.9rem; position: relative; }
/* the home about band flows straight into the newsletter band — no white gap */
.page-home .site-footer { margin-top: 0; }
.page-home .home-about { padding-bottom: 140px; }
.site-footer .wrap { display: flex; flex-direction: column; max-width: 1280px; }
/* the © line the layout emits first belongs at the very bottom */
.site-footer .wrap > p:first-child { order: 99; text-align: center; color: #9a9a9a; font-size: 12.5px; padding: 40px 0 26px; margin: 0; }
.site-footer::after { content: ""; display: block; height: 12px; background: var(--accent); }

/* lilac newsletter band, full-bleed above the footer columns */
.nl-band {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--lilac); text-align: center; padding: 160px 24px 110px;
}
.nl-band::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 110px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 110" preserveAspectRatio="none"%3E%3Cpath d="M0,52 C160,44 300,88 520,80 C740,72 880,20 1100,36 C1260,48 1380,92 1440,58 L1440,0 L0,0 Z" fill="%23ffffff"/%3E%3C/svg%3E') top / 100% 100% no-repeat;
}
/* on the front page the section above the band is the blush about band */
.page-home .nl-band::before {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 110" preserveAspectRatio="none"%3E%3Cpath d="M0,52 C160,44 300,88 520,80 C740,72 880,20 1100,36 C1260,48 1380,92 1440,58 L1440,0 L0,0 Z" fill="%23f7ecec"/%3E%3C/svg%3E');
}
.nl-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 0 0 12px; }
.nl-band > p { color: rgba(255, 255, 255, 0.95); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.nl-form { display: flex; gap: 16px; max-width: 980px; margin: 34px auto 0; }
.nl-form input {
  flex: 1 1 0; min-width: 0; border: 0; background: #fff; padding: 18px 22px;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
.nl-form input::placeholder { color: #9a9a9a; }
.nl-form input:focus { outline: 2px solid var(--accent); }
.nl-form input[type="email"] { flex-grow: 1.3; }
.nl-form button {
  border: 1.5px solid var(--accent); color: var(--accent); background: none; cursor: pointer;
  font-family: var(--ui-font); font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 17px 34px; border-radius: 999px; white-space: nowrap;
}
.nl-form button:hover { background: var(--accent); color: #fff; }
.nl-status { min-height: 1.4em; margin: 12px 0 0; color: #fff; font-weight: 600; }

/* footer columns */
.ft-cols {
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 44px; align-items: center; padding: 70px 0 10px;
}
.ft-col { text-align: center; }
.ft-col h4 {
  font-family: var(--display-font); font-weight: 600; font-size: 1.5rem; color: var(--ink);
  margin: 0 0 4px; padding-bottom: 16px; position: relative;
}
.ft-col h4::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 120px; height: 12px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 12"%3E%3Cpath d="M2 6 Q 9 1, 16 6 T 30 6 T 44 6 T 58 6 T 72 6 T 86 6 T 100 6 T 114 6" stroke="%23dec1e1" stroke-width="3.5" fill="none" stroke-linecap="round"/%3E%3C/svg%3E') center / contain no-repeat;
}
.ft-col a {
  display: block; font-family: var(--ui-font); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px; padding: 11px 0;
}
.ft-col a:hover { color: var(--ink); }
.ft-shout {
  font-family: var(--ui-font); font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1.8; margin: 14px 0 4px;
}
.ft-email { text-transform: none !important; letter-spacing: 0.06em !important; }
.ft-social { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.ft-social a {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: var(--ink); border-radius: 999px; padding: 0;
}
.ft-social a:hover { background: var(--accent); }
.ft-social svg { display: block; }

/* instagram grid */
.ig-label {
  display: inline-block; font-family: var(--ui-font); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); padding: 12px 0; margin-bottom: 6px;
}
.ig-label:hover { color: var(--accent); }
.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ig-grid a { padding: 0; display: block; }
.ig-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ig-grid a:hover img { opacity: 0.85; }

/* ------------------------------------------------------------- mobile --- */
@media (max-width: 1020px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-col.ft-ig { grid-column: 1 / -1; }
  .post-grid, .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { padding: 14px 24px; }
  .nav-list > li:last-child > a { padding: 12px 0; background: none; color: var(--ink); }
  /* the mobile menu opens on a white panel — links go back to ink */
  .page-home .nav-toggle { color: #fff; }
  .page-home .site-nav .nav-list a { color: var(--ink); }
  .hh-content { padding-bottom: 120px; }
  .home-about { padding: 120px 0 80px; }
  .ha-inner { grid-template-columns: 1fr; gap: 44px; }
  .post-grid, .rel-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .ft-cols { grid-template-columns: 1fr; gap: 36px; }
  .author-card { flex-direction: column; text-align: center; }
  .ah-grid { grid-template-columns: 1fr; gap: 40px; }
  .at-grid { grid-template-columns: 1fr; }
}
