/* Goal Control, archived project site */

:root {
  --ink: #15172a;
  --ink-2: #3a3e55;
  --muted: #646982;
  --brand: #b5047f;
  --brand-dark: #8f0364;
  --brand-tint: #ff6cc4;
  --brand-soft: #fbedf6;
  --bg: #ffffff;
  --bg-soft: #f5f5f9;
  --line: #e4e5ee;
  --radius: 18px;
  --shadow-lg: 0 30px 70px -30px rgba(21, 23, 42, .45), 0 4px 14px rgba(21, 23, 42, .06);
  --shadow-sm: 0 1px 2px rgba(21, 23, 42, .05), 0 8px 24px -12px rgba(21, 23, 42, .18);
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 24px; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font: 600 .78rem/1 var(--font-head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-head); letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 22px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font: 600 .98rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.logo:hover { color: #fff; }
.logo img {
  width: 46px; height: 46px; padding: 6px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.site-nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: #fff; text-decoration: none;
  font: 500 .95rem/1.2 var(--font-body);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  transition: background-color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: grid; align-items: center;
  padding: 140px 0 190px;
  color: #fff; text-align: center;
  background: var(--ink);
  overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 17, 34, .62) 0%, rgba(15, 17, 34, .28) 38%, rgba(15, 17, 34, .34) 62%, rgba(15, 17, 34, .78) 100%);
}
.hero-content { max-width: 880px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(15, 17, 34, .38);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 .74rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-tint); box-shadow: 0 0 0 4px rgba(255, 108, 196, .25); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 6.2vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(10, 12, 26, .45);
}
.hero-lead {
  max-width: 34em; margin: 22px auto 36px;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 400; line-height: 1.55;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 14px rgba(10, 12, 26, .5);
}

/* ---------- Sunset notice ---------- */
.notice { position: relative; z-index: 2; margin-top: -120px; }
.notice-card {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  padding: clamp(28px, 5vw, 52px);
  background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.notice-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.notice-icon svg { width: 30px; height: 30px; }
.notice-body h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: 16px; letter-spacing: -.01em; }
.notice-body > p + p { margin-top: 12px; }
.notice-body > p:not(.eyebrow) { color: var(--ink-2); }
.badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.badges-label { font: 500 .85rem/1.2 var(--font-body); color: var(--muted); }
.badges-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badges-row img { height: 44px; width: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 112px) 0; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.015em; }
.section-lead { max-width: 40em; margin: 18px auto 0; font-size: 1.15rem; color: var(--muted); }

/* About */
.about { text-align: center; }
.about-logo { width: 210px; margin: 0 auto 36px; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 56px; text-align: center;
}
.feature {
  padding: 34px 24px 30px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, background-color .25s;
}
.feature:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--brand);
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(181, 4, 127, .45);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { font-size: .97rem; color: var(--muted); line-height: 1.55; }

/* Blog */
.blog { background: var(--bg-soft); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: 44px;
}
.text-link {
  font: 600 .95rem/1.4 var(--font-head); text-decoration: none;
  border-bottom: 2px solid rgba(181, 4, 127, .25); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--brand-dark); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.post:hover, .post:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.post-meta { font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 10px; }
.post h3 { font-size: 1.12rem; line-height: 1.38; margin-bottom: 12px; }
.post-link { color: var(--ink); text-decoration: none; }
.post-link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-link:focus-visible { outline: none; }
.post:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.post:hover .post-link { color: var(--brand-dark); }
.post-body > p:not(.post-meta) { font-size: .96rem; color: var(--muted); line-height: 1.6; }
.post-cta { margin-top: auto; padding-top: 18px; font: 600 .9rem/1 var(--font-head); color: var(--brand); }

/* Instagram / inspiration band */
.inspire {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(88px, 12vw, 140px) 0;
  text-align: center; color: #fff; background: var(--ink);
}
.inspire-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.inspire::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 17, 34, .55), rgba(15, 17, 34, .72));
}
.instagram-logo {
  width: 96px; height: 96px; margin: 0 auto 26px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .35));
}
.inspire h2 {
  color: #fff; max-width: 18em; margin: 0 auto 32px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 56px 0 28px; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo img { height: 76px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--brand-tint); }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  padding: 120px 0 80px; color: #fff; position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
}
.notfound h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; }
.notfound p { color: rgba(255, 255, 255, .85); margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post:last-child { grid-column: 1 / -1; }
  .posts .post:last-child img { aspect-ratio: 21 / 9; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-header { padding: 16px 0; }
  .header-inner { gap: 8px; }
  .logo { font-size: .78rem; gap: 8px; letter-spacing: .08em; }
  .logo img { width: 36px; height: 36px; padding: 5px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 8px 7px; font-size: .86rem; }
  .hero { padding: 118px 0 150px; min-height: 0; }
  .pill { font-size: .66rem; letter-spacing: .1em; margin-bottom: 20px; }
  .btn-row .btn { flex: 1 1 100%; }
  .notice { margin-top: -96px; }
  .notice-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px 28px; border-radius: 18px; }
  .notice-icon { width: 52px; height: 52px; border-radius: 14px; }
  .badges-row img { height: 40px; }
  .about-logo { width: 170px; }
  .features { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .feature { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 22px 20px; }
  .feature-icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .feature-icon svg { width: 26px; height: 26px; }
  .feature h3 { margin-bottom: 4px; align-self: end; }
  .posts { grid-template-columns: 1fr; }
  .posts .post:last-child { grid-column: auto; }
  .posts .post:last-child img { aspect-ratio: 16 / 10; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 359px) {
  .logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
