:root {
  --cream: #fff9e9;
  --paper: #fffdf5;
  --ink: #453b32;
  --muted: #776a5e;
  --line: #d8c9a8;
  --honey: #f1bd33;
  --honey-dark: #bd7d12;
  --rust: #a84734;
  --blue: #5e91a1;
  --green: #708d5f;
  --pink: #c9787e;
  --brown: #6b4a32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #e9debe;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(93, 73, 42, 0.12) 1px, transparent 1.5px),
    linear-gradient(#eee4c8, #e4d6b3);
  background-size: 7px 7px, auto;
  font: 13px/1.65 Verdana, Geneva, sans-serif;
}

a {
  color: #7d3f2f;
}

a:hover {
  color: #a5503d;
}

a:focus-visible {
  outline: 3px solid #3c6c78;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: #fff;
  border: 2px solid var(--brown);
  transform: translateY(-140%);
}

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

.page-shell {
  width: min(940px, calc(100% - 28px));
  margin: 26px auto;
  background: var(--paper);
  border: 1px solid #9a8966;
  box-shadow: 0 3px 14px rgba(70, 52, 28, 0.28);
}

.checker {
  height: 12px;
  background:
    linear-gradient(45deg, var(--honey) 25%, transparent 25%, transparent 75%, var(--honey) 75%),
    linear-gradient(45deg, var(--brown) 25%, transparent 25%, transparent 75%, var(--brown) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

.masthead {
  min-height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 34px 17px;
  background: linear-gradient(90deg, #fffdf6 0%, #fff8df 62%, #f8e6a8 100%);
  border-bottom: 1px solid #d5bf83;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--brown);
  text-decoration: none;
}

.brand:hover {
  color: var(--rust);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font: italic 700 37px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -1px;
  text-shadow: 1px 1px #fff;
}

.brand-copy small {
  margin-top: 4px;
  color: #876f4b;
  font: 700 9px/1 Verdana, Geneva, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-bee {
  position: relative;
  width: 67px;
  height: 59px;
  flex: 0 0 auto;
}

.bee-body {
  position: absolute;
  left: 18px;
  top: 17px;
  width: 39px;
  height: 27px;
  border: 3px solid var(--brown);
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, var(--honey) 0 8px, var(--brown) 8px 13px);
  transform: rotate(8deg);
}

.bee-body::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--brown);
  border-radius: 50%;
  background: var(--brown);
}

.bee-body::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 7px;
  border-width: 5px 0 5px 10px;
  border-style: solid;
  border-color: transparent transparent transparent var(--brown);
}

.bee-wing {
  position: absolute;
  z-index: 1;
  width: 25px;
  height: 20px;
  border: 2px solid var(--blue);
  border-radius: 60% 40%;
  background: rgba(230, 248, 249, 0.82);
}

.bee-wing-left {
  left: 20px;
  top: 3px;
  transform: rotate(-28deg);
}

.bee-wing-right {
  left: 38px;
  top: 2px;
  transform: rotate(30deg) scaleX(-1);
}

.masthead-note {
  margin: 0;
  color: #785d35;
  font: italic 14px/1.55 Georgia, "Times New Roman", serif;
  text-align: right;
}

.site-nav {
  display: flex;
  align-items: end;
  min-height: 39px;
  padding-left: 27px;
  background: #66503b;
  border-top: 1px solid #493725;
  border-bottom: 4px solid var(--honey);
}

.site-nav a {
  display: block;
  padding: 10px 18px 9px;
  color: #fff7d8;
  border-left: 1px solid #826b54;
  text-decoration: none;
  font: 700 11px/1 Verdana, Geneva, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.site-nav a:last-child {
  border-right: 1px solid #826b54;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #463426;
  background: var(--honey);
}

main {
  padding: 24px;
}

.panel {
  border: 1px solid var(--line);
  background-color: var(--cream);
  background-image: linear-gradient(rgba(179, 154, 103, 0.09) 1px, transparent 1px);
  background-size: 100% 22px;
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  gap: 34px;
  min-height: 342px;
  padding: 38px 40px;
  overflow: hidden;
}

.welcome-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--rust);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--brown);
  font: italic 700 clamp(43px, 6vw, 72px)/0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -2px;
}

