:root {
  --bg: #f4f1e9;
  --surface: #fffdf8;
  --ink: #17221c;
  --muted: #58645d;
  --line: #d8d8ce;
  --accent: #d76532;
  --accent-dark: #9f3f1b;
  --green: #234b3a;
  --green-light: #dfe9df;
  --shadow: 0 18px 55px rgb(23 34 28 / 10%);
  --radius: 1.25rem;
  --content: 72rem;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 10vw, 6.2rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.05rem;
}

p,
ul,
ol,
pre {
  margin: 0 0 1.25rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.45rem;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(23 34 28 / 10%);
  background: rgb(244 241 233 / 92%);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 2.1rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.menu-button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-content: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  width: 1.1rem;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(0.3rem) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-0.3rem) rotate(-45deg);
}

.site-nav {
  position: absolute;
  inset: 4.5rem 0 auto;
  display: none;
  padding: 0.75rem 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  max-width: var(--content);
  margin: auto;
  padding: 0;
  list-style: none;
}

.nav-list li + li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 9rem);
}

.hero::before {
  content: "";
  position: absolute;
  width: 20rem;
  aspect-ratio: 1;
  top: -8rem;
  right: -8rem;
  border-radius: 50%;
  background: var(--green-light);
  filter: blur(1px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(23 34 28 / 18%);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  color: var(--ink);
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-alt {
  background: var(--ink);
  color: white;
}

.section-alt .section-intro,
.section-alt .meta,
.section-alt .project-tech {
  color: #bac4bd;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.project-grid,
.blog-grid,
.service-grid,
.info-grid,
.skills-grid {
  display: grid;
  gap: 1rem;
}

.project-grid {
  grid-auto-rows: 1fr;
}

.project-card,
.blog-card,
.service-card,
.info-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 15%, #f0a176, transparent 28%), linear-gradient(135deg, #243d32, #18231e);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: -0.06em;
}

.project-body,
.blog-card-body,
.service-card,
.info-card {
  padding: 1.4rem;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body p,
.blog-card p,
.service-card p,
.info-card p {
  color: var(--muted);
}

.project-tech {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.project-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-weight: 750;
}

.project-link::after,
.text-link::after {
  content: "↗";
}

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

.timeline li {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-group {
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
}

.skill-group h3 {
  color: white;
  font-size: 1.35rem;
}

.tag-list li {
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-band {
  text-align: center;
}

.contact-band p {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.email-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 5vw, 2.4rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 62rem;
  font-size: clamp(2.7rem, 8vw, 5.5rem);
}

.page-hero > .container > p:not(.eyebrow) {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.18rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 10rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .text-link {
  margin-top: auto;
}

.article {
  width: min(calc(100% - 2rem), 48rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.article > img:first-child {
  width: 100%;
  height: 10rem;
  margin-bottom: 3rem;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article h2 {
  margin-top: 2.4em;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.article h3 {
  margin-top: 2em;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.article h4 {
  margin-top: 1.8em;
  font-family: inherit;
  font-size: 1.1rem;
}

.article p,
.article li {
  color: #344139;
}

.article a {
  overflow-wrap: anywhere;
}

.article pre {
  overflow-x: auto;
  padding: 1.2rem;
  border-radius: 0.8rem;
  background: #111a16;
  color: #e8eee9;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.article code:not(pre code) {
  padding: 0.12em 0.35em;
  border-radius: 0.3em;
  background: #e5e6df;
  font-size: 0.9em;
}

.notice {
  margin: 1.8rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: #fff6ed;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: inherit;
}

.service-card h3,
.info-card h3 {
  font-family: inherit;
  font-size: 1.15rem;
}

.service-card ul {
  margin-bottom: 0;
}

.legal h2 {
  margin-top: 2.2em;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
}

.legal h3 {
  margin-top: 1.8em;
  font-family: inherit;
  font-size: 1.15rem;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0;
  list-style: none;
}

.footer-links li,
.social-links li {
  margin: 0;
}

.footer-links a,
.social-links a {
  color: var(--ink);
  font-weight: 650;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 41.999rem) {
  .blog-card h2,
  .blog-card h3 {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 59.999rem) {
  .hero::before {
    content: none;
  }
}

@media (min-width: 42rem) {
  .project-grid,
  .blog-grid,
  .service-grid,
  .info-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline li {
    grid-template-columns: 10rem 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 60rem) {
  .container {
    width: min(calc(100% - 4rem), var(--content));
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.35rem;
  }

  .nav-list a {
    padding: 0.3rem 0;
    border: 0;
    font-size: 0.91rem;
  }

  .nav-list a[aria-current="page"] {
    box-shadow: inset 0 -2px var(--accent);
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.7fr);
    align-items: end;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card:first-child,
  .project-card:nth-child(2) {
    grid-column: span 1;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
