/* The shop board holds a tear-off calendar and a set of thumb-indexed paper notes. */
.noticeboard {
  padding-block: clamp(32px, 5vw, 67px);
  background: #f5ecda;
  color: #342a20;
  border-block: 1px solid #bfad95;
}
.noticeboard-heading { margin-bottom: 19px; }
.noticeboard-heading h2 {
  color: #3b2b21;
  font: 700 clamp(37px, 4.4vw, 59px)/.98 var(--serif);
  letter-spacing: -.055em;
}
.noticeboard-heading .eyebrow { color: #814a39; }
.noticeboard-wood {
  display: grid;
  grid-template-columns: minmax(180px, .63fr) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  padding: clamp(24px, 3.7vw, 54px) clamp(23px, 5vw, 72px);
  border: 1px solid #61452e;
  border-radius: 3px;
  background-color: #795137;
  background-image: linear-gradient(100deg, #37251926, #6b483125 48%, #38241933), url('/assets/walnut.webp');
  background-size: cover, cover;
  background-position: center;
  box-shadow: inset 0 0 0 4px #58392345, inset 0 0 0 5px #c8a87864, 0 3px 0 #bca58b;
}
.notice-calendar {
  position: relative;
  justify-self: center;
  width: min(100%, 246px);
  background: #fff5db;
  color: #412c23;
  border: 1px solid #735643;
  box-shadow: 1px 2px 0 #d1bda1, 2px 4px 0 #8b785c, 3px 6px 6px #3220136b;
  transform: rotate(-1.25deg);
  text-align: center;
}
.notice-calendar::before, .notice-calendar::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52372c;
  border: 1px solid #c59875;
  top: 11px;
  left: 12px;
  box-shadow: 0 1px 0 #f1d7b4a1;
}
.notice-calendar::after { left: auto; right: 12px; }
.notice-month {
  padding: 10px 19px 8px;
  background: #774536;
  color: #fff4dd;
  font: 700 13px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.notice-days {
  margin: 13px 13px 0;
  color: #794331;
  font: 700 clamp(49px, 5.9vw, 76px)/1 var(--serif);
  letter-spacing: -.09em;
  font-variant-numeric: lining-nums;
}
.notice-days span { margin: 0 .04em 0 .015em; }
.notice-calendar-copy { padding: 8px 14px 16px; }
.notice-calendar h3 {
  padding: 8px 0 6px;
  border-top: 1px dashed #b09d80;
  font: 700 20px/1.1 var(--serif);
}
.notice-calendar p { max-width: 26ch; margin: 0 auto; color: #5d4937; font-size: 14px; line-height: 1.45; }

.notice-file {
  --letter-edge: #c6b49a;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, max-content) minmax(0, 1fr);
  gap: 0 2px;
  align-self: center;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}
.notice-reader-label, .notice-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}
.notice-file > label {
  position: relative;
  display: grid;
  place-items: center;
  align-self: end;
  min-height: 44px;
  padding: 8px clamp(11px, 1.6vw, 22px);
  margin-bottom: -2px;
  border: 1px solid #a89678;
  border-radius: 6px 8px 0 0;
  color: #473729;
  background: #e1cfac;
  font: 700 13px/1.25 var(--mono);
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 -3px 0 #a78b6c30;
}
.notice-choice:checked + label {
  color: #663e30;
  background: #fff5dc;
  border-color: #b7a083;
  border-bottom-color: transparent;
  box-shadow: inset 0 3px 0 #72483a;
  text-decoration: underline; text-underline-offset: 4px;
  z-index: 2;
}
.notice-choice:checked + label[for="note-november"] { background-color: #f6ddc3; }
.notice-choice:checked + label[for="note-swap"] { background-color: #e1e6cd; box-shadow: inset 0 3px 0 #4b6044; }
.notice-choice:focus-visible + label, .notice-paper a:focus-visible { outline: 3px solid #286450; outline-offset: -4px; }
.notice-pages {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid var(--letter-edge);
  background: #fff4dc;
  box-shadow: 2px 3px 0 #c9b294, 4px 5px 0 #f4e1c0, 6px 8px 9px #35251966;
}
.notice-paper {
  position: relative;
  isolation: isolate;
  display: none;
  min-width: 0;
  min-height: 240px;
  padding: clamp(20px, 2.6vw, 38px);
  color: #3f3328;
}
#note-shop:checked ~ .notice-pages .notice-letter,
#note-november:checked ~ .notice-pages .notice-season,
#note-swap:checked ~ .notice-pages .notice-swap { display: grid; }
.notice-paper h3 {
  font: 700 clamp(28px, 3.05vw, 43px)/1.02 var(--serif);
  letter-spacing: -.055em;
  margin-bottom: 10px;
}
.notice-paper p { max-width: 45ch; margin: 0; font-size: 15px; line-height: 1.55; }
.notice-paper a {
  color: #733f2e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 5px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.notice-letter {
  grid-template-columns: minmax(0, 1fr) clamp(75px, 7.5vw, 108px);
  gap: clamp(14px, 2.8vw, 40px);
  align-items: center;
}
.notice-letter-copy { grid-column: 1; grid-row: 1; }
.notice-letter h3 span { display: inline-block; }
.notice-photo {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 5px 5px 10px;
  background: #fffcf3;
  box-shadow: 1px 2px 5px #5f493d58;
  transform: rotate(3deg);
}
.notice-photo::before {
  content: "";
  position: absolute;
  left: 20%; top: -6px;
  width: 54%; height: 16px;
  background: #d6bb7fbf;
  transform: rotate(-6deg);
}
.notice-photo img { display: block; width: 100%; height: auto; }
.notice-season {
  align-items: center;
  background: #f6ddc3;
  border-left: 8px solid #a15c4c;
  padding-right: clamp(32px, 7vw, 105px);
}
.notice-season::after {
  content: "";
  position: absolute; inset: 12px 12px 12px auto;
  width: 10px;
  background: repeating-linear-gradient(0deg, #a15c4c85 0 5px, transparent 5px 10px);
}
.notice-season h3 { color: #773c32; }
.notice-swap {
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: #e1e6cd;
  color: #344531;
}
.notice-swap::before { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1px dashed #929b73; }
.notice-swap-arrows { color: #526747; font: 700 clamp(50px, 7.7vw, 106px)/1 Georgia, serif; transform: rotate(-11deg); }
.notice-swap p.notice-swap-date { font: 700 12px/1.4 var(--mono); margin-top: 13px; }
@media (hover:hover) {
  .notice-file > label:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion:no-preference) {
  .notice-file > label { transition: color .14s, background-color .14s; }
  .notice-paper { animation: notice-unfold .23s ease-out; transform-origin: center top; }
  @keyframes notice-unfold { from { opacity: .62; transform: translateY(-4px) rotateX(3deg); } to { opacity: 1; transform: none; } }
}
@media(max-width:800px) {
  .noticeboard-wood { grid-template-columns: minmax(160px,.58fr) minmax(0,1.42fr); gap: 23px; padding: 27px 23px; }
  .notice-paper { padding: 21px 16px; }
  .notice-letter { grid-template-columns: 1fr 65px; gap: 12px; }
  .notice-swap-arrows { font-size: 54px; }
  .notice-file > label { padding-inline: 10px; }
}
@media(max-width:650px) {
  .noticeboard { padding-block: 30px; }
  .noticeboard-heading { margin-bottom: 13px; }
  .noticeboard-wood { display: flex; flex-direction: column; align-items: stretch; gap: 21px; padding: 21px 14px 23px; }
  .notice-calendar {
    align-self: center;
    width: min(100%, 440px);
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(87px,.72fr) minmax(0,1.55fr);
    text-align: left;
    transform: rotate(-.6deg);
  }
  .notice-calendar::before,.notice-calendar::after { display: none; }
  .notice-calendar-date { display: grid; align-content: center; text-align: center; border-right: 1px dashed #b4a184; }
  .notice-month { align-self: stretch; padding: 5px 3px; margin: 0 5px; font-size: 10px; letter-spacing: .03em; }
  .notice-days { font-size: 40px; margin: 3px 0 0; }
  .notice-calendar-copy { align-self: center; padding: 10px 11px; }
  .notice-calendar h3 { font-size: 19px; border-top: 0; padding: 0 0 3px; }
  .notice-calendar p { font-size: 13px; line-height: 1.35; margin: 0; max-width: none; }
  .notice-file { width: min(100%, 440px); align-self: center; }
  .notice-file > label { padding-inline: clamp(7px, 2.8vw, 15px); font-size: 12px; }
  .notice-paper { padding: 21px 16px 16px; min-height: 215px; }
  .notice-paper p { font-size: 14px; line-height: 1.45; }
  #note-shop:checked ~ .notice-pages .notice-letter { display: flow-root; }
  .notice-letter h3 { margin-bottom: 8px; }
  .notice-photo { float: right; width: clamp(60px, 18vw, 82px); padding: 3px 3px 6px; margin: 3px 2px 8px 13px; }
  .notice-photo::before { height: 10px; top: -4px; }
  .notice-season { padding-right: 31px; }
  .notice-swap { grid-template-columns: minmax(0,1fr) 39px; gap: 5px; }
  .notice-swap-arrows { font-size: 44px; }
}
@media(max-width:360px) {
  .noticeboard-wood { padding-inline: 10px; }
  .notice-photo { width: 53px; margin-left: 8px; }
  .notice-paper { padding-left: 13px; padding-right: 12px; }
  .notice-file > label { padding-inline: 8px; }
}
