/* timetap.no - the same warm "Organic" look as Timetap's own web page (brief/05-design.md). */

@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --text: #201e1d;
  --accent: #c67139;
  --sage: #7a8a5e;
  --divider: rgba(32, 30, 29, 0.16);
  --neutral-100: #f9f4ed;
  --neutral-200: #eee7db;
  --neutral-700: #645c50;
  --neutral-800: #474238;
  --accent-100: #fff2eb;
  --accent-600: #b2622d;
  --accent-700: #8c491a;
  --sage-200: #e1eecc;
  --sage-500: #8fa073;
  --go: #2f8f44;
  --go-hover: #256f36;
  --live: #2fb355;
  --radius-card: 28px;
  --radius-input: 12px;
  --page: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

a { color: var(--accent-700); text-underline-offset: 0.15em; }
a:hover { color: var(--text); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; z-index: 10; }

.muted { color: var(--neutral-700); }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 10px;
}

/* --- Header and footer --- */

.site-header {
  max-width: var(--page);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { height: 24px; width: auto; }
.home .brand { visibility: hidden; } /* the front page has the big logo */

.header-nav { display: flex; align-items: center; gap: 18px; }
.lang-link { font-weight: 600; text-decoration: none; color: var(--neutral-800); font-size: 15px; }
.lang-link:hover { color: var(--accent-700); }

main { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

.site-footer {
  max-width: var(--page);
  margin: 72px auto 0;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--divider);
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 14px; }
.footer-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--accent-700); }
.footer-note { font-size: 14px; color: var(--neutral-700); margin: 0; }
.footer-note a { color: inherit; }

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--accent-600);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-700); color: #fff; }
.btn-go { background: var(--go); }
.btn-go:hover { background: var(--go-hover); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--divider); }
.btn-quiet:hover { background: var(--neutral-100); color: var(--text); }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-big { padding: 18px 34px; font-size: 1.1rem; }

/* --- Front page --- */

.hero { text-align: center; padding: 48px 0 40px; }
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 26px; }
.hero-mark { width: clamp(96px, 18vw, 140px); height: auto; }
.hero-word { width: clamp(240px, 50vw, 440px); height: auto; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
.hero-lead { font-size: 1.15rem; max-width: 36em; margin: 0 auto 30px; color: var(--neutral-800); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--neutral-700); }

.shot { margin: 24px auto 0; max-width: 960px; }
.shot img { display: block; border-radius: 20px; box-shadow: 0 18px 50px rgba(32, 30, 29, 0.14); }

section { padding: 56px 0 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card { background: var(--surface); border-radius: var(--radius-card); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-light { background: var(--neutral-100); }
.card-dark { background: var(--text); color: var(--bg); }
.card-dark a { color: var(--accent-300, #ffc6a5); }
.card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-100); color: var(--accent-700);
  margin-bottom: 14px;
}

.chip {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--sage-200); color: #3d472b; font-size: 13px; font-weight: 600;
}

.edition-list { margin: 10px 0 0; padding-left: 1.2em; }
.edition-list li { margin-bottom: 4px; }

.price { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.price .card { flex: 1 1 260px; }
.price-big { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; display: block; margin-bottom: 6px; }

.closing { text-align: center; }

/* --- Text pages (privacy, guides, about ...) --- */

.prose { max-width: 46em; margin: 0 auto; padding-top: 24px; }
.prose h1 { margin-bottom: 0.4em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li > ul, .prose li > ol { margin-top: 0.35em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--neutral-700); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--neutral-200); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--text); color: var(--neutral-100); padding: 16px 18px; border-radius: 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
.lead { font-size: 1.15rem; color: var(--neutral-800); }
.crumb { font-size: 15px; margin-bottom: 18px; }
.crumb a { text-decoration: none; font-weight: 600; }
.crumb a::before { content: "← "; }
.guide-source { margin-top: 2.4em; font-size: 15px; }

.note, blockquote.note {
  margin: 0 0 1.4em;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--accent-100);
  border: 1px solid #ffe1d0;
}
.note p:last-child { margin-bottom: 0; }

.guide-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.guide-list a {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  padding: 16px 20px; border-radius: 18px; background: var(--surface);
  color: var(--text); text-decoration: none;
}
.guide-list a:hover { background: var(--neutral-200); }
.guide-list strong { font-size: 1.05rem; }
.guide-list span { color: var(--neutral-700); font-size: 15px; }
.guide-list .untested { color: var(--accent-700); font-weight: 600; }

details.fold { border-bottom: 1px solid var(--divider); padding: 12px 0; }
details.fold summary { cursor: pointer; font-weight: 600; }
details.fold[open] summary { margin-bottom: 8px; }

@media (max-width: 560px) {
  .brand-word { display: none; }
  .home .brand { display: none; }
  .header-nav { gap: 14px; margin-left: auto; }
  .hero { padding-top: 24px; }
  .card { padding: 22px; }
}

.after-note { text-align: center; margin-top: 18px; }
.eyebrow.on-dark { color: #ffc6a5; }
.grid.spaced { margin-top: 20px; }
.after-chip { margin-top: 12px; }
