.shell {
  width: min(calc(100% - 36px), 1320px);
  margin-inline: auto;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(121, 92, 70, 0.28) 0 0.65px, transparent 0.85px),
    radial-gradient(circle at 74% 63%, rgba(255, 255, 255, 0.95) 0 0.7px, transparent 0.9px);
  background-size: 7px 7px, 9px 9px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--color-caramel-deep);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(251, 248, 242, 0.95);
}

.site-header.is-scrolled {
  position: sticky;
  top: 0;
  box-shadow: 0 7px 24px rgba(92, 66, 49, 0.07);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  width: max-content;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-leaf,
.heading-leaf,
.mini-leaf,
.heading-sprout {
  position: relative;
  display: inline-block;
}

.brand-leaf {
  width: 30px;
  height: 38px;
  transform: rotate(-8deg);
}

.brand-leaf::before,
.brand-leaf::after,
.brand-leaf i {
  position: absolute;
  border-radius: 100% 0 100% 0;
  background: #72855f;
  content: "";
}

.brand-leaf::before { top: 2px; left: 13px; width: 15px; height: 24px; transform: rotate(20deg); }
.brand-leaf::after { top: 12px; left: 2px; width: 14px; height: 20px; transform: rotate(-26deg); }
.brand-leaf i { bottom: 1px; left: 14px; width: 2px; height: 26px; border-radius: 2px; transform: rotate(7deg); }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  color: #46291f;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 7px;
  color: #927362;
  font-family: "Segoe Print", "KaiTi", cursive;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: clamp(34px, 4vw, 58px);
  align-self: stretch;
}

.nav-links a {
  position: relative;
  display: grid;
  min-width: 44px;
  place-items: center;
  color: #4d352c;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 8px;
  bottom: 13px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: #bc6e35;
  content: "";
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.header-note {
  justify-self: end;
  margin: 0 26px 0 0;
  color: #9a7461;
  font-family: "Segoe Print", "KaiTi", cursive;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-5deg);
}

.hero {
  position: relative;
  min-height: 354px;
  overflow: hidden;
  border-radius: 16px;
  background: #f3eadc;
  box-shadow: 0 9px 28px rgba(111, 78, 54, 0.08);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(255, 252, 247, 0.9) 0%, rgba(255, 252, 247, 0.68) 27%, rgba(255, 252, 247, 0.13) 49%, transparent 65%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(48%, 600px);
  padding: 43px 0 28px 72px;
}

.hero-hello,
.hero-doodle,
.fragment-side-note,
.recent-doodle {
  color: #a76f55;
  font-family: "Segoe Print", "KaiTi", cursive;
}

.hero-hello {
  margin: 0 0 12px;
  font-size: 0.79rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}

