:root {
  --sand: #EFE4C8;
  --sand-light: #F8F1E1;
  --ink: #2B2A28;
  --ink-soft: #5C5750;
  --coral: #E8735A;
  --coral-deep: #C95B44;
  --green: #4F7F5A;
  --green-deep: #3E6647;
  --orange: #F2A541;
  --board-text: #FFF8EC;
  --border: rgba(43, 42, 40, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Alfa Slab One", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 6px 18px rgba(43, 42, 40, 0.10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--coral-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

/* ---------- Signboards ---------- */
.signboard {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--board-text);
  background: var(--green);
  padding: 0.35em 0.9em 0.4em;
  border-radius: var(--radius-sm);
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0;
}
.signboard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(4deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}
.signboard.coral { background: var(--coral); color: var(--ink); }
.signboard.tilt-right { transform: rotate(1.2deg); }
.signboard.big {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  padding: 0.25em 0.7em 0.32em;
  border-radius: var(--radius);
  transform: rotate(-2deg);
}
.signboard.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sand);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-photo:not([src]) { display: none; }
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(239, 228, 200, 0.05) 0%,
    rgba(239, 228, 200, 0.35) 45%,
    rgba(239, 228, 200, 0.92) 78%,
    var(--sand) 100%
  );
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) 1.25rem 1.5rem;
}
.hero-inner h1 { margin: 0 0 1.25rem 0.25rem; }
.hero-sub {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 1rem 0.5rem;
  color: var(--ink);
}
.about-card {
  background: var(--sand-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 44rem;
  margin: 0;
  font-size: 1.05rem;
}
.hero-contact { margin: 1.25rem 0 0 0.25rem; }
.say-hi {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--board-text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
  transition: transform 120ms ease;
}
.say-hi span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}
.say-hi:hover,
.say-hi:focus-visible {
  color: var(--board-text);
  transform: rotate(0) translateY(-2px);
}
.say-hi:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page ---------- */
.page {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.section { margin: 2.75rem 0 0; }
.section:first-child { margin-top: 1rem; }

.practice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.practice-list li {
  background: var(--sand-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem 0.9rem 2.6rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(43, 42, 40, 0.06);
}
.practice-list li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--green);
}

.project-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .project-cards { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
}
.project-card {
  background: var(--sand-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--border);
}
.project-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.live-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 165, 65, 0.25);
  flex: none;
}
.project-card p { margin: 0; color: var(--ink); }
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  padding-top: 0.25rem;
  font-weight: 700;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  line-height: 1.2;
}

.more-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
  column-gap: 2rem;
}
@media (min-width: 600px) { .plain-list { columns: 2; } }
@media (min-width: 900px) { .plain-list { columns: 3; } }
.plain-list li {
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 0.45rem 0.25rem;
  border-bottom: 1px dashed var(--border);
  break-inside: avoid;
}

.tech-line { margin: 0 0 0 0.25rem; font-size: 1.1rem; font-weight: 600; }
.tech-line span + span::before { content: " · "; color: var(--coral); font-weight: 700; }

.commons-text { margin: 0 0 0 0.25rem; font-size: 1.1rem; }
.commons-text strong { color: var(--green-deep); }

/* ---------- Footer ---------- */
.foot {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 2px dashed var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 0.35rem 0; }
.foot .foot-contact { margin: 0 0 0.6rem; font-weight: 700; color: var(--ink); }
.foot .foot-contact:empty { display: none; }