/* Side Questered -- one stylesheet for every page of sidequestered.com. */
:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #5f5a52;
  --line: #e6e1d8;
  --accent: #b87a22;
  --accent-soft: #f6ead6;
  --disclosure: #8a5710;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --surface: #1c1b19;
    --text: #f1eee8;
    --muted: #aaa398;
    --line: #2e2c28;
    --accent: #d3953a;
    --accent-soft: #2c2215;
    --disclosure: #e0a14a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
img { max-width: 100%; display: block; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: 0.01em;
}
/* The company mark, drawn in currentColor so it follows the theme. Sized in em
   so it stays the height of the name beside it at any text size. */
.brand .mark { width: 1.6em; height: 1.6em; flex: none; }
nav.site { display: flex; gap: 1.25rem; font-size: 0.95rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current='page'] { color: var(--text); }

main { padding: 3rem 0 4rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
p { margin: 0.6rem 0; }
/* Required by the affiliate programmes: as large as the body text, coloured
   (never black or grey), and above the fold on every page whose links earn. */
.disclosure { font-size: 1em; font-weight: 600; color: var(--disclosure); max-width: 40rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

a.card.project { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--text); transition: border-color 0.15s; }
a.card.project:hover { border-color: var(--accent); }
a.card.project img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
a.card.project h3 { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.product { display: flex; gap: 1.25rem; align-items: flex-start; }
.product img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.pill {
  display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.6rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.button {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}

.get { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.hero-app { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero-app img { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }

.shots {
  display: grid; gap: 1rem; margin: 1.5rem 0 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.shots figure { margin: 0; }
.shots img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 9 / 16; width: 100%; }
.shots figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
@media (max-width: 44rem) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

table.prices { border-collapse: collapse; width: 100%; max-width: 40rem; }
.table-scroll { overflow-x: auto; }
table.prices td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices th { text-align: left; font-size: 0.85rem; color: var(--muted); font-weight: 600; padding: 0 0 0.4rem; border-bottom: 1px solid var(--line); }
table.prices th:not(:first-child), table.prices td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 1rem; }
table.prices td:not(:first-child) { font-weight: 600; }

dl.faq dt { font-weight: 700; margin-top: 1.4rem; }
dl.faq dd { margin: 0.3rem 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; overflow-x: auto; }
ul.ticks { padding-left: 1.2rem; }
ul.ticks li { margin: 0.3rem 0; }
