/* Notion template pages (local draft). Ink/paper palette shared with
   the This Week Job Tracker product-page draft. Do not deploy until approved. */

:root {
  --bg: #f6f4ef;
  --ink: #1c1915;
  --muted: #5c574e;
  --line: #d9d3c7;
  --card: #fffdf8;
  --accent: #1f4d3a;
  --accent-soft: #e6efe9;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.05), 0 10px 28px rgba(28, 25, 21, 0.05);
  --radius: 0.85rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161411;
    --ink: #f3efe6;
    --muted: #b3ada1;
    --line: #3a352e;
    --card: #1e1a16;
    --accent: #8fbfa6;
    --accent-soft: #24332c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  z-index: 20;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

@media (prefers-color-scheme: dark) {
  .skip { color: #161411; }
}

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

.wrap--wide {
  max-width: 54rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.35rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

header.site .brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

header.site .brand-by {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

header.site nav {
  font-size: 0.95rem;
}

header.site nav a {
  margin-left: 0.85rem;
  text-decoration: none;
}

header.site nav a:first-child { margin-left: 0; }

header.site nav a:hover,
header.site nav a:focus-visible {
  text-decoration: underline;
}

h1 {
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin: 0 0 0.85rem;
}

.price {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
  margin: 0;
}

.btn {
  appearance: none;
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.05rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  border-color: var(--accent);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.secondary {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .btn.primary { color: #161411; }
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.55rem 0 0;
}

section {
  margin: 2.4rem 0 0;
}

.shots {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }

  .shots .shot:first-child {
    grid-column: 1 / -1;
  }
}

.shots--five .shot:first-child {
  grid-column: auto;
}

@media (min-width: 720px) {
  .shots--five {
    grid-template-columns: 1fr 1fr;
  }

  .shots--five .shot:first-child {
    grid-column: 1 / -1;
  }
}

.shots--pair .shot:first-child {
  grid-column: auto;
}

.shot {
  margin: 0;
}

.shot-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  background: var(--card);
}

.shot figcaption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.95rem 1.05rem 1.05rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.prose p { margin: 0 0 0.75rem; }
.prose p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.2rem;
}

.prose li { margin: 0.35rem 0; }

.updated {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq details p {
  margin: 0.5rem 0 0.2rem;
  color: var(--muted);
}

.cta-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.35rem;
}

.cta-band h2 { margin-bottom: 0.35rem; }

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site nav a {
  margin-right: 0.9rem;
  text-decoration: none;
}

footer.site nav a:hover,
footer.site nav a:focus-visible {
  text-decoration: underline;
}

footer.site p { margin: 0.55rem 0 0; }

.legal-wrap {
  max-width: 42rem;
}

/* Hub / catalog cards */

.catalog {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.card-body h2 {
  margin: 0 0 0.3rem;
  font-size: 1.22rem;
}

.card-body h2 a {
  color: inherit;
  text-decoration: none;
}

.card-body h2 a:hover,
.card-body h2 a:focus-visible {
  text-decoration: underline;
  color: var(--accent);
}

.card-price {
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.card-body p {
  color: var(--muted);
  margin: 0 0 0.95rem;
  font-size: 0.98rem;
}

.card-body .actions {
  margin-top: auto;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.also {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
}

.also h2 { margin-bottom: 0.4rem; }

.also p:last-child { margin-bottom: 0; }

/* English site additions (homepage, guides, article typography) */

.hero {
  margin: 0 0 0.5rem;
}

.hero .lede {
  margin-bottom: 1.1rem;
}

.product-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-grid--split {
  /* extension + templates column feel on wide screens */
}

@media (min-width: 800px) {
  .product-grid--templates {
    grid-template-columns: 1fr;
  }
}

.card--plain .card-body {
  padding-top: 1.15rem;
}

.card-desc {
  flex: 1;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-list li {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.05rem;
}

.guide-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-list .date {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.2rem;
}

.guide-list .title {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin: 0 0 0.3rem;
}

.guide-list .title:hover,
.guide-list .title:focus-visible {
  text-decoration: underline;
  color: var(--accent);
}

.guide-list p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.back:hover,
.back:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.article-head h1 {
  margin-bottom: 0.4rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
}

article.prose h2 {
  margin: 2.1rem 0 0.7rem;
}

article.prose h3 {
  margin: 1.5rem 0 0.45rem;
}

article.prose p {
  margin: 0 0 0.95rem;
}

article.prose ul,
article.prose ol {
  margin: 0.2rem 0 1rem;
  padding-left: 1.3rem;
}

article.prose li {
  margin: 0.35rem 0;
}

article.prose li > p {
  margin: 0.25rem 0;
}

article.prose strong {
  font-weight: 650;
}

article.prose code,
footer.site code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.12em 0.38em;
  border-radius: 0.3rem;
}

article.prose pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.95rem 1.05rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0.85rem 0 1.25rem;
  box-shadow: var(--shadow);
}

article.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

article.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

article.prose th,
article.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

article.prose th {
  font-weight: 650;
  background: var(--accent-soft);
}

article.prose tr:last-child td {
  border-bottom: 0;
}

.legal-wrap h1 {
  margin-bottom: 0.35rem;
}

nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.empty-note {
  color: var(--muted);
}

.icp a {
  color: inherit;
  text-decoration: none;
}

.icp a:hover,
.icp a:focus-visible {
  text-decoration: underline;
}
