/*
 * Design System — Japanese-inspired minimal aesthetic
 *
 * Font:     Inter (Google Fonts) — clean, geometric sans-serif with
 *           precise letterforms. Loads weights 300, 400, 600.
 *
 * Palette:  Near-black text (#1a1a1a) on warm off-white (#fafaf9).
 *           Avoids pure black/white for a softer, more natural contrast.
 *           Buttons use Pico's default primary blue.
 *
 * Sizing:   Base font 15px with light weight (300) for body copy.
 *           Headings use weight 400-600; size provides hierarchy.
 *           Generous whitespace throughout.
 *
 * Layout:   Container max-width 720px. Responsive vertical padding
 *           (2rem mobile, 6rem desktop). Inline padding at all widths.
 */

:root {
  --pico-font-family: "Inter", sans-serif;
  --pico-font-size: 15px;
  --pico-font-weight: 300;
  --pico-line-height: 1.7;

  --pico-color: #1a1a1a;
  --pico-background-color: #fafaf9;
}

/* --- Layout --- */

main.container {
  max-width: 720px;
  padding: 2rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  main.container {
    padding: 6rem 1.25rem;
  }
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 4rem;
}

strong {
  font-weight: 600;
}

p + p {
  margin-top: 0;
}

/* --- Components --- */

.back {
  margin-bottom: 3rem;
}

.back a {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.5;
}

.back a:hover {
  opacity: 1;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.services {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.25em;
}

.services dt,
.services dd {
  margin: 0;
  padding: 0.25em 0;
  border-bottom: 1px dotted color-mix(in srgb, currentColor 30%, transparent);
}

.services dt {
  font-weight: 400;
}

.services dd {
  text-align: right;
}

.posts {
  list-style: none;
  padding: 0;
}

.posts li {
  display: flex;
  gap: 1.5em;
  padding: 0.25em 0;
}

.posts time {
  font-variant-numeric: tabular-nums;
  opacity: 0.4;
  white-space: nowrap;
}

/* --- Blog --- */

article {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-family: "Literata", Georgia, serif;
  font-weight: 300;
  font-size: 1.05rem;
  text-align: justify;
}

article h1, article h2, article h3,
article h4, article h5, article h6 {
  font-family: "Inter", sans-serif;
}

.post-date {
  opacity: 0.4;
  margin-top: -0.5rem;
  margin-bottom: 2.5rem;
}
