/*
 * DailyDeen — shared stylesheet.
 *
 * The palette and type are lifted from the app so the site and the product
 * read as one thing: gold #C69B41 on cream #F9F5E9, Frank Ruhl Libre for
 * headings and Poppins for everything else. Both faces are on Google Fonts,
 * which is what the app bundles.
 *
 * No build step anywhere in this project. Six HTML files share this one sheet,
 * which is the whole reason the pages can be edited by anyone with a text
 * editor and pushed straight to production.
 */

:root {
  --gold: #c69b41;
  --gold-dark: #b78b31;
  --cream: #f9f5e9;
  --ink: #31302e;
  --muted: #767989;
  --brown: #bc927b;
  --line: rgba(198, 155, 65, 0.28);
  --card: #ffffff;
  --measure: 68ch;
}

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

html {
  scroll-behavior: smooth;
}

/*
 * The app's geometric border, taken from the same artwork the screens use, so
 * the site opens on the pattern people already associate with DailyDeen.
 *
 * Fixed rather than scrolling: the band is a frame around the page, and a
 * scrolling copy would drift through the content it is meant to sit behind.
 * Both bands are inert and sit under everything.
 */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: clamp(120px, 22vh, 240px);
  background: url("/assets/pattern.png") center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

body::before { top: 0; }
/* Mirrored, so the pattern closes the page the way it opened it. */
body::after { bottom: 0; transform: scaleY(-1); }

/* Everything real sits above the bands. */
.site_header,
main,
.site_footer {
  position: relative;
  z-index: 1;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.8em; }

p { margin: 0 0 1.1em; }

a {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

.wrap {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
}

/* --- header ------------------------------------------------------------- */
.site_header {
  border-bottom: 1px solid var(--line);
  background: rgba(249, 245, 233, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site_header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 30px; width: auto; }

.brand span {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.nav a { text-decoration: none; }

/* Marks which language you are already reading. */
.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

/* --- hero --------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero img.mark {
  height: clamp(64px, 12vw, 96px);
  width: auto;
  margin-bottom: 1.6rem;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}

.badge {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- features ----------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.1rem;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
}

.feature h3 {
  margin: 0 0 0.35em;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- legal pages -------------------------------------------------------- */
.doc {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  max-width: var(--measure);
}

.doc h1 { margin-bottom: 0.2em; }

.updated {
  color: var(--brown);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.doc ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.doc li { margin-bottom: 0.45em; }

/*
 * Marks text that is still a draft. Deliberately loud: nothing wearing this
 * should reach the App Store without a human having read it.
 */
.draft {
  border: 1px solid var(--gold);
  background: rgba(198, 155, 65, 0.09);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.5rem;
  font-size: 0.93rem;
  color: var(--ink);
}

.draft strong { color: var(--gold-dark); }

/* --- footer ------------------------------------------------------------- */
.site_footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site_footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site_footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

@media (max-width: 560px) {
  .nav { gap: 0.9rem; font-size: 0.86rem; }
  .brand span { display: none; }
}

/* --- detail sections ------------------------------------------------------
 * Alternating text/illustration rows. Every other one is reversed so the eye
 * zig-zags down the page instead of running down a single column of images.
 */
.section {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

/* Tinted bands break the page into readable chunks without extra rules. */
.section.tint { background: rgba(255, 255, 255, 0.55); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse .split_art { order: -1; }

.split h2 { margin-top: 0; }

.split p { color: var(--muted); }

.split ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.96rem;
}

.split li {
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  position: relative;
}

/* An eight-point star, the motif the app's border is built from. */
.split li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85em;
}

.split_art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.split_art img { max-width: 100%; height: auto; }

.eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.7rem;
}

/* --- phone frame ---------------------------------------------------------- */
.phone {
  width: min(100%, 270px);
  border: 9px solid #1c1b1a;
  border-radius: 34px;
  overflow: hidden;
  background: #1c1b1a;
  box-shadow: 0 22px 50px rgba(49, 48, 46, 0.28);
}

.phone img { display: block; width: 100%; height: auto; }

/* Hero puts the phone beside the words rather than under them. */
.hero_split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}

.hero_split .lede { margin-inline: 0; }
.hero_split .badges { justify-content: flex-start; }
.hero_split .brandmark { height: clamp(52px, 8vw, 74px); margin-bottom: 1.4rem; }

/* --- audiobook covers ------------------------------------------------------ */
.covers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.covers img {
  width: clamp(96px, 22%, 132px);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(49, 48, 46, 0.22);
}

/* Fanned slightly, the way books lean on the shelf inside the app. */
.covers img:nth-child(odd) { transform: rotate(-2.5deg); }
.covers img:nth-child(even) { transform: rotate(2deg); }

/* --- closing panel --------------------------------------------------------- */
.panel {
  background: linear-gradient(135deg, #c69b41, #e0bd72);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  color: #ffffff;
}

.panel h2 { color: #ffffff; margin-top: 0; }

.panel p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 52ch;
  margin-inline: auto;
}

@media (max-width: 820px) {
  .split,
  .hero_split {
    grid-template-columns: 1fr;
    text-align: left;
  }
  /* On one column the illustration belongs under its words, always. */
  .split.reverse .split_art { order: 0; }
  .split_art { order: 0; }
  .hero_split .badges { justify-content: flex-start; }
  .phone { margin-inline: auto; }
}
