/*
Theme Name: SamBlog
Theme URI: https://sam.blog
Description: Custom block theme for sam.blog — a calm, earth-toned home for Sam Hotchkiss's writing, photography, and projects. Built on Twenty Twenty-Five as a parent.
Author: Sam Hotchkiss (with Sage)
Author URI: https://sam.blog
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: samblog
Tags: block-theme, full-site-editing, photography, writing, personal-site, earth-tones
*/

/*
 * Most styling lives in theme.json. This file exists to:
 *  - register the child theme,
 *  - provide a small set of utility classes that aren't expressible as
 *    block style variations,
 *  - and tweak a few inherited TT5 defaults.
 */

/* Soften default link underlines site-wide. */
a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Hero block — used by the front page pattern. */
.samblog-hero {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.samblog-hero .samblog-hero__eyebrow {
  font-family: var(--wp--preset--font-family--ui);
  font-size: var(--wp--preset--font-size--small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--clay);
  margin-bottom: 0.75rem;
}

.samblog-hero .samblog-hero__lede {
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Content-type cards — Writing / Photography / Things I've Built / Three Stones. */
.samblog-card {
  display: block;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--wp--preset--color--sand-deep);
  border-radius: 4px;
  background: var(--wp--preset--color--paper);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.samblog-card:hover,
.samblog-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--clay);
  box-shadow: 0 8px 24px -16px rgba(58, 38, 24, 0.25);
}

.samblog-card__kicker {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--clay);
  margin-bottom: 0.5rem;
  display: block;
}

.samblog-card__title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.samblog-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--wp--preset--color--ink-soft);
  margin: 0;
}

/* Token counter — a quiet, slightly playful number block. */
.samblog-counter {
  font-family: var(--wp--preset--font-family--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--ink);
}

.samblog-counter__value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  display: inline-block;
}

.samblog-counter__label {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--clay);
  display: block;
  margin-top: 0.4rem;
}

.samblog-counter__footnote {
  display: block;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.75rem;
  color: var(--wp--preset--color--ink-soft);
  font-style: italic;
  margin-top: 0.6rem;
}

/* Photo grid override for the photo category archive — let images breathe. */
.samblog-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.samblog-photo-grid figure {
  margin: 0;
}

.samblog-photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* Footer */
.samblog-footer {
  border-top: 1px solid var(--wp--preset--color--sand-deep);
  padding-block: 2rem;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.875rem;
  color: var(--wp--preset--color--ink-soft);
}

/* Tighter post-meta line on archives. */
.wp-block-post-date,
.wp-block-post-author {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--ink-soft);
}

/* Small whimsy: a single tilde flourish under each H2 in long-form. */
.entry-content h2::after {
  content: "~";
  display: block;
  margin-top: 0.5rem;
  font-family: var(--wp--preset--font-family--serif);
  color: var(--wp--preset--color--clay);
  opacity: 0.6;
  font-size: 1.2em;
  line-height: 0.5;
}
