/* Garden Shed Studios — site styles */
/* Self-hosted fonts (SIL Open Font License 1.1) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"), url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  --duck-egg: #d3e6e1;
  --duck-egg-deep: #bcd6cf;
  --hedge: #21412c;
  --hedge-soft: #3c5f47;
  --timber: #5b4632;
  --timber-dark: #45331f;
  --marigold: #f2b33d;
  --white: #ffffff;
  --ink: #1a2a20;

  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.6rem, 6vw + 1rem, 4.75rem);

  --measure: 66ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--duck-egg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

a { color: var(--hedge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--timber); }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem .75rem; z-index: 10; }

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  padding-block: 1.25rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--hedge);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
}
.site-nav a[aria-current="page"] { text-decoration: underline; }

/* Hero: the shed door */
.door {
  position: relative;
  margin-top: .5rem;
  color: var(--white);
  background:
    repeating-linear-gradient(90deg,
      var(--timber) 0 calc(16.66% - 3px),
      var(--timber-dark) calc(16.66% - 3px) 16.66%);
  border-radius: 6px 6px 0 0;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
/* Z-brace across the door */
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--timber-dark), var(--timber-dark)) top 14% left 0 / 100% 22px no-repeat,
    linear-gradient(var(--timber-dark), var(--timber-dark)) bottom 14% left 0 / 100% 22px no-repeat;
  opacity: .9;
  pointer-events: none;
}
.sign {
  position: relative;
  display: inline-block;
  background: var(--hedge);
  border: 4px solid var(--marigold);
  border-radius: 4px;
  padding: 1.25rem 1.5rem 1.4rem;
  max-width: 40rem;
  transform: rotate(-1.2deg);
  box-shadow: 0 6px 0 var(--timber-dark);
}
.sign h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem;
}
.sign p {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34ch;
}
.door .latch {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
  top: 50%;
  width: 18px;
  height: 64px;
  background: #2b2b2b;
  border-radius: 9px;
  box-shadow: inset -3px 0 0 #444;
}

/* Sections */
main section { padding-block: clamp(3rem, 7vw, 5rem); }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--hedge);
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.15;
  margin: 0 0 .5rem;
}
.lede { font-size: var(--step-1); max-width: 46ch; margin: 0 0 2.5rem; }

/* Seed packets */
.packets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.packet {
  position: relative;
  background: var(--white);
  border-radius: 3px 3px 10px 10px;
  padding: 0 0 1.75rem;
  box-shadow: 0 2px 0 var(--duck-egg-deep), 0 10px 24px -14px rgba(33, 65, 44, .55);
  display: flex;
  flex-direction: column;
}
.packet:nth-child(odd) { transform: rotate(-.6deg); }
.packet:nth-child(even) { transform: rotate(.7deg); }
/* crimped top edge */
.packet::before {
  content: "";
  height: 14px;
  background:
    linear-gradient(135deg, var(--duck-egg) 6px, transparent 0) 0 0 / 12px 14px repeat-x,
    linear-gradient(225deg, var(--duck-egg) 6px, transparent 0) 0 0 / 12px 14px repeat-x;
}
.packet-art {
  margin: 0 1.25rem;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.packet-art svg { width: 100%; height: 100%; display: block; }
.packet-body { padding: 1.25rem 1.5rem 0; flex: 1; }
.packet-body h3 { color: var(--hedge); }
.tagline {
  font-family: var(--display);
  font-weight: 600;
  color: var(--timber);
  margin: 0 0 .75rem;
}
.packet-body p { margin: 0 0 .9rem; max-width: 52ch; }
.status {
  margin: 1rem 1.5rem 0;
  padding-top: .9rem;
  border-top: 2px dashed var(--duck-egg-deep);
  font-weight: 700;
  color: var(--hedge-soft);
}

/* About strip */
.about {
  background: var(--hedge);
  color: var(--white);
}
.about h2 { color: var(--marigold); }
.about p { max-width: var(--measure); margin: 0 0 1rem; }
.about a { color: var(--white); }

/* Prose pages */
.prose {
  max-width: var(--measure);
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}
.prose h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.1;
  color: var(--hedge);
  margin: 0 0 .5rem;
}
.prose .updated { color: var(--hedge-soft); margin: 0 0 2rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--duck-egg-deep); }
.prose th { color: var(--hedge); }
.panel {
  background: var(--white);
  border-left: 6px solid var(--marigold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0 2rem;
}
.panel p { margin: 0 0 .5rem; }
.panel p:last-child { margin: 0; }
.email-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  word-break: break-word;
}

/* Footer */
.site-footer {
  background: var(--timber-dark);
  color: #f4ede3;
  padding-block: 2.5rem;
  font-size: var(--step--1);
}
.site-footer a { color: #f4ede3; }
.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.site-footer p { margin: 0 0 .35rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }

@media (prefers-reduced-motion: no-preference) {
  .sign { animation: hang 700ms cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 50% -20%; }
  @keyframes hang {
    from { transform: rotate(-6deg); }
    to { transform: rotate(-1.2deg); }
  }
}

@media (max-width: 40rem) {
  .door .latch { display: none; }
  .packet:nth-child(odd), .packet:nth-child(even) { transform: none; }
}
