/* Layout: airy cream-and-white pages, generous space, real nature photos used sparingly in arches and circles; yellow only as the pop. */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #fbf7ee;        /* beeswax cream */
  --white: #ffffff;
  --ink: #2c2a20;          /* soft bark */
  --muted: #706a58;
  --yellow: #f6c42b;       /* pollen yellow */
  --yellow-soft: #fdf0c2;
  --sage: #7f8d5c;         /* meadow sage */
  --line: #ece4d2;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --step-0: 1.08rem; --step-1: 1.35rem; --step-2: clamp(2.2rem, 4.6vw, 3.1rem); --step-3: clamp(3rem, 7.5vw, 5.4rem);
  --wrap: 68rem;
  color-scheme: light;  /* always light, even when the device is in dark mode */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 var(--step-0)/1.7 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(4rem, 10vw, 7.5rem); }
.band--white { background: var(--white); }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.swash { background: linear-gradient(transparent 62%, var(--yellow-soft) 62%, var(--yellow-soft) 92%, transparent 92%); padding-inline: .1em; }

/* Header */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.4rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-size: 1.6rem; }
.brand img { width: 34px; }
.nav { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-size: .98rem; font-weight: 700; }
.nav a { text-decoration: none; padding-block: .2rem; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--yellow); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 6.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--step-3); }
.hero .lede { margin-top: 1.5rem; font-size: var(--step-1); color: var(--muted); max-width: 30ch; line-height: 1.55; }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.arch { position: relative; margin: 0; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 28px 28px; }
.badge { position: absolute; left: -1.4rem; bottom: 2rem; width: 7.2rem; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); color: #2c2a20;
  display: grid; place-content: center; text-align: center; line-height: 1.05; box-shadow: 0 10px 30px rgba(140,110,20,.18); rotate: -8deg; }
.badge b { font-family: var(--display); font-weight: 400; font-size: 2.1rem; display: block; }
.badge span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.5rem; border-radius: 999px;
  font: 700 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn--yellow { background: var(--yellow); color: #2c2a20; box-shadow: 0 6px 18px rgba(246,196,43,.35); }
.btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(246,196,43,.45); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--white); }

/* Section heads */
.section-head { display: grid; gap: .8rem; max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.product { background: var(--cream); border-radius: 28px; padding: 2rem 1.6rem 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; min-width: 0;
  transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(120,100,40,.10); }
.swatch { width: 9.5rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: .6rem; box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line); }
.product h3 { font-size: 1.9rem; }
.product .desc { color: var(--muted); font-size: 1rem; }
.product .buy { margin-top: auto; padding-top: 1.1rem; display: grid; gap: .7rem; justify-items: center; width: 100%; }
.price { font-family: var(--display); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.unit { display: block; font-family: var(--body); font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.shelf { height: 26px; margin-top: 2.2rem; border-radius: 6px; background: url("../img/photos/oak-strip.jpg") center / cover; box-shadow: 0 10px 20px rgba(120,90,40,.12); }
.notes { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; color: var(--muted); font-size: .95rem; }

/* Photo row */
.snaps .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.snaps figure { margin: 0; display: grid; gap: .6rem; }
.snaps img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.snaps figcaption { font-size: .92rem; color: var(--muted); }
.snaps figure:nth-child(2) { margin-top: 2.5rem; }

/* Tour */
.tour { position: relative; }
.tour .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tour .arch img { aspect-ratio: 4 / 5; border-radius: 28px 28px 999px 999px; }
.tour .text { display: grid; gap: 1.2rem; min-width: 0; }
.tour h2 { font-size: var(--step-2); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.facts li { display: flex; gap: .8rem; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); translate: 0 -.1rem; }
.tour .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .4rem; }
.tour .after { color: var(--muted); font-size: .95rem; }

/* Bernd */
.keeper { position: relative; overflow: hidden; }
.keeper::before { content: ""; position: absolute; inset: 0; background: url("../img/photos/grass-soft.jpg") center / cover; opacity: .32; }
.keeper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cream) 0%, transparent 30%, transparent 70%, var(--cream) 100%); }
.keeper .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 56rem; }
.keeper .portrait { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 28%; border-radius: 50%; box-shadow: 0 0 0 10px var(--white); }
.keeper blockquote { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.keeper .sig { margin-top: 1.2rem; color: var(--muted); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: center; }
.contact h2 { font-size: var(--step-2); }
.contact p { color: var(--muted); margin-top: .8rem; max-width: 34rem; }
.contact .bee-photo { width: clamp(9rem, 18vw, 13rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

/* Prose pages */
.prose { max-width: 40rem; display: grid; gap: 1.2rem; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: 2rem; margin-top: 1.5rem; }
.about-head { display: grid; grid-template-columns: 1fr 17rem; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.about-head .portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 999px 999px 28px 28px; }
.year { display: grid; grid-template-columns: 9rem 1fr; gap: .25rem 1rem; padding-block: .9rem; border-top: 1px solid var(--line); }
.year dt { font-weight: 700; color: var(--sage); }
.year dd { margin: 0; }
.wide-photo { border-radius: 24px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-block: .8rem; }
.todo { background: var(--yellow-soft); border-radius: 14px; padding: .8rem 1.1rem; font-size: .95rem; }

/* Footer */
.site-foot { background: var(--white); color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.2rem 4.5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* Version switch (bottom left) */
.vswitch { position: fixed; z-index: 60; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: 0 8px 26px rgba(60,50,20,.16); font: 700 .85rem var(--body); }
.vswitch > * { padding: .4rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); }
.vswitch-on { background: var(--yellow); color: #2c2a20 !important; }
.vswitch a:hover { background: var(--cream); }

/* Bees */
.cursor-bee { position: fixed; left: -17px; top: -15px; height: auto; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform;
  filter: drop-shadow(0 16px 5px rgba(70, 52, 12, .22)); }  /* soft shadow on the page below */
.cursor-bee.on { opacity: 1; }

@media (max-width: 800px) {
  .hero .wrap, .tour .wrap, .keeper .wrap, .about-head, .contact .wrap { grid-template-columns: 1fr; }
  .hero .arch { max-width: 22rem; justify-self: center; }
  .badge { left: -.4rem; width: 6rem; }
  .badge b { font-size: 1.7rem; }
  .keeper .portrait { max-width: 12rem; }
  .about-head .portrait { max-width: 15rem; }
  .snaps .wrap { grid-template-columns: 1fr 1fr; }
  .snaps figure:nth-child(2) { margin-top: 0; }
  .snaps figure:nth-child(3) { grid-column: 1 / -1; }
  .snaps figure:nth-child(3) img { aspect-ratio: 16 / 9; }
  .year { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn, .product { transition: none; } }
