/*
Theme Name: Slowpace
Theme URI: https://slowpace.fun/
Author: Slowpace
Description: A light editorial WordPress theme for personal projects, experiments, and notes. Includes reusable project and note templates.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: slowpace
Tags: blog, portfolio, grid-layout, editor-style, custom-logo, featured-images, block-styles
*/

:root {
  --sp-paper: #f3f0e8;
  --sp-paper-deep: #e9e4d9;
  --sp-ink: #242622;
  --sp-muted: #686a61;
  --sp-rust: #b96542;
  --sp-line: #d8d2c6;
  --sp-white: #fffdf8;
  --sp-serif: Georgia, "Times New Roman", serif;
  --sp-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sp-width: 1160px;
  --sp-reading: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: var(--sp-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--sp-rust); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--sp-rust); outline-offset: 3px; }
.sp-shell { width: min(var(--sp-width), calc(100% - 48px)); margin-inline: auto; }
.sp-reading { width: min(var(--sp-reading), calc(100% - 48px)); margin-inline: auto; }
.sp-site-header { border-bottom: 1px solid var(--sp-line); }
.sp-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.sp-brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font-size: 1.55rem; line-height: 1; letter-spacing: -.075em; font-weight: 850; }
.sp-brand-dot { color: var(--sp-rust); }
.sp-brand-tag { display: block; color: var(--sp-muted); font-size: .65rem; letter-spacing: .13em; font-weight: 650; text-transform: uppercase; margin-top: 9px; }
.sp-brand-wrap { display: flex; flex-direction: column; }
.sp-nav { display: flex; align-items: center; gap: 26px; font-size: .84rem; font-weight: 650; }
.sp-nav a { text-decoration: none; }
.sp-nav .current-menu-item > a, .sp-nav .current_page_item > a { color: var(--sp-rust); }
.sp-menu-toggle { display: none; background: transparent; border: 1px solid var(--sp-line); padding: 8px 12px; border-radius: 2px; color: var(--sp-ink); }
.sp-eyebrow { color: var(--sp-rust); text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; font-weight: 750; }
.sp-hero { padding: clamp(72px, 12vw, 148px) 0 clamp(66px, 9vw, 112px); border-bottom: 1px solid var(--sp-line); }
.sp-hero h1 { max-width: 880px; margin: 18px 0 24px; font-size: clamp(3.3rem, 8.5vw, 7.7rem); line-height: .91; letter-spacing: -.085em; font-weight: 760; }
.sp-hero h1 em { font-family: var(--sp-serif); font-weight: 400; letter-spacing: -.08em; }
.sp-hero-copy { max-width: 570px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--sp-muted); }
.sp-hero-meta { display: flex; gap: 18px; align-items: center; margin-top: 34px; color: var(--sp-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; }
.sp-hero-meta::before { content: ""; width: 38px; height: 2px; background: var(--sp-rust); }
.sp-section { padding: 68px 0; }
.sp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.sp-section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.065em; line-height: 1; }
.sp-section-head p { margin: 8px 0 0; color: var(--sp-muted); }
.sp-text-link { font-size: .82rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.sp-text-link::after { content: " ↗"; color: var(--sp-rust); }
.sp-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.sp-card { min-width: 0; }
.sp-card-image { aspect-ratio: 1.45 / 1; overflow: hidden; background: var(--sp-paper-deep); margin-bottom: 18px; }
.sp-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sp-card a:hover .sp-card-image img { transform: scale(1.035); }
.sp-card-image .sp-placeholder { height: 100%; display: grid; place-items: center; color: var(--sp-muted); font-family: var(--sp-serif); font-size: 2rem; }
.sp-card-meta { color: var(--sp-rust); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; }
.sp-card h3 { margin: 7px 0 8px; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.12; letter-spacing: -.055em; }
.sp-card h3 a { text-decoration: none; }
.sp-card-excerpt { color: var(--sp-muted); margin: 0; max-width: 560px; font-size: .96rem; }
.sp-note-band { background: var(--sp-ink); color: var(--sp-paper); padding: clamp(32px, 6vw, 66px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.sp-note-band h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: .98; letter-spacing: -.07em; margin: 12px 0 0; }
.sp-note-band p { color: #c5c5bb; margin: 0; }
.sp-note-band .sp-eyebrow { color: #d88a66; }
.sp-page-intro { padding: 76px 0 52px; border-bottom: 1px solid var(--sp-line); }
.sp-page-intro h1 { margin: 12px 0 14px; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.08em; }
.sp-page-intro p { color: var(--sp-muted); max-width: 650px; font-size: 1.08rem; }
.sp-article-head { padding: 72px 0 36px; }
.sp-article-head h1 { font-size: clamp(2.7rem, 7vw, 6rem); letter-spacing: -.08em; line-height: .96; margin: 14px 0 22px; }
.sp-article-deck { font-size: 1.2rem; color: var(--sp-muted); max-width: 720px; }
.sp-article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--sp-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; margin-top: 24px; }
.sp-featured-image { margin: 0 auto 54px; max-width: var(--sp-width); padding-inline: 24px; }
.sp-featured-image img { width: 100%; max-height: 650px; object-fit: cover; }
.sp-content { padding-bottom: 80px; font-size: 1.04rem; }
.sp-content > * { max-width: var(--sp-reading); margin-left: auto; margin-right: auto; }
.sp-content > .alignwide { max-width: var(--sp-width); }
.sp-content > .alignfull { max-width: none; width: 100%; }
.sp-content p { margin-top: 0; margin-bottom: 1.5em; }
.sp-content h2 { margin-top: 2.1em; margin-bottom: .65em; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.06em; }
.sp-content h3 { margin-top: 1.8em; margin-bottom: .55em; font-size: 1.4rem; letter-spacing: -.04em; }
.sp-content blockquote { border-left: 3px solid var(--sp-rust); margin-top: 2em; margin-bottom: 2em; padding: 4px 0 4px 24px; font: italic 1.5rem/1.4 var(--sp-serif); }
.sp-content figure { margin-top: 2.2em; margin-bottom: 2.2em; }
.sp-content figcaption { font-size: .78rem; color: var(--sp-muted); margin-top: 8px; }
.sp-content pre, .sp-content code { background: var(--sp-paper-deep); }
.sp-content pre { padding: 20px; overflow-x: auto; }
.sp-content table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.sp-content th, .sp-content td { border-bottom: 1px solid var(--sp-line); padding: 10px; text-align: left; }
.sp-content .wp-block-button__link { background: var(--sp-ink); color: var(--sp-paper); border-radius: 0; }
.sp-content .wp-block-separator { border-color: var(--sp-line); }
.sp-pagination { display: flex; justify-content: space-between; padding: 36px 0 70px; border-top: 1px solid var(--sp-line); }
.sp-pagination a { font-weight: 700; text-decoration: none; }
.sp-site-footer { border-top: 1px solid var(--sp-line); padding: 30px 0; }
.sp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--sp-muted); font-size: .75rem; }
.sp-footer-inner strong { color: var(--sp-ink); }
.sp-empty { padding: 45px 0 90px; color: var(--sp-muted); }
.sp-category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sp-category-list a { border: 1px solid var(--sp-line); padding: 6px 11px; font-size: .76rem; text-decoration: none; }
.sp-category-list a:hover { border-color: var(--sp-rust); color: var(--sp-rust); }
.sp-content .wp-block-gallery { max-width: var(--sp-width); }
.sp-content .wp-block-image img { height: auto; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
@media (max-width: 700px) {
  .sp-shell { width: min(var(--sp-width), calc(100% - 32px)); }
  .sp-reading { width: min(var(--sp-reading), calc(100% - 32px)); }
  .sp-header-inner { min-height: 74px; flex-wrap: wrap; padding: 17px 0; gap: 14px; }
  .sp-menu-toggle { display: inline-block; }
  .sp-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 4px; }
  .sp-nav.is-open { display: flex; }
  .sp-nav a { display: block; padding: 9px 0; }
  .sp-hero { padding: 76px 0 68px; }
  .sp-card-grid { grid-template-columns: 1fr; gap: 34px; }
  .sp-section { padding: 48px 0; }
  .sp-section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .sp-note-band { grid-template-columns: 1fr; gap: 18px; }
  .sp-page-intro { padding: 60px 0 38px; }
  .sp-article-head { padding: 54px 0 30px; }
  .sp-featured-image { padding-inline: 16px; margin-bottom: 38px; }
  .sp-footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}