.lede {
  max-width: 510px;
  margin: 20px 0 24px;
  color: #695a4c;
  font: 18px/1.55 Georgia, "Times New Roman", serif;
}

.old-button {
  display: inline-block;
  padding: 9px 14px;
  color: #fff;
  background: #9e4a37;
  border: 1px solid #713324;
  border-radius: 4px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 1px 2px rgba(65, 44, 26, 0.23);
  font-weight: 700;
  text-decoration: none;
}

.old-button:hover,
.old-button:focus-visible {
  color: #fff;
  background: #743726;
}

.button-board {
  position: relative;
  min-height: 262px;
  align-self: center;
  border: 2px solid #aa916a;
  background-color: #d6c098;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.13) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,.13) 50%, transparent 50%);
  background-size: 7px 7px;
  box-shadow: inset 0 0 0 7px #ead9b9, inset 0 0 0 8px #a7916e, 4px 5px 0 rgba(106, 74, 50, .12);
  transform: rotate(1.2deg);
}

.board-title {
  position: absolute;
  left: 16px;
  top: 13px;
  color: #5f4730;
  font: italic 700 16px Georgia, "Times New Roman", serif;
}

.sewn-button,
.sample {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 3px solid rgba(70, 48, 31, .68);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.2), 2px 3px 4px rgba(69,50,32,.25);
}

.sewn-button::before,
.sewn-button::after,
.sample::before,
.sample::after {
  content: "";
  position: absolute;
  background: #f8eccc;
  box-shadow: 0 0 0 1px rgba(68, 48, 30, .24);
}

.four-hole::before {
  left: 30%;
  top: 30%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(68,48,30,.2), 20px 0 0 #f8eccc, 20px 20px 0 #f8eccc, 0 20px 0 #f8eccc;
}

.four-hole::after {
  display: none;
}

.two-hole::before {
  left: 29%;
  top: 42%;
  width: 15%;
  height: 15%;
  border-radius: 50%;
  box-shadow: 24px 0 0 #f8eccc;
}

.two-hole::after {
  display: none;
}

.button-red {
  left: 36px;
  top: 66px;
  width: 78px;
  height: 78px;
  background: var(--rust);
  transform: rotate(-8deg);
}

.button-blue {
  right: 32px;
  top: 47px;
  width: 64px;
  height: 64px;
  background: var(--blue);
  transform: rotate(7deg);
}

.button-yellow {
  left: 103px;
  bottom: 33px;
  width: 72px;
  height: 72px;
  background: var(--honey);
  transform: rotate(4deg);
}

.button-green {
  right: 35px;
  bottom: 27px;
  width: 58px;
  height: 58px;
  background: var(--green);
  transform: rotate(-5deg);
}

.thread-line {
  position: absolute;
  display: block;
  width: 82px;
  border-top: 2px dashed #805a45;
  transform-origin: left center;
}

.thread-one {
  left: 72px;
  top: 107px;
  transform: rotate(30deg);
}

.thread-two {
  right: 65px;
  bottom: 63px;
  transform: rotate(-35deg);
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 25px;
  padding: 28px 2px 10px;
}

.section-block {
  padding: 6px 14px 28px;
  border-bottom: 1px dashed #bba985;
  scroll-margin-top: 18px;
}

.about-block {
  margin-top: 22px;
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
}

.section-heading h2,
.side-box h2,
.thanks h2 {
  margin: 0;
  color: var(--brown);
  font: italic 700 26px/1.15 Georgia, "Times New Roman", serif;
}

.mini-button {
  position: relative;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 2px solid #7a392c;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.2);
}

.mini-button::before,
.mini-button::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff1cc;
}

.mini-button::before {
  left: 6px;
}

.mini-button::after {
  right: 6px;
}

.mini-button-blue {
  border-color: #3e6470;
  background: var(--blue);
}

.section-intro {
  max-width: 610px;
  margin: 0 0 20px 36px;
  color: var(--muted);
}

.specimen-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 10px 12px;
  border: 1px solid #d5c8aa;
  background: #fbf3df;
}

.specimen-strip figure {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 0;
  padding: 4px;
}

