/* searcooking.com. The App Store screenshots' look: cream and charcoal, ember for accents,
   Fraunces for headlines. Dark mode follows the app: charcoal ground, ember glow. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-top: #fff7e8;
  --bg-bottom: #fde9c8;
  --surface: rgba(255, 255, 255, 0.6);
  --line: rgba(23, 18, 15, 0.1);
  --ink: #17120f;
  --muted: #65554a;
  /* The flame's orange; large text only. Small text uses the deeper one (4.5:1 on cream). */
  --ember: #f35f1e;
  --ember-text: #b3440f;
  --glow: rgba(243, 95, 30, 0.16);
  --shadow: rgba(60, 30, 10, 0.22);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #17120f;
    --bg-bottom: #221914;
    --surface: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 240, 225, 0.1);
    --ink: #f6ede4;
    --muted: #b9a898;
    --ember: #ff7a2f;
    --ember-text: #ff8c47;
    --glow: rgba(255, 122, 47, 0.2);
    --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg-bottom);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(var(--bg-top), var(--bg-bottom)) fixed;
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ember-text); text-underline-offset: 0.15em; }

h1, h2, h3, .wordmark {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 em, h2 em { font-style: normal; color: var(--ember); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

/* Header */

.site-header {
  padding-block: 20px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

/* icon.png is already cut to the home screen's shape. */
.brand img { width: 36px; height: 36px; }
.wordmark { font-size: 26px; }

.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* Phones: transparent WebPs with the bezel drawn in, so only a shadow is added here. */

.phone {
  filter: drop-shadow(0 18px 30px var(--shadow));
}

.glow {
  position: relative;
  isolation: isolate;
}

.glow::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 40px 72px;
}

.hero h1 { font-size: clamp(44px, 7vw, 76px); }

.hero .lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 30em;
  margin: 22px 0 32px;
}

.hero .phone { width: min(340px, 80vw); margin-inline: auto; }

/* Where the App Store badge will go once Sear can be pre-ordered. Plain text until then:
   Apple's badges can't be imitated or altered. */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
}

.coming-soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--glow);
}

.coming-soon strong { color: var(--ink); font-weight: 650; }

/* Intro */

.intro {
  text-align: center;
  padding-block: 40px 24px;
}

.intro h2 { font-size: clamp(32px, 4.6vw, 48px); max-width: 17em; margin: 0 auto; }

.intro p {
  color: var(--muted);
  font-size: 19px;
  max-width: 34em;
  margin: 20px auto 0;
}

/* Feature rows: phone on one side, words on the other, alternating. */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 56px;
}

.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .shot { order: 2; }
.feature .shot .phone { width: min(300px, 72vw); margin-inline: auto; }
.feature h2 { font-size: clamp(32px, 4.4vw, 46px); }

.feature p {
  color: var(--muted);
  font-size: 18px;
  max-width: 28em;
  margin: 18px 0 0;
}

.feature ul {
  color: var(--muted);
  padding-left: 1.2em;
  margin: 16px 0 0;
}

.feature li + li { margin-top: 6px; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-text);
  margin-bottom: 12px;
}

/* Smaller phones, four across. */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 32px 64px;
}

.gallery figure { margin: 0; text-align: center; }
.gallery .phone { width: 100%; max-width: 240px; margin-inline: auto; }
.gallery h3 { font-size: 22px; margin-top: 22px; }
.gallery figcaption p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* Everything else, as a grid of short cards. */

.more {
  padding-block: 24px 64px;
}

.more > h2 { font-size: clamp(30px, 4vw, 40px); text-align: center; margin-bottom: 36px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 24px;
}

.cards h3 { font-size: 21px; }
.cards p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }

/* Closing call */

.closing {
  text-align: center;
  padding-block: 48px 80px;
}

.closing img { width: 88px; height: 88px; margin: 0 auto 24px; filter: drop-shadow(0 10px 18px var(--shadow)); }
.closing h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

.trademarks {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

/* Legal pages */

.legal {
  max-width: 44em;
  padding-block: 24px 72px;
}

.legal h1 { font-size: clamp(38px, 6vw, 56px); }
.legal .updated { color: var(--muted); margin: 12px 0 32px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal h3 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal li + li { margin-top: 6px; }

.legal .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 24px;
}

.legal .table-scroll { overflow-x: auto; }

.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 560px;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal th { font-weight: 650; }

.legal .caps { text-transform: uppercase; font-size: 15px; }

/* Narrow screens: stack everything, phones first. */

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .hero { text-align: center; padding-block: 24px 48px; }
  .hero .lede { margin-inline: auto; }
  .feature { padding-block: 44px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .site-header nav { gap: 16px; }
  .coming-soon { font-size: 14.5px; padding: 9px 14px; gap: 9px; }
  .cards { grid-template-columns: 1fr; }
  .gallery h3 { font-size: 19px; }
}

/* Placeholders in the legal drafts; none should remain when they're published. */
.todo {
  background: #ffe36e;
  color: #17120f;
  border-radius: 4px;
  padding: 0 4px;
}
