/* Hallmark · custom · Hilltop Apiary · A naturalist’s tasting notebook framed by real comb photography, three named honey profiles and a personal jar flight. */
/* Critique: the trade sets the content and primary interaction. */
@font-face {
  font-family: "source-serif";
  src: url("./fonts/source-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "work-sans";
  src: url("./fonts/work-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f4e9cf;
  --ink: #382a21;
  --line: #ab9775;
  --cta: #5e3d23;
  --ctaink: #fff0ce;
  --body: "work-sans", Arial, sans-serif;
  --display: "source-serif", Georgia, serif;
  --weight: 560;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.02;
  font-weight: var(--weight, 600);
}
h1,
h2 {
  text-wrap: balance;
}
p {
  max-width: 62ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a,
button,
select,
input {
  touch-action: manipulation;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
button:enabled:active,
.cta:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px Canvas;
}
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.skip {
  position: absolute;
  z-index: 10;
  top: -8rem;
  left: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(calc(100% - clamp(2rem, 8vw, 8rem)), 80rem);
  margin-inline: auto;
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.7rem;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.25vw, 2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.mast nav,
footer .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 2rem);
  flex-wrap: wrap;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.92rem;
}
.mast nav a:hover {
  text-decoration: underline;
}
.cta,
.takeaway {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--cta);
  background: var(--cta);
  color: var(--ctaink);
}
.cta:hover,
.takeaway:hover {
  text-decoration: underline;
}
.band {
  padding-block: clamp(3rem, 7.2vw, 7.5rem);
}
.band h2 {
  font-size: clamp(2.65rem, 5.5vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1rem;
}
.band h3,
#tool h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  margin-bottom: 0.55rem;
}
.band p + p,
#tool p + p {
  margin-top: 0.7rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend,
label {
  font-weight: 650;
}
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.controls label,
.form-label {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}
select,
input[type="number"],
input[type="text"],
textarea {
  min-height: 2.8rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--paper);
}
textarea {
  resize: vertical;
  min-height: 4.2rem;
}
.options,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 1rem;
}
.options button,
.quiet,
.step button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  min-height: 2.8rem;
  padding: 0.5rem 0.8rem;
}
.options button[aria-pressed="true"] {
  color: var(--ctaink);
  background: var(--cta);
  border-color: var(--cta);
}
.options button:hover,
.quiet:hover {
  text-decoration: underline;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step button {
  min-width: 2.8rem;
}
.step output {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fine,
figcaption {
  font-size: 0.85rem;
  line-height: 1.45;
}
[role="status"] {
  min-height: 1.4em;
  font-size: 0.9rem;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.65rem;
}
summary {
  font-weight: 650;
  min-height: 2.5rem;
}
details p {
  padding-bottom: 0.65rem;
}
address {
  font-style: normal;
  line-height: 1.7;
}
footer {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
footer .wrap {
  justify-content: space-between;
}
footer p,
footer a {
  font-size: 0.83rem;
}
@media (max-width: 560px) {
  .mast {
    gap: 0.4rem;
    min-height: 4.25rem;
  }
  .mast nav {
    gap: 0.6rem;
  }
  .mast nav a {
    font-size: 0.8rem;
  }
  .mast .brand {
    font-size: 1.2rem;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --comb: #ded09a;
  --honey: #c79343;
  --dark: #382a21;
  --sheet: #fff7e0;
  --sage: #6f7653;
  --rust: #874a29;
}
header {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.7rem;
  font-weight: 650;
}
.honey-hero {
  background: var(--comb);
  padding-bottom: clamp(1.6rem, 3.6vw, 3.6rem);
}
.honey-hero figure {
  position: relative;
  max-width: 104rem;
  margin: auto;
}
.honey-hero figure img {
  height: clamp(15rem, 25vw, 25rem);
  object-position: 50% 53%;
}
.honey-hero figcaption {
  position: absolute;
  right: 4.5%;
  top: 0.6rem;
  padding: 0.35rem 0.7rem;
  background: var(--sheet);
}
.field-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 6%;
  background: var(--sheet);
  padding: clamp(1.25rem, 3.2vw, 3rem);
  margin-top: -3rem;
  box-shadow: 3px 5px 0 #ac9b74;
  border-left: 6px solid var(--sage);
}
.field-cover h1 {
  font-size: clamp(4.6rem, 8vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
}
.field-cover p {
  max-width: 40ch;
  margin-bottom: 1rem;
}
.harvest-heading,
.notebook-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 8%;
  align-items: end;
  margin-bottom: 1.4rem;
}
.swatch-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3%;
  border-block: 1px solid var(--line);
  padding: 1.2rem 0;
}
.swatch-ledger article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.notebook {
  background: var(--comb);
}
.notebook-head p {
  max-width: 39ch;
}
.book-pages {
  background: var(--sheet);
  border: 1px solid var(--dark);
  box-shadow: 5px 5px 0 #b49f70;
  padding: clamp(1rem, 2.2vw, 2.1rem);
}
.book-pages > .options {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
  margin-top: 0;
}
.jar-line {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) auto auto;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.6rem 0;
}
.jar-line label {
  font-size: 0.86rem;
}
.jar-line select {
  display: block;
}
.jar-line strong {
  min-width: 4.2rem;
  text-align: right;
}
.flight-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-block: 2px solid var(--dark);
  padding: 0.7rem 0;
  margin-top: 1rem;
  font-size: 1.2rem;
}
.two-jars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3%;
}
.tasting-card {
  border-top: 2px solid var(--sage);
  padding: 1rem 0;
}

