/*
Theme Name: Tynt
Theme URI: https://tynt.com
Author: Brandon Brock
Author URI: 
Description: Custom pre-launch brand story theme for Tynt Mineral Sunscreen, built on the "Sundial" brand identity system (Brand Guidelines v1.0). Single-page story site: hero, brand story, shades, journey, founder note, and email signup.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tynt
*/

:root {
  /* Brand palette — from Tynt Brand Guidelines v1.0, Sundial direction */
  --linen: #F4EAD9;
  --linen-2: #EEE0C9;
  --ochre: #E4A94F;
  --terracotta: #C67A50;
  --sienna: #8A5836;
  --umber: #47281B;
  --umber-2: #3A2016;

  /* Shade tones — reserved for shade/product context only, per brand rule */
  --sunlit: #D9B589;
  --amber: #BE895B;
  --shade-sienna: #965F3B;
  --cocoa: #5C3922;

  --ink-on-linen: #3A2A20;
  --ink-on-linen-dim: #6B5645;
  --cream: #F4EAD9;
  --cream-dim: rgba(244,234,217,0.68);

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink-on-linen);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Wordmark — gradient across the four shade tones, lowercase only ── */
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  background: linear-gradient(90deg, var(--sunlit) 0%, var(--amber) 38%, var(--shade-sienna) 68%, var(--cocoa) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; letter-spacing: 0.01em;
}
.wordmark.on-dark {
  background: linear-gradient(90deg, #E9D3B8 0%, #D8B08A 40%, #B27C55 72%, #8C5A3B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,234,217,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(71,40,27,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1160px; margin: 0 auto;
}
.nav-mark { font-size: 26px; text-decoration: none; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--ink-on-linen-dim); text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--umber); }
.nav-cta {
  background: var(--umber); color: var(--linen);
  font-size: 12.5px; font-weight: 500; padding: 10px 20px;
  border: none; border-radius: 2px; letter-spacing: 0.03em;
  transition: background 0.2s ease; text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--umber-2); color: var(--linen); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ── Hero ── */
.hero { padding: 96px 0 80px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.hero .label { color: var(--sienna); margin-bottom: 24px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -0.01em;
  color: var(--umber); margin-bottom: 28px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--terracotta); }
.hero p.lede {
  font-size: 17px; color: var(--ink-on-linen-dim); max-width: 460px; margin-bottom: 36px;
}

.signup-form {
  display: flex; max-width: 420px; border: 1px solid rgba(71,40,27,0.25);
  border-radius: 2px; overflow: hidden; background: rgba(255,255,255,0.35);
}
.signup-form input {
  flex: 1; background: transparent; border: none; padding: 15px 16px;
  color: var(--umber); font-family: var(--font-body); font-size: 14px;
}
.signup-form input::placeholder { color: rgba(71,40,27,0.4); }
.signup-form input:focus { outline: none; }
.signup-form button {
  background: var(--terracotta); color: var(--linen); border: none; font-weight: 500;
  font-size: 13.5px; padding: 0 24px; letter-spacing: 0.02em; white-space: nowrap;
  transition: background 0.2s ease;
}
.signup-form button:hover { background: var(--sienna); }
.signup-note { font-size: 12px; color: rgba(71,40,27,0.5); margin-top: 12px; }
.signup-note.is-success { color: var(--sienna); font-weight: 500; }
.signup-note.is-error { color: #B23B3B; font-weight: 500; }

/* ── Signature: the four-shade mark (official brand asset — used as-is, not scattered as decoration) ── */
.shade-mark { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shade-mark-row { display: flex; gap: 14px; }
.shade-mark-dot {
  width: 74px; height: 74px; border-radius: 50%;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.15), 0 12px 28px rgba(71,40,27,0.18);
}
@media (max-width: 500px) { .shade-mark-dot { width: 52px; height: 52px; } }
.shade-mark-caption {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-on-linen-dim);
}

section { padding: 100px 0; }
h2.section-head {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--umber); max-width: 660px; margin-bottom: 22px;
}
.section-label { color: var(--sienna); margin-bottom: 16px; }

/* ── Brand story ── */
.story { background: var(--linen); }
.story-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.story p { font-size: 15.5px; color: var(--ink-on-linen); margin-bottom: 18px; max-width: 560px; }
.story .positioning {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(71,40,27,0.15);
}
.story .positioning .label { color: var(--sienna); margin-bottom: 8px; display: block; }
.story .positioning p { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--umber); max-width: 460px; margin: 0; }

.quote-card {
  background: var(--terracotta); color: var(--linen); padding: 48px 40px;
  border-radius: 3px; position: relative;
}
.quote-card::before {
  content: '"'; font-family: var(--font-display); font-size: 96px; line-height: 1;
  color: rgba(244,234,217,0.35); position: absolute; top: 10px; left: 26px;
}
.quote-card p {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 24px;
  line-height: 1.4; color: var(--linen); position: relative; margin-top: 24px;
}

