﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:opsz,wght@9..144,400;9..144,600&display=swap');

:root {
  --bg: #f6f2ea;
  --bg-accent: #efe6da;
  --fg: #1f2421;
  --muted: #5f6b64;
  --accent: #006d5b;
  --accent-2: #b55d2a;
  --card: #ffffff;
  --line: #e4ded6;
  --shadow: 0 20px 50px rgba(22, 30, 26, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 10% -10%, #f0efe9 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #efe4d5 0%, transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, #f9f6f1 100%);
  min-height: 100vh;
}

body.locked {
  overflow: hidden;
}

.page,
.footer {
  filter: none;
  transition: filter 0.2s ease;
}

body.locked .page,
body.locked .footer {
  filter: blur(10px);
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 12px 0;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 12px 0;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 40px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.hero-main {
  padding: 4px 8px;
  animation: rise 0.8s ease forwards;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
}

.tagline span {
  display: block;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 109, 91, 0.25);
}

.btn.ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(22, 30, 26, 0.15);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: rise 0.9s ease 0.1s forwards;
  opacity: 0;
}

.about-media {
  margin: 14px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(22, 30, 26, 0.12);
  background: #f0e7db;
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

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

.section {
  margin-top: 64px;
  animation: rise 0.9s ease 0.2s forwards;
  opacity: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.muted {
  color: var(--muted);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.clover {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 18px;
  align-content: start;
  justify-self: end;
  max-width: 460px;
  width: 100%;
  animation: rise 0.9s ease 0.1s forwards;
  opacity: 0;
}

.clover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(22, 30, 26, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 130px;
  --x: 0px;
  --y: 0px;
  transform: translate(var(--x), var(--y));
}

.clover-card h2 {
  font-size: 1.25rem;
}

.clover-card:hover {
  transform: translate(var(--x), calc(var(--y) - 4px));
  box-shadow: 0 20px 46px rgba(22, 30, 26, 0.16);
}

.clover-card:nth-child(1) {
  --x: 18px;
  --y: 0px;
}

.clover-card:nth-child(2) {
  --x: 0px;
  --y: 18px;
}

.clover-card:nth-child(3) {
  --x: 0px;
  --y: -18px;
}

.clover-card:nth-child(4) {
  --x: -18px;
  --y: 0px;
}


.card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(22, 30, 26, 0.08);
}

.footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 20, 18, 0.6);
  backdrop-filter: blur(12px) saturate(1.1);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gate.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gate-card {
  width: min(360px, 90vw);
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(20, 24, 20, 0.25);
  border: 1px solid var(--line);
}

.gate-title {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.gate-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.gate-form {
  display: grid;
  gap: 12px;
}

.gate-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  outline: none;
}

.gate-form button {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.gate-error {
  min-height: 20px;
  color: #b33b2e;
  font-size: 0.9rem;
  margin-top: 10px;
}

.single {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 12px 60px;
}

.single-content {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 18px 0 24px;
}

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

@media (max-width: 720px) {
  .page {
    padding: 56px 20px 32px;
  }

  .clover {
    justify-self: stretch;
    grid-template-columns: 1fr;
  }

  .clover-card {
    min-height: auto;
  }

  .clover-card:nth-child(1),
  .clover-card:nth-child(2),
  .clover-card:nth-child(3),
  .clover-card:nth-child(4) {
    transform: none;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
