/* Trevier's printed menu. The board keeps photos, item names and prices together. */
.tm-section {
  --tm-paper:#f1ebdc;
  --tm-ink:#18221c;
  --tm-muted:#5a5d4f;
  --tm-rule:#c8c4b3;
  --tm-amber:#956222;
  position:relative;
  color:var(--tm-ink);
  background:var(--tm-paper);
  padding:clamp(58px,7.4vw,114px) 0 clamp(64px,7vw,120px);
  font-family:Pretendard,"Apple SD Gothic Neo",sans-serif;
}
.tm-section,.tm-section * { box-sizing:border-box; }
.tm-shell { width:min(calc(100% - 11vw),1510px); margin-inline:auto; }
.tm-section [hidden] { display:none!important; }
.tm-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.82fr);
  align-items:center;
  gap:20px;
  padding-bottom:clamp(28px,3.5vw,64px);
}
.tm-heading-copy { position:relative; z-index:1; }
.tm-label { display:flex; align-items:center; gap:11px; margin:0 0 14px; font:600 12px/1.4 Pretendard,sans-serif; letter-spacing:.055em; color:var(--tm-muted); }
.tm-label > span { display:inline-block; width:25px; height:1px; background:var(--tm-amber); }
.tm-heading h2 { margin:0; font:400 clamp(67px,8.5vw,146px)/1 Instrument,"Iowan Old Style",Georgia,serif; letter-spacing:-.055em; color:inherit; text-transform:none; }
.tm-heading h2 em { color:#70542e; font-weight:400; }
.tm-prints {
  position:relative;
  justify-self:end;
  width:min(100%,440px);
  height:clamp(106px,11vw,164px);
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
}
.tm-print {
  display:block; width:34%; height:88%; object-fit:cover; border:4px solid #fbf7e9;
  box-shadow:0 3px 8px #362e192c;
}
.tm-print:nth-child(1) { transform:translate(4%,6%) rotate(-9deg); }
.tm-print:nth-child(2) { transform:translateY(-4%) rotate(2deg); z-index:1; }
.tm-print:nth-child(3) { transform:translate(-3%,7%) rotate(8deg); }
.tm-trail {
  position:absolute; z-index:3; object-fit:cover; width:100px; aspect-ratio:1.25; border:3px solid #faf3df;
  box-shadow:0 3px 12px #181b182d; pointer-events:none; animation:tm-paper-trail .67s ease-out both;
}
@keyframes tm-paper-trail {
  0% { opacity:0; transform:translate(-50%,-45%) rotate(-3deg) scale(.87); }
  16%,63% { opacity:1; transform:translate(-50%,-55%) rotate(5deg); }
  100% { opacity:0; transform:translate(-50%,-67%) rotate(9deg); }
}
.tm-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(15px,3vw,50px);
  border-block:1px solid var(--tm-rule);
}
.tm-categories { display:flex; position:relative; align-items:stretch; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#a29c89 transparent; }
.tm-filter {
  flex:none; border:0; border-radius:0; margin:0; padding:16px clamp(10px,.95vw,20px);
  color:var(--tm-muted); background:transparent; font:550 clamp(13px,1.05vw,17px)/1.4 Pretendard,sans-serif;
  cursor:pointer; white-space:nowrap;
}
.tm-filter:first-of-type { padding-inline-start:5px; }
.tm-filter:hover,.tm-filter[aria-pressed=true] { color:var(--tm-ink); }
.tm-filter[aria-pressed=true] { font-weight:750; }
.tm-filter:focus-visible { outline:2px solid var(--tm-amber); outline-offset:-3px; }
.tm-marker {
  position:absolute; bottom:1px; left:0; width:0; height:2px; pointer-events:none; background:var(--tm-amber);
  transition:transform .35s cubic-bezier(.19,1,.22,1),width .35s cubic-bezier(.19,1,.22,1);
}
.tm-search { display:flex; flex:0 1 160px; align-items:center; gap:11px; min-width:105px; color:#55574c; padding:4px 3px; }
.tm-search i { position:relative; display:block; flex:none; width:14px; height:14px; border:1.25px solid; border-radius:50%; }
.tm-search i::after { position:absolute; right:-4px; bottom:-2px; content:""; width:6px; height:1px; background:currentColor; transform:rotate(45deg); }
.tm-search input { display:block; width:100%; min-width:0; min-height:38px; padding:0; background:none; border:0; outline:none; color:var(--tm-ink); font:450 14px/1.4 Pretendard,sans-serif; }
.tm-search:focus-within { outline:2px solid var(--tm-amber); outline-offset:1px; }
.tm-search input::placeholder { color:var(--tm-muted); }
.tm-category-block { margin:clamp(24px,3.1vw,50px) 0 0; }
.tm-category-block + .tm-category-block { margin-top:clamp(47px,6vw,100px); }
.tm-group-title { display:flex; gap:9px; align-items:baseline; margin-bottom:clamp(17px,1.4vw,26px); }
.tm-group-title h3 { color:var(--tm-ink); margin:0; font:650 clamp(19px,1.7vw,28px)/1.24 Pretendard,sans-serif; letter-spacing:-.05em; }
.tm-group-count { color:var(--tm-muted); font:500 12px/1.4 Pretendard,sans-serif; }
.tm-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(28px,3.6vw,60px) clamp(19px,2.15vw,40px); }
.tm-card { min-width:0; margin:0; }
.tm-frame { aspect-ratio:1.72; overflow:hidden; background:#d5c9af; }
.tm-food-image { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 50%; }
.tm-dish-line { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.tm-card .tm-dish-line { margin-top:clamp(12px,1.25vw,21px); }
.tm-name { margin:0; font:630 clamp(18px,1.6vw,28px)/1.27 Pretendard,sans-serif; letter-spacing:-.052em; word-break:keep-all; overflow-wrap:anywhere; color:var(--tm-ink); }
.tm-price { white-space:nowrap; color:#534631; font:570 clamp(13px,1.1vw,18px)/1.4 Pretendard,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.tm-note { margin:7px 0 0; max-width:54ch; color:var(--tm-muted); font:400 clamp(13px,1vw,16px)/1.65 Pretendard,sans-serif; word-break:keep-all; }
.tm-text-items { gap:0 clamp(25px,3.5vw,68px); }
.tm-entry { min-width:0; padding:22px 0; border-top:1px solid var(--tm-rule); }
.tm-empty { margin:48px 0 64px; text-align:center; color:var(--tm-muted); }
.tm-credit { margin:25px 0 0; color:#646456; font:400 11px/1.4 Pretendard,sans-serif; }
.tm-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@supports (animation-timeline:view()) {
  @media(prefers-reduced-motion:no-preference) {
    .tm-frame { animation:tm-rise linear both; animation-timeline:view(); animation-range:entry 0% entry 48%; }
    .tm-card:nth-child(even) .tm-frame { animation-range:entry 1% entry 53%; }
    @keyframes tm-rise { from { opacity:.55; transform:translateY(22px); } to { opacity:1; transform:none; } }
  }
}
@media(max-width:850px) {
  .tm-shell { width:calc(100% - 9vw); }
  .tm-toolbar { flex-wrap:wrap; gap:0; }
  .tm-categories { flex:1 1 100%; }
  .tm-search { margin-left:auto; flex-basis:100%; border-top:1px solid var(--tm-rule); gap:9px; padding-left:4px; }
}
@media(max-width:600px) {
  .tm-section { padding:56px 0; }
  .tm-shell { width:calc(100% - 36px); }
  .tm-heading { gap:8px; grid-template-columns:1.45fr 1fr; padding-bottom:22px; }
  .tm-label { font-size:10px; margin-bottom:8px; }
  .tm-heading h2 { font-size:clamp(44px,11.2vw,69px); white-space:nowrap; }
  .tm-prints { height:clamp(72px,19vw,105px); width:96%; }
  .tm-print { width:44%; height:78%; border-width:2px; }
  .tm-print:nth-child(1) { display:none; }
  .tm-print:nth-child(2) { transform:translate(4%,-6%) rotate(-8deg); }
  .tm-print:nth-child(3) { transform:translate(-3%,9%) rotate(7deg); }
  .tm-filter { min-height:46px; padding:12px 11px; }
  .tm-search { padding-block:0; }
  .tm-search input { min-height:40px; font-size:16px; }
  .tm-category-block { margin-top:21px; }
  .tm-items { grid-template-columns:minmax(0,1fr); gap:24px; }
  .tm-frame { aspect-ratio:1.52; }
  .tm-text-items { gap:0; }
  .tm-group-title { margin-bottom:14px; }
  .tm-note { margin-top:5px; }
  .tm-entry { padding:17px 0; }
}
@media(prefers-reduced-motion:reduce) {
  .tm-marker { transition:none; }
  .tm-trail { display:none; }
}
