/* TripPacker — one stylesheet for the whole site.
   Palette and faces are the app's, so the web pages read as the same product. */

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600&family=Nunito:wght@400;600;700;800&display=swap");

:root {
  --ink:      #1F2A44;
  --ink-2:    #46536F;
  --ink-3:    #7A849B;
  --paper:    #FDF6DC;
  --card:     #FFFFFF;
  --line:     #E9E2C8;
  --sun:      #FFD84D;
  --coral:    #FF6B57;
  --teal:     #2BB3A3;
  --shadow:   0 3px 0 rgba(31, 42, 68, 0.10);
  --radius:   22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:    #F4F1E6;
    --ink-2:  #CFC9B8;
    --ink-3:  #979183;
    --paper:  #151A2B;
    --card:   #1E2438;
    --line:   #2F3650;
    --shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 22px 90px;
}

/* ---- masthead ---- */

.mast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 26px;
}

.mast a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sun);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  flex: none;
}

.wordmark {
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.mast nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.mast nav a { color: var(--ink-3); text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--ink); }

/* ---- type ---- */

h1, h2, h3 {
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: 34px; margin-bottom: 6px; }
h2 { font-size: 21px; margin: 34px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; font-family: Nunito, sans-serif; font-weight: 800; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

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

.stamp {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}

.lede { font-size: 18.5px; color: var(--ink-2); }

/* ---- boxes ---- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin: 20px 0;
}

.card h3:first-child, .card h2:first-child { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.pull {
  border-left: 4px solid var(--teal);
  background: var(--card);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 15.5px;
}

.scroll { overflow-x: auto; }

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

th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 800;
}

/* ---- landing ---- */

.hero { padding: 20px 0 6px; }
.hero h1 { font-size: 42px; }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 34ch; }

.cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cta.quiet {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature strong { display: block; margin-bottom: 4px; font-size: 16px; }
.feature span { color: var(--ink-2); font-size: 15px; }

/* ---- foot ---- */

footer {
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer a { color: var(--ink-3); }

@media (max-width: 560px) {
  h1 { font-size: 29px; }
  .hero h1 { font-size: 34px; }
  body { font-size: 16.5px; }
}
