/* Trymmer website. Brand: brick coral, handle yellow, film charcoal, sunset frames. */

:root {
  --coral: #c94a30;
  --coral-text: #b8432b;
  --coral-deep: #9e3620;
  --coral-bright: #e2694c;
  --yellow: #ffd60a;
  --charcoal: #1c1c22;
  --sky-top: #ff9a6b;
  --sky-bottom: #ffe2c4;
  --hills: #6e9a5b;

  --bg: #fdf7f5;
  --bg-raised: #ffffff;
  --bg-tint: #f7e8e5;
  --text: #1d1d1f;
  --text-2: #5c5c62;
  --line: #ecd8d3;
  --code-bg: #f3e6e2;
  --shadow: 0 1px 2px rgba(60, 20, 10, 0.06), 0 8px 24px rgba(60, 20, 10, 0.08);

  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --coral-text: #f08a70;
    --bg: #151418;
    --bg-raised: #1f1d23;
    --bg-tint: #2a1d1b;
    --text: #f2f0ef;
    --text-2: #a9a4a3;
    --line: #36302f;
    --code-bg: #2b2626;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--text); background: var(--bg-tint); }
.site-nav a[aria-current="page"] { color: var(--coral-text); font-weight: 600; }

/* Hero */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 50% -100px, color-mix(in srgb, var(--coral) 16%, transparent), transparent 70%);
  text-align: center;
}
.hero-icon { width: 128px; height: 128px; margin: 0 auto 24px; filter: drop-shadow(0 10px 24px rgba(158, 54, 32, 0.25)); }
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero .lede {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 28px;
}
.platforms { color: var(--text-2); font-size: 15px; margin-top: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
}
.button:hover { background: var(--coral-deep); text-decoration: none; }
.button.secondary { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line); }
.button.secondary:hover { background: var(--bg-tint); }
.button[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* The film strip illustration */

.strip {
  margin: 48px auto 0;
  max-width: 820px;
  position: relative;
  padding: 0 28px;
}
.film {
  background: var(--charcoal);
  border-radius: 10px;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  gap: 8px;
  position: relative;
  box-shadow: var(--shadow);
}
.film::before, .film::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 10px, transparent 10px 22px);
  border-radius: 2px;
}
.film::before { top: 4px; }
.film::after { bottom: 4px; }
.frame {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 38%, #fff6e0 0 8%, transparent 9%),
    linear-gradient(transparent 62%, var(--hills) 62%),
    linear-gradient(var(--sky-top), var(--sky-bottom));
}
.frame.day {
  background:
    radial-gradient(circle at 30% 30%, #fffbe8 0 8%, transparent 9%),
    linear-gradient(transparent 60%, #5f8f4e 60%),
    linear-gradient(#6fb2e6, #cfe8f7);
}
.frame.dusk {
  background:
    radial-gradient(circle at 62% 30%, #f4ecff 0 6%, transparent 7%),
    linear-gradient(transparent 64%, #3f5a48 64%),
    linear-gradient(#5a4a8c, #d98fa0);
}
.frame.cut { opacity: 0.28; filter: grayscale(0.6); }
.strip-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
}
.film-out { width: calc(5 / 9 * 100% + 4px); margin: 0 auto; }
.strip-arrow { color: var(--yellow); width: 28px; height: 28px; margin: 14px auto 6px; }
.strip-arrow svg { width: 100%; height: 100%; }
@media (prefers-color-scheme: light) { .strip-arrow { color: #d4a800; } }
.film > * { grid-row: 1; }
.keep {
  grid-column: 2 / 5;
  margin: -12px -8px;
  border: 4px solid var(--yellow);
  border-left-width: 14px;
  border-right-width: 14px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.strip-caption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 14px; }

/* Sections */

section { padding: 56px 0; }
section.tinted { background: var(--bg-tint); }
h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }
.section-lede { color: var(--text-2); font-size: 19px; margin: 0 0 32px; max-width: 680px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral-text);
}
.card .glyph svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.split ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); }
.split li { margin: 4px 0; }

/* Prose pages (help, privacy, support) */

.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.page .meta { color: var(--text-2); margin: 0 0 32px; }
.page h2 { margin-top: 48px; padding-top: 8px; }
.page h3 { font-size: 19px; margin: 28px 0 6px; }
.page p, .page li { color: var(--text); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.note {
  border-left: 4px solid var(--yellow);
  background: var(--bg-tint);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.note p { margin: 0; }

kbd {
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 2px 5px; border-radius: 5px; }

.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--text-2); font-weight: 600; }

.toc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 16px;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }

details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 6px 0; }

.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.contact-card p { margin: 0 0 12px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--text-2);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .hero-icon { width: 104px; height: 104px; }
  .strip { padding: 0 12px; }
  .keep { margin: -12px -6px; border-left-width: 10px; border-right-width: 10px; }
  .film { gap: 5px; }
  .site-footer nav { margin-left: 0; }
}

/* Combine clips of any size */

.combine-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .combine-wrap { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 12px 0; color: var(--text-2); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 3px solid var(--yellow);
}
.combine { margin: 0; }
.combine-in { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.clip { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.clip span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.clip .frame { border-radius: 6px; box-shadow: var(--shadow); }
.frame.tall { aspect-ratio: 9 / 16; }
.combine .film { max-width: 420px; margin: 0 auto; }
.frame.boxed { background: #000; display: flex; justify-content: center; }
.frame.boxed .frame { height: 100%; border-radius: 0; }