.tasting-card label {
  display: grid;
  gap: 0.3rem;
  margin: 0.5rem 0;
}
.tasting-card textarea {
  min-height: 5.5rem;
}
.confirm {
  padding: 0.8rem;
  border: 1px dashed var(--rust);
}
.shed {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 7%;
}
.shed img {
  height: clamp(15rem, 27vw, 27rem);
}
.shed address {
  margin: 1rem 0;
}
@media (max-width: 700px) {
  .field-cover,
  .harvest-heading,
  .notebook-head,
  .swatch-ledger,
  .two-jars,
  .shed {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }
  .field-cover {
    margin-top: -1.8rem;
  }
  .field-cover h1 {
    font-size: clamp(3.8rem, 14.8vw, 6rem);
  }
  .honey-hero figure img {
    height: 47vw;
    min-height: 12rem;
  }
  .jar-line {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "harvest price" "size quantity";
    align-items: end;
    gap: 0.45rem 0.75rem;
    padding-block: 0.85rem;
  }
  .jar-line > b {
    grid-area: harvest;
  }
  .jar-line > strong {
    grid-area: price;
    min-width: 0;
  }
  .jar-line label {
    grid-area: size;
    min-width: 0;
  }
  .jar-line .step {
    grid-area: quantity;
    justify-self: end;
  }
  .mast nav a:first-child {
    display: none;
  }
}

/* Harvest names and jar sizes */
.frame-house {
  width: min(1340px, 92%);
  margin: 1.7rem auto 3.7rem;
}
.frame-intro {
  display: grid;
  grid-template-columns: minmax(90px, 16%) 1fr;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 2rem);
  padding-bottom: 1rem;
}

.frame-intro > div:last-child {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 0.5rem 2rem;
  align-items: end;
}
.frame-intro h1 {
  font: clamp(4rem, 7.5vw, 8.1rem)/0.88 var(--display);
  letter-spacing: -0.055em;
  grid-row: span 2;
}
.frame-intro p {
  max-width: 27rem;
}
.frame-intro a {
  font-weight: bold;
}
.hive-wood {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: clamp(7px, 1.1vw, 15px) ridge #a98245;
  border-block-width: clamp(9px, 1.6vw, 20px);
  background: #ad8b52;
  gap: 0.6rem;
  position: relative;
}

.hive-wood figure {
  margin: 0;
  min-width: 0;
}
.hive-wood figure img {
  width: 100%;
  height: 100%;
  max-height: 265px;
  display: block;
  object-fit: cover;
}
.comb-bars {
  display: flex;
  height: 100%;
  background: #3f392a;
  gap: 4px;
}
.honey-band {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(88px, 1fr) auto;
  min-width: 0;
}

.wood-label {
  padding: 0.5rem 0.3rem;
  background: #ead7a9;
  color: #3e341f;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  line-height: 1.15;
}
.wood-label b {
  font: clamp(0.95rem, 1.5vw, 1.5rem)/1 var(--display);
}
.wood-label span {
  font-size: 0.75rem;
}
.wood-label :is(button, .front-key) {
  background: transparent;
  color: #432b16;
  border: 1px solid #806634;
  border-radius: 0;
  font-weight: 750;
  font-size: 0.82rem;
  padding: 0.35rem 0.12rem;
  cursor: pointer;
}
.wood-label button:focus-visible {
  outline: 3px dashed #3e2c16;
  outline-offset: 1px;
}

@media (max-width: 770px) {
  .frame-intro {
    grid-template-columns: 20% 1fr;
    gap: 0.6rem;
  }
  .frame-intro > div:last-child {
    display: block;
  }
  .frame-intro h1 {
    font-size: clamp(2.6rem, 10.6vw, 5rem);
  }
  .frame-intro h1 br {
    display: none;
  }
  .frame-intro p {
    margin: 0.5rem 0;
  }
  .hive-wood {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hive-wood figure {
    height: clamp(97px, 27vw, 170px);
  }
  .honey-band {
    grid-template-rows: 64px auto;
  }
  .wood-label b {
    min-height: 2.05em;
  }
  .frame-house {
    margin-top: 1rem;
  }
}

/* The printed panel is available before the interactive controls load. */
#front-panel [data-front-preview] .front-key {
  cursor: default;
}
#front-panel [data-front-preview] a.front-key {
  cursor: pointer;
}
:where(.front-key, .front-value) {
  display: inline-block;
  box-sizing: border-box;
  font: inherit;
  line-height: inherit;
  text-align: center;
}
.wood-label .front-key {
  text-align: center;
}

.frame-intro {
  display: block;
}
.frame-intro > div:last-child {
  grid-template-columns: 1fr 1fr;
}
.hive-wood {
  grid-template-columns: 1.1fr 1fr;
  border: 0;
  border-block: 2px solid #625339;
  background: transparent;
  gap: clamp(0.7rem, 2vw, 2rem);
  align-items: center;
  padding-block: 0.8rem;
}
.hive-wood figure img {
  height: clamp(190px, 24vw, 310px);
  max-height: none;
}
.comb-bars {
  display: block;
  background: transparent;
}
.honey-band {
  display: block;
}
.wood-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
  background: transparent;
  padding: 0.65rem 0.1rem;
  border-bottom: 1px solid #a78a52;
}
.wood-label b {
  min-height: 0;
}
.wood-label .front-key,
.wood-label button {
  min-width: 4.2rem;
}
.swatch-ledger article {
  display: block;
}
.swatch-ledger article p {
  margin-top: 0.4rem;
}
@media (max-width: 770px) {
  .frame-intro > div:last-child {
    display: block;
  }
  .hive-wood {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .hive-wood figure,
  .hive-wood figure img {
    height: clamp(155px, 38vw, 240px);
  }
}
