:root {
  --text: #12151a;
  --muted: #5a6570;
  --link: #255f9a;
  --accent: #c99212;
  --border: #cfd6dd;
  --bg: #eef2f5;
  --bg-deep: #e2e8ee;
  --max: 42rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 85% 50% at 8% -8%, rgba(201, 146, 18, 0.14), transparent 55%),
    radial-gradient(ellipse 65% 40% at 100% 5%, rgba(37, 95, 154, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  animation: rise 0.7s ease both;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.site-brand:hover {
  text-decoration: none;
}

.site-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.site-avatar--header {
  width: 2.5rem;
  height: 2.5rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header nav a:hover {
  color: var(--text);
}

.site-main {
  padding: 2rem 0 3rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  background: var(--text);
  border-color: var(--text);
  color: #eef2f5;
  text-decoration: none;
  transform: translateY(-1px);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.footer-blurb {
  margin: 0;
  max-width: 40rem;
}

/* Landing
   -------------------------------------------------------------------------- */

body.landing .site-main {
  padding-top: 1rem;
}

/* On the landing page, portrait lives in the hero — hide the header avatar */
body.landing .site-avatar--header {
  display: none;
}

.landing {
  position: relative;
  min-height: calc(100svh - 11rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3rem;
  animation: rise 0.85s 0.08s ease both;
}

.landing-copy {
  position: relative;
  z-index: 0;
  /* Keep copy clear of the upper-right portrait on wider screens */
  padding-right: clamp(0rem, 8vw, 1rem);
  max-width: 36rem;
}

.landing-portrait {
  position: absolute;
  top: 0.25rem;
  right: 0;
  z-index: 1;
  line-height: 0;
  animation: rise 0.9s 0.12s ease both;
}

.site-avatar--hero {
  width: 9.5rem;
  height: 9.5rem;
  max-width: 28vw;
  max-height: 28vw;
  box-shadow: 0 0 0 3px rgba(18, 21, 26, 0.08);
}

/* Room for the circle beside the brand + headline */
@media (min-width: 641px) {
  .landing-copy {
    padding-right: 11rem;
  }
}

.landing-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.landing-headline {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.landing-lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 0;
}

@media (max-width: 640px) {
  .landing {
    min-height: 0;
    padding-top: 1rem;
  }

  .landing-portrait {
    position: static;
    margin: 0 0 1.25rem;
  }

  .landing-copy {
    padding-right: 0;
    max-width: none;
  }

  .site-avatar--hero {
    width: 6.5rem;
    height: 6.5rem;
    max-width: none;
    max-height: none;
  }
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: #eef2f5;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #12151a;
  text-decoration: none;
  transform: translateY(-1px);
}

.button-quiet {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.button-quiet:hover {
  color: var(--text);
  border-bottom-color: var(--text);
  text-decoration: none;
}

.recent {
  margin-top: 1rem;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--border);
  animation: rise 0.9s 0.18s ease both;
}

.recent-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recent-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.recent-all {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

.recent-all:hover {
  color: var(--link);
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.recent-list time {
  color: var(--muted);
  font-size: 0.9rem;
}

.recent-list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.recent-list a:hover {
  color: var(--link);
}

@media (max-width: 520px) {
  .recent-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Posts & pages
   -------------------------------------------------------------------------- */

.post-title,
.page-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  line-height: 1.25;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.post-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-content,
.page-content,
.post-excerpt {
  font-size: 1.02rem;
}

.post-content p,
.page-content p,
.post-excerpt p {
  margin: 0 0 1rem;
}

.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
}

.post-summary {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.post-summary .post-title {
  font-size: 1.35rem;
}

.post-summary .post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-summary .post-title a:hover {
  color: var(--link);
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.page-number {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Search
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-input {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--text);
}

.search-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.search-result-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.search-result-title:hover {
  color: var(--link);
}

.search-result-meta {
  margin: 0.25rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Look page — slideshow + Instagram
   -------------------------------------------------------------------------- */

.look-reel {
  margin: 0 0 2.5rem;
}

.look-reel-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(18, 21, 26, 0.06);
  aspect-ratio: 4 / 3;
}

.look-reel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.look-reel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.look-reel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look-reel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(transparent, rgba(18, 21, 26, 0.72));
  color: #eef2f5;
  font-size: 0.9rem;
}

.look-reel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.look-reel-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.look-reel-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: #eef2f5;
}

.look-reel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.look-reel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.look-reel-dot.is-active {
  background: var(--accent);
}

.look-reel-status {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.look-reel-empty {
  padding: 2rem 1.25rem;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.look-reel-empty p {
  margin: 0;
}

.look-instagram h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.look-instagram-lede {
  margin: 0 0 1rem;
  color: var(--muted);
}

.look-instagram-actions {
  margin: 0 0 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .look-reel-slide {
    transition: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .landing,
  .landing-portrait,
  .recent,
  .button {
    animation: none;
    transition: none;
  }
}
