@font-face { font-family: 'Amatic SC'; src: url('../fonts/AmaticSC-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url('../fonts/PatrickHand-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gaegu; src: url('../fonts/Gaegu-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root { --ink: #2b1d14; --leaf: #4f8a3c; --moss: #7a8b3a; --clay: #c0623a; --soil: #4a2f1b; --soilD: #33200f;
  --mint: #eef6ea; --cream: #fbfdf8; --wood: #c99a5e; --head: 'Amatic SC', 'Patrick Hand', cursive; }
* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--mint); color: var(--ink); font-family: 'Patrick Hand', 'Comic Sans MS', cursive; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-size: 22px; line-height: 1.3; background: linear-gradient(180deg, #f6faf3 0, #e8f4ec 900px, var(--mint) 1400px); }
canvas { display: block; }
[hidden] { display: none !important; }
b { font-weight: 400; }
.g { color: var(--leaf); } .r { color: var(--clay); }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; align-items: center; }

/* drawn boxes: the picture is a background image; on hover only the picture (its colour) swaps. nothing moves. */
.ink { background: var(--bg) 0 0 / 100% 100% no-repeat; border: 0; }
.btn { font: inherit; font-size: clamp(20px, 1.25vw, 34px); line-height: 1; color: var(--ink); text-decoration: none; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; padding: 11px 32px 12px 26px; min-height: 46px; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: none; user-select: none; }
.btn:hover, .btn:focus-visible, .btn:active { background-image: var(--bgh); }
.btn:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
.btn.soon { cursor: default; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---- the top: a thin nav, a centered headline, then one open scene (the newest grower on the hill + the meadow) ---- */
/* everything up here grows with the screen: sizes in vw, held between a phone floor and a big-screen ceiling */
.v1 { font-family: Gaegu, 'Patrick Hand', cursive; font-weight: 700; }
.v1 b { font-weight: 700; }
.v1 .btn { font-family: Gaegu, cursive; font-weight: 700; }
.btn.pebble { padding: 0.45em 1.05em 0.5em; min-height: 2em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

#nav { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; max-width: min(92vw, 2200px); margin: 0 auto;
  padding: clamp(12px, 1vw, 26px) clamp(14px, 3vw, 40px) 0; }
.logo { color: var(--ink); text-decoration: none; font: 700 clamp(24px, 1.6vw, 44px)/1 Gaegu, cursive; letter-spacing: 0.5px; }
.navlinks { display: flex; align-items: center; flex-wrap: nowrap; gap: 0 0.95em; font-size: clamp(16px, 0.95vw, 26px); }
.navlinks a { color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color 0.15s; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--leaf); }
.chips { display: inline-flex; gap: 0.35em; }
.chip { font: inherit; font-size: 0.85em; line-height: 1; padding: 0.3em 0.6em; border: 1.5px solid var(--ink); border-radius: 999px; background: #ffffffaa; color: var(--ink); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.chip:hover, .chip:focus-visible { background: #d6efc4; }
.navlinks a.chip.soon { cursor: default; color: #6b7a63; border-color: #9fb29a; }
.iconBtn { font: inherit; font-size: 1.15em; line-height: 1; width: 1.8em; height: 1.8em; border: 1.5px solid var(--ink); border-radius: 50%; background: #ffffffaa; color: var(--ink); cursor: pointer; padding: 0; transition: background-color 0.15s; }
.iconBtn:hover, .iconBtn:focus-visible { background: #fff3b0; }
.menuBtn { display: none; font: 700 18px/1 Gaegu, cursive; padding: 0.35em 0.8em; border: 1.5px solid var(--ink); border-radius: 999px; background: #ffffffaa; color: var(--ink); cursor: pointer; transition: background-color 0.15s; }
.menuBtn:hover { background: #d6efc4; }
@media (max-width: 760px) {
  #nav { position: relative; flex-wrap: nowrap; justify-content: space-between; padding-top: 10px; }
  .menuBtn { display: block; }
  .navlinks { display: none; position: absolute; right: 14px; top: calc(100% + 6px); z-index: 20; flex-direction: column; align-items: flex-end; gap: 10px; padding: 12px 16px;
    background: #fbfdf8; border: 1.5px solid var(--ink); border-radius: 14px; font-size: 19px; box-shadow: 0 6px 18px #0002; }
  .navlinks.open { display: flex; }
  body.night .navlinks { background: #1a2647; }
}

#hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(22px, 3.2vw, 90px) 16px 0; }
.big { font: 700 clamp(42px, 5.2vw, 140px)/1 Gaegu, cursive; margin: 0; max-width: 14em; }
.lead { font-size: clamp(20px, 1.55vw, 42px); line-height: 1.2; margin: 0.6em 0 0.25em; max-width: 31em; color: #4a3b2e; }
.latest { margin: 0.1em 0 0.6em; font-size: clamp(22px, 1.6vw, 44px); color: var(--leaf); }
#hero .row { margin-bottom: 4px; }
.demo { margin: 0.5em 0 0; font-size: clamp(15px, 0.95vw, 26px); color: #7c8a74; }

#meadow { position: relative; margin-top: clamp(4px, 1vw, 30px); }
.scene { position: relative; width: 100%; overflow: hidden; }
#sky, #stage, #field { position: absolute; left: 0; top: 0; display: block; }
#field { cursor: pointer; z-index: 4; }
.scene canvas.band { position: absolute; left: 0; display: block; z-index: 3; pointer-events: none; }
#stage { z-index: 1; pointer-events: none; }
.posts { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
/* a signpost: a pole planted in the grass with a little dirt, two boards nailed across it, pole showing between them */
.post { position: absolute; display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1vw, 26px); translate: -50% -100%;
  padding-bottom: var(--stick, 60px); width: clamp(176px, 12.6vw, 340px); }
.pole { position: absolute; left: 50%; top: 1.2em; bottom: 2px; width: clamp(12px, 0.85vw, 22px); translate: -50% 0; z-index: 0; }
.dirt { position: absolute; left: 50%; bottom: -0.3em; width: clamp(56px, 4.2vw, 110px); height: clamp(14px, 1vw, 26px); translate: -50% 0; z-index: 2; }
.note { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
  min-height: clamp(76px, 5.6vw, 150px); padding: 0.5em 0.7em 0.6em; font-size: clamp(16px, 1.1vw, 30px); }
.note::before, .note::after { content: ''; position: absolute; left: 50%; width: 0.42em; height: 0.42em; margin-left: -0.21em; border-radius: 50%; background: #6b6259; border: 1.5px solid var(--ink); }
.note::before { top: 0.32em; } .note::after { bottom: 0.32em; }
#postL .note:nth-of-type(1) { rotate: -1.5deg; } #postL .note:nth-of-type(2) { rotate: 1deg; }
#postR .note:nth-of-type(1) { rotate: 1.5deg; } #postR .note:nth-of-type(2) { rotate: -1deg; }
.note .l { font-size: 1em; line-height: 1; color: #5a4636; margin-top: 0.2em; }
.note .n { font-size: 1.9em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.note .n.sm { font-size: 1.35em; }
.bar { position: relative; height: 1.25em; width: 100%; margin: 0.25em 0 0.35em; }
#barFill { position: absolute; left: 5px; top: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.fieldcount { position: absolute; z-index: 2; left: 50%; translate: -50% 0; bottom: clamp(8px, 0.9vw, 24px); margin: 0; white-space: nowrap;
  font-size: clamp(20px, 1.4vw, 38px); color: #fbfdf8; text-shadow: 0 2px 0 rgba(0,0,0,.35); pointer-events: none; }

@media (max-width: 760px) {
  .posts { position: relative; inset: auto; display: flex; justify-content: center; gap: 12px; padding: 18px 12px 0; background: #5cbf3a; margin-top: -1px; }
  .post { position: relative; translate: none; flex: 1 1 0; max-width: 200px; width: auto; padding-bottom: 34px; }
  .pole { top: 1em; bottom: 8px; }
  .dirt { bottom: 2px; }
  .note { min-height: 70px; padding: 8px 6px 10px; font-size: 15px; }
  .note .n { font-size: 1.75em; } .note .n.sm { font-size: 1.3em; }
  .fieldcount { position: static; translate: none; text-align: center; padding: 10px 10px 16px; background: #5cbf3a; }
  #hero .row { gap: 10px; }
}

.hl { font: 700 clamp(46px, 6.4vw, 92px)/0.95 var(--head); text-align: center; margin: 0; letter-spacing: 1px; }
.quiet { text-align: center; font-size: clamp(22px, 2vw, 27px); margin: 8px 0 14px; color: #5a4636; }

/* the journal */
#journal { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: clamp(20px, 4vw, 50px) 14px clamp(30px, 5vw, 60px); }
.page { position: relative; width: min(900px, 100%); background: #fffefa; padding: 34px clamp(18px, 4vw, 48px) 30px clamp(44px, 7vw, 92px);
  background-image: linear-gradient(90deg, transparent calc(clamp(30px, 5vw, 66px)), rgba(192, 98, 58, .55) calc(clamp(30px, 5vw, 66px)), rgba(192, 98, 58, .55) calc(clamp(30px, 5vw, 66px) + 2px), transparent calc(clamp(30px, 5vw, 66px) + 2px)),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(79, 110, 140, .22) 33px 35px);
  box-shadow: 0 1px 0 #d8c7a3, 3px 4px 0 rgba(74, 47, 27, .18); }
.page::before, .page::after { content: ''; position: absolute; top: -12px; width: 110px; height: 30px; background: rgba(233, 214, 160, .8); }
.page::before { left: 30px; rotate: -4deg; } .page::after { right: 30px; rotate: 3deg; }
.page p { font-size: clamp(22px, 2.2vw, 27px); line-height: 35px; margin: 0 0 0; padding-bottom: 0; }
.page p + p { margin-top: 0; }
.jt { font: 700 clamp(48px, 5vw, 70px)/70px var(--head); margin: 0; }
.jt small { font: 400 22px 'Patrick Hand', cursive; color: #7a6450; margin-left: 10px; }
.day { font: 700 30px var(--head); color: var(--clay); margin-right: 4px; }
.specimens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0 20px; }
.specimens figure { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.specimens canvas { width: min(100%, 200px); height: auto; cursor: pointer; }
.specimens figure::before { content: ''; position: absolute; top: 6px; width: 70px; height: 20px; background: rgba(233, 214, 160, .75); rotate: -3deg; }
.specimens figcaption { font-size: 18px; line-height: 1.15; max-width: 230px; color: #4d3a2b; }
.specimens figcaption b { font: 700 22px var(--head); color: var(--clay); display: block; }
.back { width: min(720px, 100%); padding: 30px clamp(18px, 4vw, 40px) 22px; }
.back h3 { font: 700 44px/1 var(--head); margin: 0 0 6px; }
.back ol { margin: 0; padding-left: 26px; font-size: 22px; }
.back li { margin: 4px 0; }

/* garden */
#garden .more { margin-top: 18px; }
#garden .count { margin: 14px 0 0; font-size: 20px; }
#garden .btn.pebble { font-family: Gaegu, cursive; font-weight: 700; font-size: 22px; }
#garden { padding: clamp(30px, 5vw, 60px) clamp(12px, 3vw, 40px) clamp(30px, 5vw, 60px); max-width: 1400px; margin: 0 auto; }
.tools { margin-bottom: 20px; }
.find { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 46px; font-size: 22px; }
.find input { width: 70px; font: inherit; font-size: 22px; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 8px 8px; cursor: pointer; font: inherit;
  color: var(--ink); -webkit-tap-highlight-color: transparent; }
.card:hover, .card:focus-visible { background-image: var(--bgh); }
.card:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.card canvas { display: block; width: 100%; height: auto; aspect-ratio: 360 / 372; }
.card span { font: 700 26px/1 var(--head); padding: 0 0 2px; letter-spacing: 1px; }
.card .fresh { position: absolute; top: 12px; right: 14px; font: 700 22px var(--head); font-style: normal; color: var(--leaf); }
#sentinel { height: 2px; }

/* the soil at the bottom */
footer { margin-top: 20px; }
#soilTop { width: 100%; height: auto; cursor: pointer; }
.soil { background: var(--soil); color: var(--cream); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 14px clamp(40px, 6vw, 70px); }
.end { font: 700 clamp(44px, 6vw, 80px)/1 var(--head); text-align: center; margin: 0; letter-spacing: 1px; }
.tiny { font-size: 18px; color: #c9b08e; margin: 4px 0 0; }

/* one grower, close */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(74, 47, 27, .55); }
.sheet { position: relative; padding: 26px 30px 24px; width: min(860px, 94vw); }
.close { position: absolute; top: 12px; right: 12px; width: 46px; padding: 0; }
.mbody { display: flex; gap: 24px; align-items: center; }
#mCanvas { width: 340px; max-width: 100%; height: auto; flex: none; }
.minfo { flex: 1; min-width: 0; }
.minfo h3 { font: 700 58px/1 var(--head); margin: 0; letter-spacing: 1px; }
.msub { font-size: 19px; margin: 2px 0 10px; color: #6b5543; }
#mTraits { border-collapse: collapse; width: 100%; font-size: 21px; margin-bottom: 14px; }
#mTraits td { padding: 1px 4px; border-bottom: 2px dotted #d3c09c; }
#mTraits td:first-child { color: #7a6450; width: 34%; }
#mTraits td:last-child { text-align: right; color: #9a836c; font-size: 18px; width: 30%; }
.mbtns { justify-content: flex-start; }

.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; padding: 12px 22px; z-index: 50; font-size: 22px; pointer-events: none; }

@media (max-width: 640px) {
  body { font-size: 20px; }
  .btn { font-size: 20px; padding: 10px 28px 11px 24px; min-height: 42px; }
  .specimens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .card { padding: 4px 4px 6px; } .card span { font-size: 20px; } .card .fresh { top: 6px; right: 8px; font-size: 17px; }
  .sheet { padding: 18px 16px 18px; }
  .mbody { flex-direction: column; gap: 6px; }
  #mCanvas { width: min(210px, 56vw); }
  .minfo h3 { font-size: 46px; text-align: center; }
  .msub { text-align: center; }
  #mTraits { font-size: 19px; } #mTraits td:last-child { font-size: 17px; } .hv { display: none; }
  .mbtns { justify-content: center; }
  .back ol { font-size: 20px; }
  .jt { line-height: 1; margin-bottom: 8px; } .jt small { display: block; margin: 2px 0 0; line-height: 1.1; }
}
.end span { display: inline-block; }
.card canvas:not(.on) { visibility: hidden; }
@media (max-width: 640px) { .hl br { display: none; } }

/* big screens: the lower page grows too */
@media (min-width: 1700px) {
  body { font-size: 26px; }
  .page { width: min(1180px, 100%); } .page p { font-size: 32px; line-height: 44px; }
  .page { background-image: linear-gradient(90deg, transparent 66px, rgba(192, 98, 58, .55) 66px, rgba(192, 98, 58, .55) 68px, transparent 68px), repeating-linear-gradient(180deg, transparent 0 42px, rgba(79, 110, 140, .22) 42px 44px); }
  .jt { font-size: 88px; line-height: 88px; } .day { font-size: 38px; } .specimens canvas { width: min(100%, 260px); } .specimens figcaption { font-size: 22px; max-width: 290px; }
  .back { width: min(940px, 100%); } .back h3 { font-size: 56px; } .back ol { font-size: 27px; }
  #garden { max-width: 1900px; } .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .card span { font-size: 32px; }
  .hl { font-size: clamp(92px, 5.2vw, 140px); } .quiet { font-size: 32px; } .find, .find input { font-size: 26px; } .find { height: 54px; }
}
@media (min-width: 2300px) {
  .page { width: min(1500px, 100%); } .page p { font-size: 40px; line-height: 54px; }
  .page { background-image: linear-gradient(90deg, transparent 80px, rgba(192, 98, 58, .55) 80px, rgba(192, 98, 58, .55) 82px, transparent 82px), repeating-linear-gradient(180deg, transparent 0 52px, rgba(79, 110, 140, .22) 52px 54px); }
  .jt { font-size: 110px; line-height: 110px; } .day { font-size: 46px; } .specimens canvas { width: min(100%, 320px); } .specimens figcaption { font-size: 27px; max-width: 360px; }
  .back { width: min(1200px, 100%); } .back h3 { font-size: 70px; } .back ol { font-size: 34px; }
  #garden { max-width: 2400px; } .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } .card span { font-size: 40px; }
  .end { font-size: 110px; } #mCanvas { width: 440px; } .sheet { width: min(1100px, 94vw); }
}

/* ---- the meadow hint, the live feed */
.hint { text-align: center; margin: 10px 0 0; font: 700 clamp(17px, 1.15vw, 30px) Gaegu, cursive; color: #5a7a4e; }
.feed { max-width: min(1240px, 94vw); margin: 10px auto 0; text-align: center; font-family: Gaegu, cursive; font-weight: 700; }
.feedhead { margin: 0 0 4px; font-size: clamp(20px, 1.3vw, 34px); }
.feedhead b { color: var(--leaf); }
.feedhead span { color: #6b7a63; font-size: 0.85em; }
#feedList { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: clamp(17px, 1.05vw, 28px); }
#feedList li { white-space: nowrap; color: #6b7a63; }
#feedList a { color: var(--ink); cursor: pointer; text-decoration: underline wavy #b9cfb0; text-underline-offset: 4px; }
#feedList a:hover { color: var(--leaf); }
#feedList i { font-style: normal; color: #b8860b; }

/* ---- find mine */
#mine { padding: clamp(30px, 5vw, 60px) clamp(12px, 3vw, 40px) 0; max-width: 1100px; margin: 0 auto; }
.find.wide { min-width: min(520px, 86vw); }
.find.wide input { width: 100%; min-width: 0; flex: 1; }
.quiet.small { font-size: clamp(18px, 1.4vw, 22px); max-width: 760px; margin: 12px auto 10px; }
.grid.mini { grid-template-columns: repeat(auto-fill, minmax(140px, 160px)); justify-content: center; }
.demo.center { text-align: center; }

/* ---- the trees */
#trees { display: flex; justify-content: center; padding: clamp(30px, 5vw, 60px) 14px 0; }
.receipts #treeArt { display: block; width: 100%; height: 90px; margin: 6px 0 4px; }
.rtable { width: 100%; border-collapse: collapse; font-size: clamp(19px, 2vw, 24px); line-height: 35px; }
.rtable th { text-align: left; font: 700 24px var(--head); color: var(--clay); }
.rtable td, .rtable th { padding: 0 8px 0 0; }
.rtable tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }

/* ---- golden ones */
.card .gold { position: absolute; top: 12px; left: 14px; font: 700 20px var(--head); font-style: normal; color: #b8860b; }
#mTraits tr.gold td { color: #b8860b; font-weight: 700; }

/* ---- night: dark page, the scene turns to night (drawn), the paper bits dim a little */
body.night { background: linear-gradient(180deg, #121b33 0, #1a2647 900px, #1d2a4a 1400px); color: #e8eef9; }
body.night .navlinks a, body.night .logo, body.night .big, body.night .lead, body.night .hl, body.night .quiet, body.night .feedhead, body.night #feedList a { color: #e8eef9; }
body.night .lead { color: #c9d4ea; } body.night .demo, body.night .hint, body.night #feedList li { color: #9fb0cf; }
body.night #stage { filter: brightness(0.72) saturate(0.85); }
body.night .post, body.night .page, body.night .card, body.night .back { filter: brightness(0.86); }
#nightToggle { cursor: pointer; }

body.night .post, body.night .post * { color: var(--ink); }
body.night .g, body.night #justGrew { color: #9be07f; }
/* the fee payer in the specimen card: a link that looks it up */
#mLine a { color: inherit; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 3px; cursor: pointer; }
body.night #mLine a { color: inherit; }
/* night: one sky from the top of the page to the horizon. the body's gradient is the sky everywhere (the meadow's sky
   canvas stays clear), and one star layer spans the headline and the meadow sky alike */
body { position: relative; z-index: 0; }
#stars { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; display: none; }
body.night #stars { display: block; }
/* kept and named */
.card .nm { display: block; font: 700 19px/1.1 Gaegu, cursive; color: var(--leaf); font-style: normal; padding: 0 4px 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .nm[hidden] { display: none; }
body.night .card .nm { color: #3f8f2c; }
.naming { flex-wrap: wrap; justify-content: center; }
.naming .find input { width: 9.5em; }
.myhead { font: 700 30px/1.1 Gaegu, cursive; margin: 1.2em 0 0.4em; } .myhead small { font-size: 0.7em; opacity: 0.75; }
body.night .myhead { color: #e8eef9; }
body.night .chip, body.night .iconBtn, body.night .menuBtn { background: #ffffff14; color: #e8eef9; border-color: #c9d4ea; }
body.night .chip:hover, body.night .iconBtn:hover, body.night .menuBtn:hover { background: #ffffff30; }
body.night .navlinks a.chip.soon { color: #9fb0cf; border-color: #6c7ea3; }
