/* kilnfox.cc — one stylesheet for every page. No web fonts or third-party files, on purpose:
   the privacy policy promises the site loads nothing from anyone else. */

:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #2b211c;
  --muted: #6e6058;
  --border: #e9e0d7;
  --accent: #c9571f;
  --accent-strong: #a8461a;
  --accent-soft: #fbeadf;
  --fox: #e06a30;
  --fox-dark: #b44c1c;
  --cream: #fff4e8;
  --ink: #2b211c;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161210;
    --surface: #201a17;
    --text: #f2eae3;
    --muted: #a8998e;
    --border: #352c27;
    --accent: #f0894c;
    --accent-strong: #ffa36b;
    --accent-soft: #33221a;
    --cream: #fbe8d6;
    --ink: #1b1512;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

code, kbd {
  font: 0.88em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* very narrow phones: the links drop below the logo */
  gap: 8px 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }

.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Per-app bar under the header: app name (→ its page), then its Support and Privacy */
.app-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.app-nav { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; font-size: 0.95rem; }
.app-nav a { color: var(--muted); text-decoration: none; }
.app-nav a:hover, .app-nav a[aria-current="page"] { color: var(--text); }
.app-nav .app-name { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 600; color: var(--text); }
.app-nav .app-name img { width: 22px; height: 22px; }

/* Link lists on the top-level Support and Privacy pages */
.app-links, .prose .app-links { list-style: none; padding: 0; margin: 0; }
.app-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.app-links a:hover { border-color: var(--accent); color: var(--text); }
.app-links img { width: 36px; height: 36px; }
.app-links span { margin-left: auto; color: var(--accent); font-weight: 500; font-size: 0.95rem; }

/* Fox mark colours (inline SVG uses classes so it follows dark mode) */
.fox-head { fill: var(--fox); }
.fox-ear { fill: var(--fox-dark); }
.fox-cheek { fill: var(--cream); }
.fox-ink { fill: var(--ink); }

/* Hero */

.hero { padding: 56px 0 36px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.3rem); margin: 0 0 18px; letter-spacing: -0.025em; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 34em; }

.app-hero { display: flex; gap: 28px; align-items: center; padding: 48px 0 32px; }
.app-hero img { width: 128px; height: 128px; flex: none; }
.app-hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin: 0 0 6px; }
.app-hero .tagline { font-size: 1.2rem; margin: 0 0 14px; color: var(--muted); }

/* Sections */

section { margin: 40px 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}

h2 { font-size: 1.55rem; margin: 48px 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }

/* App cards */

.app-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.app-card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.app-card p { margin: 0 0 12px; color: var(--muted); }
.app-card .more { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

.app-card.placeholder { background: transparent; border-style: dashed; }
.app-card.placeholder p { margin: 0; }
.slot {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 2px dashed var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.8rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Screenshots (PNG/WebP with the window shadow included) */

.shot, .shots figure { margin: 0; }
.shot { margin: 28px 0 8px; }
.shot img, .shots img { display: block; width: 100%; height: auto; }
.shots { display: grid; grid-template-columns: 1.9fr 1fr; gap: 24px; align-items: center; }
/* Region captures (no shadow of their own): round the corners and add one */
.shots img.framed { border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.08); }
figcaption { margin-top: 6px; font-size: 0.92rem; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; gap: 28px; }
  .shots figure:last-child img { max-width: 300px; margin: 0 auto; }
}

/* Numbered steps */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Callouts */

.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* FAQ */

details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.4rem;
  color: var(--muted);
}
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 16px; }
details > div p { margin: 0 0 10px; }

/* Long-form text (privacy policy) */

.prose h2 { font-size: 1.3rem; margin-top: 40px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

.contact {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere; /* a long address must not push past the edge on narrow phones */
}

/* Footer */

.site-footer { margin-top: 80px; border-top: 1px solid var(--border); }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Phones */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; }
  .hero { padding-top: 32px; }
  .app-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 28px; }
  .app-hero img { width: 96px; height: 96px; }
  .app-card { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; align-items: start; }
  .app-card img, .slot { width: 64px; height: 64px; border-radius: 15px; }
}
