/* ============================================
   Notakaki Design System v2
   White background · Sans-serif headings · Serif body
   ============================================ */

:root {
  /* Colors */
  --page-bg: #ffffff;
  --surface: #ffffff;
  --text-primary: #1c1816;
  --text-secondary: #6b625a;
  --accent: #c04b33;
  --accent-soft: #e88d7a;
  --accent-hover: #a33d29;
  --border: #e5e5e5;
  --quote-bg: #f6f4f2;
  --tag-warm: #f0e6d8;
  --footer-bg: #1c1816;
  --footer-text: #e8e2da;

  /* Typography */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-hover: 0 4px 24px rgba(28, 24, 22, 0.06);

  /* Transitions */
  --ease-standard: 200ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-serif);
  margin: 0;
  padding: 0;
  text-align: left;
  background: var(--page-bg);
  color: var(--text-primary);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Content container */
.content {
  width: min(720px, 100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography — Headings: Inter (sans), Body: Source Serif 4 (serif) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease-standard);
}

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

/* Nav links (no underline at rest) */
nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: none;
}

/* Paragraphs */
p {
  margin-bottom: 1.5em;
  max-width: 70ch;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.content img {
  border: 1px solid var(--border);
}

/* Blockquotes */
blockquote {
  margin: 2em 0;
  padding: 1.25em 1.5em;
  background: var(--quote-bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--text-primary);
}

blockquote p {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

/* Pull quotes (from WordPress) */
.wp-block-pullquote {
  margin: 2em 0;
  padding: 1.5em;
  background: var(--quote-bg);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.333em;
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xxl) 0;
}

/* Code */
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 2px 6px;
  background: var(--quote-bg);
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  color: var(--accent);
}

pre {
  padding: 1.5em;
  border-radius: var(--radius-md);
  background: var(--footer-bg);
  color: var(--footer-text);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Form elements */
input, textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(192, 75, 51, 0.15);
}

/* WordPress content styles */
.wp-block-image {
  margin: 2em 0;
}

.wp-block-image figcaption {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75em;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.wp-block-quote {
  border-left: 4px solid var(--accent);
  padding: 1.25em 1.5em;
  margin: 2em 0;
  background: var(--quote-bg);
  border-radius: var(--radius-sm);
  font-style: italic;
}

.wp-block-embed {
  margin: 2em 0;
}

/* Figure (WordPress) */
figure {
  margin: 2em 0;
}

figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

th, td {
  padding: 0.75em 1em;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--quote-bg);
  font-family: var(--font-sans);
  font-weight: 600;
}

/* Utility */
.sr-only {
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .content {
    width: 100%;
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }
}
