@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@500;700;800&display=swap");

:root {
  --bg: #f8f3e9;
  --bg-soft: #efe6d8;
  --surface: #fffdf8;
  --text: #172226;
  --muted: #5f6c70;
  --line: #d8ccbc;
  --accent: #0f766e;
  --accent-2: #124e78;
  --accent-soft: #d7ece8;
  --danger: #9f2d2d;
  --shadow: 0 14px 28px rgba(23, 34, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.58;
  background:
    radial-gradient(circle at 10% 8%, rgba(15, 118, 110, 0.09), transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(18, 78, 120, 0.11), transparent 26%),
    linear-gradient(170deg, var(--bg) 0%, var(--bg-soft) 100%);
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0.85rem;
  border: 1px solid rgba(23, 34, 38, 0.13);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(23, 34, 38, 0.07);
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 20;
}

.logo,
.brand {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 2px solid rgba(255, 253, 248, 0.9);
  background-image: url("photos/avatar.jpg");
  background-size: cover;
  background-position: center 30%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  margin: 0 auto 0.9rem;
  box-shadow: 0 8px 18px rgba(23, 34, 38, 0.22);
}

.main-nav {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.main-nav a {
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.7vw, 1.02rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(23, 34, 38, 0.12);
  border-radius: 11px;
  padding: 0.62rem 0.45rem;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.45);
  color: var(--accent);
}

.main-nav a.is-active {
  background: var(--accent-soft);
  color: #0d4a45;
  border-color: rgba(15, 118, 110, 0.5);
}

.site-header.compact {
  width: min(920px, 92vw);
}

.site-header.compact .main-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

main,
.blog-main,
.hobby-main {
  width: min(1120px, 92vw);
  margin: 1.35rem auto 2.3rem;
  animation: fadeUp 0.65s ease both;
}

.hero-note,
.eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.77rem;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-note {
  text-align: center;
  margin-bottom: 0.7rem;
}

.scroll-cue {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.3rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.hero-image {
  min-height: 19.5rem;
  border: 1px solid rgba(23, 34, 38, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(10, 41, 58, 0.45) 0%, rgba(15, 118, 110, 0.2) 100%),
    url("photos/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-image::before,
.hero-image::after {
  content: none;
  position: absolute;
  border-radius: 999px;
  opacity: 0.42;
}

.hero-image::before {
  width: 260px;
  height: 260px;
  right: -48px;
  top: -68px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-image::after {
  width: 200px;
  height: 200px;
  left: -42px;
  bottom: -48px;
  background: rgba(255, 210, 143, 0.36);
}

.section,
.panel {
  margin-top: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(23, 34, 38, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.section h1,
.section h2,
.section h3,
.panel h1,
.panel h2,
.card h2 {
  margin: 0 0 0.55rem;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section h1,
.panel h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.section h2,
.panel h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
}

.section h3 {
  font-size: clamp(1.12rem, 2.05vw, 1.5rem);
}

.page-intro {
  max-width: 74ch;
  font-size: 0.98rem;
  color: #243438;
}

.meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.list-grid,
.grid {
  display: grid;
  gap: 0.85rem;
}

.list-grid.two,
.blog-grid,
.hobby-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

#projects-list {
  grid-template-columns: 1fr;
}

.item,
.card,
.hobby-card {
  border: 1px solid rgba(23, 34, 38, 0.13);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f3e9 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.item p {
  margin: 0.45rem 0;
}

.item:hover,
.card:hover,
.hobby-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(23, 34, 38, 0.12);
}

.item a,
.card a {
  color: var(--accent);
  font-weight: 700;
}

.compact-list {
  margin: 0.55rem 0 0;
  padding-left: 1.05rem;
}

.compact-list li {
  margin: 0.3rem 0;
  color: #223035;
}

.contact-line {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.contact-line a,
.hero-cta a {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(23, 34, 38, 0.16);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.93rem;
}

.contact-line a:hover,
.hero-cta a:hover {
  border-color: rgba(15, 118, 110, 0.5);
  color: var(--accent);
}

.hero-cta {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-cta .primary {
  background: linear-gradient(135deg, #0f766e 0%, #124e78 100%);
  border-color: transparent;
  color: #f8fbfb;
}

.hero-cta .primary:hover {
  color: #ffffff;
  box-shadow: 0 10px 16px rgba(15, 118, 110, 0.3);
}

.stat-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat {
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 12px;
  background: rgba(215, 236, 232, 0.62);
  padding: 0.74rem;
}

.stat strong {
  display: block;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.22rem;
  color: #0f4d47;
}

.photo-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.photo-card {
  background: #fffdf8;
  border: 1px solid rgba(23, 34, 38, 0.14);
  border-radius: 14px;
  padding: 0.64rem;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(100%);
}

.photo-card figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.bg-shape {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
  opacity: 0.34;
}

.bg-shape-1 {
  right: -72px;
  top: 52px;
  background: #9ed8d2;
}

.bg-shape-2 {
  left: -74px;
  bottom: 70px;
  background: #a4cde6;
}

.reveal {
  animation: fadeUp 0.65s ease both;
}

.site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto 1.5rem;
  color: #3f4d51;
  font-size: 0.89rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.footer-nav a {
  text-decoration: none;
  border: 1px solid rgba(23, 34, 38, 0.14);
  border-radius: 9px;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .section,
  .panel {
    padding: 1.08rem;
  }

  .hero-image {
    min-height: 15.5rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    margin-top: 0;
    padding: 0.7rem;
  }

  .logo,
  .brand {
    margin-bottom: 0.72rem;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
  }

  main,
  .blog-main,
  .hobby-main,
  .site-footer {
    width: 94vw;
  }

  .hero-cta a,
  .contact-line a {
    width: 100%;
    text-align: center;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 13rem;
  }
}