.hero h1 {
  margin: 0;
  color: #47281d;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero-lede {
  margin: 12px 0 0;
  color: #5e4338;
  font-family: var(--font-display);
  font-size: 0.99rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 9px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  min-width: 158px;
  color: #fffaf5;
  background: linear-gradient(135deg, #bd6d32, #a95525);
  box-shadow: 0 10px 20px rgba(169, 85, 37, 0.18);
}

.button-primary:hover { box-shadow: 0 13px 24px rgba(169, 85, 37, 0.25); }

.button-quiet {
  min-width: 136px;
  border-color: #a87355;
  color: #5f3929;
  background: rgba(255, 252, 247, 0.8);
}

.hero-quote {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 23px 0 0;
  color: #735b4d;
  font-family: "KaiTi", var(--font-display);
  font-size: 0.75rem;
}

.mini-leaf {
  width: 15px;
  height: 20px;
  border-radius: 100% 0 100% 0;
  background: #789263;
  transform: rotate(23deg);
}

.hero-doodle {
  position: absolute;
  z-index: 2;
  right: 31px;
  bottom: 13px;
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.4;
  text-align: center;
  transform: rotate(-8deg);
}

.compact-section { padding-top: 19px; }

.section-heading {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-inline: 3px;
}

.heading-main {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.heading-main h2,
.recent-title h2 {
  margin: 0;
  color: #43281f;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.heading-main p,
.recent-title p {
  margin: 0;
  color: #88756b;
  font-size: 0.76rem;
}

.heading-divider,
.recent-title > span:not(.heading-leaf) { color: #b8aaa1; }

.heading-leaf {
  width: 16px;
  height: 12px;
  border-radius: 100% 0 100% 0;
  background: #758c64;
  transform: rotate(23deg);
}

.heading-leaf::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 12px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: #98a982;
  content: "";
  transform: rotate(28deg);
}

.section-more {
  display: inline-flex;
  min-height: 38px;
  gap: 12px;
  align-items: center;
  color: #5f493f;
  font-size: 0.76rem;
  text-decoration: none;
}

.section-more:hover { color: #a35b2c; }

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

.project-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 154px;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  border: 1px solid rgba(124, 97, 77, 0.14);
  border-radius: 14px;
  background: var(--project-soft);
  box-shadow: 0 7px 18px rgba(99, 70, 50, 0.07);
  transition: transform 260ms var(--ease-soft), box-shadow 260ms ease;
}

.project-card:hover {
  box-shadow: 0 13px 26px rgba(99, 70, 50, 0.12);
  transform: translateY(-3px);
}

.project-art {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
}

.project-art img {
  width: 170px;
  height: 130px;
  max-width: 112%;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(80, 60, 43, 0.08));
  transition: transform 360ms var(--ease-soft);
}

.project-card:hover .project-art img { transform: translateY(-3px) rotate(-1deg); }

.project-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 17px 17px 15px 3px;
}

.project-copy h3 {
  margin: 0;
  color: #472a20;
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.project-copy p {
  margin: 6px 0 11px;
  color: #7a665c;
  font-size: 0.75rem;
  line-height: 1.45;
}

.project-link {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 9px;
  padding: 5px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--project-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.project-link.is-disabled { cursor: default; opacity: 0.88; }

.project-note {
  position: absolute;
  right: 12px;
  bottom: 8px;
  margin: 0;
  color: var(--project-accent);
  font-family: "Segoe Print", "KaiTi", cursive;
  font-size: 0.58rem;
  transform: rotate(-5deg);
}

.recent-card {
  position: relative;
  display: grid;
  min-height: 142px;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-areas:
    "recent-title recent-doodle"
    "recent-list recent-doodle";
  grid-template-rows: auto 1fr;
  column-gap: 26px;
  row-gap: 11px;
  align-items: stretch;
  overflow: hidden;
  padding: 17px 25px 16px;
  border: 1px solid rgba(124, 97, 77, 0.13);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 9px 22px rgba(99, 70, 50, 0.065);
}

.recent-card::after {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 92px;
  height: 72px;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(112, 139, 91, 0.2) 0 28%, transparent 30%),
    radial-gradient(ellipse at 66% 36%, rgba(112, 139, 91, 0.17) 0 27%, transparent 29%);
  content: "";
  opacity: 0.42;
  pointer-events: none;
  transform: rotate(-18deg);
}

.recent-title {
  grid-area: recent-title;
  display: flex;
  gap: 11px;
  align-items: baseline;
  min-width: 0;
}

.recent-list {
  grid-area: recent-list;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 5px 28px;
  border-left: 1px solid rgba(124, 97, 77, 0.12);
}

.recent-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.status-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #f3efe5;
  color: #718961;
  font-size: 1.22rem;
}

.status-copy { min-width: 0; }

.status-copy strong {
  display: block;
  overflow: hidden;
  color: #554036;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-copy span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #8b776b;
  font-size: 0.7rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-doodle {
  z-index: 1;
  grid-area: recent-doodle;
  align-self: center;
  justify-self: stretch;
  margin: 0;
  padding: 10px 7px 10px 23px;
  border-left: 1px solid rgba(124, 97, 77, 0.09);
  color: rgba(122, 81, 62, 0.78);
  font-family: "Segoe Print", "KaiTi", cursive;
  font-size: 0.72rem;
  line-height: 1.65;
  text-align: center;
  transform: rotate(-4deg);
}

.section-fragments { padding-bottom: 20px; }

.heading-sprout {
  width: 18px;
  height: 22px;
}

.heading-sprout::before,
.heading-sprout::after {
  position: absolute;
  top: 0;
  width: 12px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: #759061;
  content: "";
}

.heading-sprout::before { left: 0; transform: rotate(10deg); }
.heading-sprout::after { right: -1px; transform: rotate(75deg); }

.fragment-side-note {
  margin: 0 12px 0 0;
  font-size: 0.73rem;
  transform: rotate(3deg);
}

.fragment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.fragment-card {
  position: relative;
  display: grid;
  min-height: 142px;
  overflow: visible;
  padding: 18px 28px;
  border: 1px solid rgba(124, 97, 77, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(rgba(255, 253, 249, 0.87), rgba(255, 253, 249, 0.87)),
    radial-gradient(circle at 25% 25%, rgba(144, 108, 82, 0.17) 0 0.55px, transparent 0.7px);
  background-size: auto, 6px 6px;
  box-shadow: 0 7px 18px rgba(99, 70, 50, 0.06);
  animation: cardIn 420ms var(--ease-soft) both;
}

.fragment-card::before {
  position: absolute;
  top: -9px;
  right: 31px;
  width: 17px;
  height: 36px;
  background: rgba(230, 193, 144, 0.56);
  content: "";
  transform: rotate(10deg);
}

.fragment-card:nth-child(2)::before {
  top: -7px;
  right: 46%;
  width: 51px;
  height: 13px;
  background: rgba(219, 146, 106, 0.48);
  transform: rotate(3deg);
}

.fragment-card:nth-child(3)::before { right: 17px; transform: rotate(14deg); }

.fragment-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 9px;
  color: #988980;
  font-size: 0.68rem;
}

.fragment-meta time::before,
.fragment-tag::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #81996f;
  content: "";
  vertical-align: 1px;
}

.fragment-tag {
  overflow: hidden;
  max-width: 9rem;
  color: #6a554a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fragment-tag::before { background: #bd6f3d; }

.fragment-content {
  margin: 0;
  color: #6a574c;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.fragment-image {
  position: absolute;
  right: 17px;
  bottom: 11px;
  width: 68px;
  height: 83px;
  padding: 5px 5px 14px;
  border: 1px solid #eadfce;
  background: #fff;
  box-shadow: 0 7px 12px rgba(81, 58, 43, 0.12);
  object-fit: cover;
  transform: rotate(8deg);
}

.fragment-card:has(.fragment-image) { padding-right: 108px; }

.fragment-state {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(124, 97, 77, 0.2);
  border-radius: 13px;
  color: #88756b;
  background: rgba(255, 253, 249, 0.6);
  text-align: center;
}

.fragment-state[hidden] { display: none; }

.loading-dots { display: inline-flex; gap: 3px; }
.loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: #b26b3a; animation: dot 1.1s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: 130ms; }
.loading-dots i:nth-child(3) { animation-delay: 260ms; }

.fragment-actions { display: flex; justify-content: center; margin-top: 12px; }
.fragment-actions .button { min-height: 38px; padding-block: 7px; font-size: 0.74rem; }

.site-footer {
  min-height: 48px;
  border-top: 1px solid rgba(124, 97, 77, 0.08);
  background: rgba(238, 229, 216, 0.48);
}

.footer-inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  color: #9b8a80;
  font-size: 0.63rem;
}

.footer-inner p { margin: 0; }
.footer-inner i { display: inline-block; height: 11px; margin-inline: 12px; border-left: 1px solid #c2b7af; vertical-align: -2px; }
.footer-links { display: flex; gap: 12px; align-items: center; }
.admin-entry { margin-left: 6px; color: #9b8a80; text-decoration: none; }
.admin-entry:hover { color: #95552f; }

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms var(--ease-soft), transform 480ms var(--ease-soft);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

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