/* ── Shades ── */
.shades { background: var(--linen-2); }
.shade-tabs { display: flex; gap: 10px; margin: 36px 0; flex-wrap: wrap; }
.shade-tab {
  display: flex; align-items: center; gap: 10px; background: transparent;
  border: 1px solid rgba(71,40,27,0.18); border-radius: 999px; padding: 9px 18px 9px 12px;
  font-size: 13px; color: var(--ink-on-linen); transition: all 0.25s ease;
}
.shade-tab .dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.shade-tab.active { border-color: var(--umber); background: var(--umber); color: var(--linen); }
.shade-display {
  display: grid; grid-template-columns: 0.5fr 1fr; gap: 48px; align-items: center;
  background: #FBF6EC; border-radius: 4px; padding: 44px; border: 1px solid rgba(71,40,27,0.1);
}
@media (max-width: 780px) { .shade-display { grid-template-columns: 1fr; gap: 28px; padding: 30px; } }
.shade-swatch-big {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%; max-width: 200px;
  box-shadow: inset 0 -14px 30px rgba(0,0,0,0.16), 0 10px 30px rgba(71,40,27,0.16);
  transition: background 0.4s ease;
}
.shade-info .s-num { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-on-linen-dim); margin-bottom: 6px; }
.shade-info h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 30px;
  color: var(--umber); margin-bottom: 6px;
}
.shade-info .s-desc { font-size: 13px; letter-spacing: 0.04em; color: var(--sienna); text-transform: uppercase; margin-bottom: 16px; }
.shade-info p.copy { font-size: 14.5px; color: var(--ink-on-linen); max-width: 420px; }

/* ── Journey ── */
.journey { background: var(--umber); color: var(--linen); }
.journey .section-head { color: var(--linen); }
.journey .section-label { color: var(--ochre); }
.timeline { margin-top: 44px; border-top: 1px solid rgba(244,234,217,0.14); }
.t-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 24px 0;
  border-bottom: 1px solid rgba(244,234,217,0.14); align-items: baseline;
}
@media (max-width: 600px) { .t-item { grid-template-columns: 76px 1fr; gap: 16px; } }
.t-status { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre); }
.t-status.pending { color: rgba(244,234,217,0.4); }
.t-content h4 { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--linen); margin-bottom: 4px; }
.t-content p { font-size: 13.5px; color: var(--cream-dim); }

/* ── About ── */
.about { background: var(--linen); }
.about-grid { display: grid; grid-template-columns: 0.7fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-photo {
  aspect-ratio: 4/5; background: linear-gradient(160deg, var(--amber), var(--cocoa));
  border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo span { font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.05em; text-align: center; padding: 20px; }
.about p { font-size: 15.5px; color: var(--ink-on-linen); margin-bottom: 16px; max-width: 540px; }
.about .sign-off { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--umber); }

/* ── Footer / final CTA ── */
.footer-cta { background: var(--umber); color: var(--linen); padding: 96px 0 0; text-align: center; }
.footer-cta h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 18px; color: var(--linen);
}
.footer-cta > .wrap > p { color: var(--cream-dim); margin-bottom: 34px; }
.footer-cta .signup-form { margin: 0 auto; background: rgba(244,234,217,0.06); border-color: rgba(244,234,217,0.25); }
.footer-cta .signup-form input { color: var(--linen); }
.footer-cta .signup-form input::placeholder { color: rgba(244,234,217,0.4); }
.footer-cta .signup-note { color: rgba(244,234,217,0.5); }

.signature-line {
  margin-top: 64px; padding: 40px 0; border-top: 1px solid rgba(244,234,217,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.signature-line .wordmark { font-size: 30px; }
.signature-line .tagline {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(244,234,217,0.55);
}

.footer-links {
  margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid rgba(244,234,217,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: rgba(244,234,217,0.4);
}
.footer-links a { text-decoration: none; color: rgba(244,234,217,0.4); }
.footer-links a:hover { color: var(--linen); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Generic page template (Privacy Policy, etc.) ── */
.generic-page { padding: 100px 0; background: var(--linen); }
.generic-page .page-title {
  font-family: var(--font-display); font-weight: 500; color: var(--umber);
  font-size: clamp(30px, 4vw, 46px); margin-bottom: 28px; max-width: 700px;
}
.generic-page .page-content { max-width: 700px; font-size: 15.5px; color: var(--ink-on-linen); }
.generic-page .page-content p { margin-bottom: 18px; }
.generic-page .page-content h2 { font-family: var(--font-display); font-weight: 500; color: var(--umber); font-size: 26px; margin: 32px 0 14px; }
.generic-page .page-content a { color: var(--terracotta); text-decoration: underline; }

/* ── Blog fallback (index.php) ── */
.blog-list { padding: 100px 0; background: var(--linen); }
.blog-item { border-bottom: 1px solid rgba(71,40,27,0.12); padding: 28px 0; }
.blog-item h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin-bottom: 8px; }
.blog-item h2 a { color: var(--umber); text-decoration: none; }
.blog-item .entry-meta { font-size: 12px; color: var(--ink-on-linen-dim); margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-item .entry-excerpt { font-size: 14.5px; color: var(--ink-on-linen); }
