:root {
  color-scheme: light dark;
  --bg: #fdfcf9;
  --fg: #1a1a1a;
  --muted: #55524b;
  --border: #d8d3c8;
  --accent: #3b6ef5;
  --hero-fallback: linear-gradient(160deg, #3b3b3b 0%, #1a1a1a 100%);
  --season-image: var(--hero-fallback);
  --logo-n: #f2f2f2;
  --logo-s: #d9482f;
  --logo-dot: #f2f2f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --fg: #ece7de;
    --muted: #a89f8f;
    --border: #332e28;
  }
}

/* Seasonal palettes. Each season sets --accent and a fallback gradient used
   until (or unless) that season has its own hero image in script.js. */
:root[data-season="winter"] {
  --accent: #3a6ea5;
  --hero-fallback: linear-gradient(160deg, #0b1f3a 0%, #274873 55%, #c9d9ea 100%);
}

:root[data-season="spring"] {
  --accent: #4c8c5b;
  --hero-fallback: linear-gradient(160deg, #234d2f 0%, #5c9a63 55%, #d9e8c8 100%);
  --logo-n: #eef6ea;
  --logo-s: #3f9450;
  --logo-dot: #eef6ea;
}

:root[data-season="summer"] {
  --accent: #c77d1e;
  --hero-fallback: linear-gradient(160deg, #0e6e6e 0%, #2f9e8f 55%, #f4d47c 100%);
  --logo-n: #fff6e0;
  --logo-s: #d68a1f;
  --logo-dot: #fff6e0;
}

:root[data-season="autumn"] {
  --accent: #b5502e;
  --hero-fallback: linear-gradient(160deg, #3b1f16 0%, #8a4a2a 55%, #e8b563 100%);
  --logo-n: #f6e9d2;
  --logo-s: #c25a34;
  --logo-dot: #f6e9d2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  background-image: var(--season-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0) 78%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.25rem 3rem;
  color: #fff;
}

.logo {
  display: flex;
  align-items: baseline;
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.logo-n {
  color: var(--logo-n);
}

.logo-s {
  color: var(--logo-s);
  font-family: "Marck Script", cursive;
  font-size: 1.5em;
  line-height: 1;
  margin-left: 0.03em;
  position: relative;
  top: 0.05em;
}

.logo-dot {
  color: var(--logo-dot);
  margin-left: 0.05em;
}

.hero-content h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

.hero-content .tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-style: italic;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

#about h2,
#blog h2,
#contact h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
}

#about p,
#blog p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

#about p:last-child,
#blog p:last-child {
  margin-bottom: 0;
}

.contact-links {
  margin: 0;
  font-size: 1.05rem;
}

.services {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.services li {
  display: inline;
}

.services li:not(:last-child)::after {
  content: " \00b7 ";
  color: var(--border);
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact-links a {
  margin-right: 1.5rem;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

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

footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  border-bottom-color: var(--border);
}