.sample {
  position: relative;
  width: 72px;
  height: 72px;
}

.sample-rose {
  background: var(--pink);
}

.sample-sky {
  background: var(--blue);
}

.sample-honey {
  background: var(--honey);
}

.sample-leaf {
  background: var(--green);
}

.specimen-strip figcaption {
  color: #786a58;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-block p {
  margin: 9px 0 14px 36px;
}

blockquote {
  margin: 18px 0 0 35px;
  padding: 9px 14px;
  color: #725043;
  border-left: 4px solid var(--honey);
  background: #fff8db;
  font: italic 17px/1.5 Georgia, "Times New Roman", serif;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-box {
  padding: 18px;
  border: 1px solid #c6b58f;
  background: #f9efd2;
  box-shadow: 3px 3px 0 #dfcca4;
}

.side-box h2 {
  padding-bottom: 7px;
  border-bottom: 1px dotted #a48c68;
  font-size: 20px;
}

.side-box ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.side-box li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  color: #65594e;
  border-bottom: 1px dotted #d7c7a3;
}

.side-box li:last-child {
  border-bottom: 0;
}

.note-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(60,43,27,.45);
  border-radius: 50%;
}

.note-red { background: var(--rust); }
.note-blue { background: var(--blue); }
.note-yellow { background: var(--honey); }
.note-green { background: var(--green); }

.pin-box {
  position: relative;
  min-height: 150px;
  padding-top: 28px;
  background: #e8efda;
  transform: rotate(-1deg);
}

.pin-box p {
  margin: 13px 0 0;
  font: italic 16px/1.6 Georgia, "Times New Roman", serif;
}

.pushpin {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 13px;
  height: 13px;
  border: 2px solid #744533;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 1px 2px 2px rgba(54,37,21,.25);
}

.thanks {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 25px 29px;
  color: #fff8dc;
  background: #5c4734;
  border: 4px double #e3c967;
  scroll-margin-top: 18px;
}

.thanks h2 {
  color: #fff8dc;
  font-size: 27px;
}

.thanks .eyebrow {
  color: #f2cf62;
}

.thanks-badge {
  position: relative;
  width: 54px;
  height: 54px;
  border: 3px solid #e7c84d;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.16);
}

.thanks-badge span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #745531;
}

.thanks-badge span:nth-child(1) { left: 15px; top: 15px; }
.thanks-badge span:nth-child(2) { right: 15px; top: 15px; }
.thanks-badge span:nth-child(3) { left: 15px; bottom: 15px; }
.thanks-badge span:nth-child(4) { right: 15px; bottom: 15px; }

.light-button {
  color: #51402f;
  background: #f4ce57;
  border-color: #a87c18;
  white-space: nowrap;
}

.light-button:hover,
.light-button:focus-visible {
  color: #3d2e22;
  background: #fff0a0;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 17px 24px 20px;
  color: #76634d;
  border-top: 1px dashed #c5b593;
  background: #f6edda;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 940px);
    margin: 9px auto;
  }

  .masthead {
    padding: 17px 20px;
  }

  .brand-copy strong {
    font-size: clamp(27px, 8vw, 37px);
  }

  .masthead-note {
    display: none;
  }

  .site-nav {
    align-items: stretch;
    flex-wrap: wrap;
    padding-left: 0;
  }

  .site-nav a {
    flex: 1 1 50%;
    padding: 12px 8px;
    border-bottom: 1px solid #806950;
    text-align: center;
  }

  main {
    padding: 14px;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 24px;
  }

  .button-board {
    width: min(100%, 330px);
    min-height: 252px;
    justify-self: center;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thanks {
    grid-template-columns: auto 1fr;
  }

  .thanks .old-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .brand-bee {
    width: 52px;
    transform: scale(.82);
    transform-origin: left center;
  }

  .site-nav a {
    font-size: 10px;
  }

  h1 {
    font-size: 46px;
  }

  .lede {
    font-size: 16px;
  }

  .specimen-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .section-intro,
  .about-block p,
  blockquote {
    margin-left: 0;
  }

  .thanks {
    grid-template-columns: 1fr;
  }

  .thanks-badge {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
