/* Pagecrisp Test Shop. One ink colour, white page, the name set as a sign across the top. */
[hidden] { display: none !important; } /* keep in every design: past closures and the empty closures list stay hidden */

:root {
  --ink: #222222;
  --paper: #ffffff;
  --panel: #f1f1ef;
  --soft: #5a5a5a;
  --line: #d6d6d2;
  --head: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --body: 'Trebuchet MS', 'Gill Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .01em; }
main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* The front: the name set as a sign across the full width, the words and buttons under it */
.front { padding: 0 0 28px; }
.front__shop {
  font: clamp(2.8rem, 12vw, 7.5rem)/.9 var(--head); letter-spacing: .005em; text-wrap: balance;
  margin: 0 0 22px; padding: 22px 0 18px; border-top: 14px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.front__what { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0 0 8px; }
.front__line { font-size: 1.15rem; margin: 0 0 18px; color: var(--soft); max-width: 40ch; }
.opennow { margin: 0 0 18px; line-height: 1.5; }
.status { display: block; font-weight: 700; font-size: 1.1rem; }
.opennow__when { color: var(--soft); }
.big-hours__cap::after { content: ":"; }
.big-hours { color: var(--ink); font-weight: 700; }
.today-line { display: block; color: var(--soft); }
.today-line:empty { display: none; }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; max-width: 460px; }
.act {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px;
  font: 1.25rem/1 var(--head); letter-spacing: .03em; text-decoration: none; border: 3px solid var(--ink);
}
.act--ink { background: var(--ink); color: var(--paper); }
.act--rule { background: var(--paper); color: var(--ink); }
.act:hover, .act:focus-visible { background: #000; color: var(--paper); border-color: #000; }

/* The strip: Towns / Hours / Call */
.strip { display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.strip__cell { padding: 16px 0; border-bottom: 1px solid var(--line); }
.strip__cell:last-child { border-bottom: 0; }
.strip .strip__label { font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0 0 4px; }
.strip p { margin: 0; font-size: 1.15rem; }.strip__call a { font-weight: 700; }

/* The menu, numbered and ruled, with the hours set small beside it */
.carte { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 40px 0 8px; }
.carte h2, .asks h2 { font-size: 2.2rem; margin: 0 0 12px; }
.items { list-style: none; margin: 0; padding: 0; counter-reset: dish; border-top: 3px solid var(--ink); }
.items li { counter-increment: dish; font: clamp(1.7rem, 5.4vw, 2.2rem)/1.1 var(--head); padding: 14px 0; border-bottom: 1px solid var(--line); }
.items li::before { content: counter(dish, decimal-leading-zero); display: inline-block; min-width: 2.4em; font: 700 .95rem/1 var(--body); color: var(--soft); vertical-align: middle; }
.items .price { font-family: var(--body); font-size: 1rem; font-weight: 700; float: right; margin-top: .4em; }
.items li[data-sold-out] { opacity: .6; }
.sold-out { display: block; font: 700 .75rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.clock h2 { font-size: 1.6rem; }
.rows { margin: 0; }
#hours { border-top: 3px solid var(--ink); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; }
.rows dd { margin: 0; text-align: right; }
.rows:empty { display: none; }
#details { margin-top: 18px; }
.closures { list-style: none; padding: 0; margin: 0 0 12px; font-weight: 700; }

/* Questions, two side by side on a computer */
.asks { padding: 36px 0 48px; }
.asks__pair { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ask { border-left: 3px solid var(--ink); padding-left: 16px; }
.ask h3 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.ask p { margin: 0; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 28px 20px 8px; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--paper); }
.foot__name { font: 1.8rem/1.1 var(--head); }
.foot + .madeby-wrap, body > .madeby-wrap { background: var(--ink); color: var(--paper); }

@media (min-width: 760px) {
  main { padding: 0 32px; }
  .front { display: grid; grid-template-columns: 3fr 2fr; column-gap: 48px; align-items: end; padding-bottom: 36px; }
  .front__shop { grid-column: 1 / -1; margin-bottom: 28px; }
  .front__what, .front__line { grid-column: 1; }
  .front__line { margin-bottom: 0; font-size: 1.3rem; }
  .opennow { grid-column: 2; grid-row: 2; margin: 0 0 14px; }
  .acts { grid-column: 2; grid-row: 3; max-width: none; }
  .strip { grid-template-columns: 1fr 1fr 1fr; }
  .strip__cell { border-bottom: 0; border-right: 1px solid var(--line); padding: 18px 20px; }
  .strip__cell:first-child { padding-left: 0; }
  .strip__cell:last-child { border-right: 0; }
  .carte { grid-template-columns: 2fr 1fr; gap: 56px; padding: 56px 0 16px; align-items: start; }
  .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .asks { padding: 48px 0 64px; }
  .asks__pair { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot { padding: 32px max(32px, calc((100% - 1116px) / 2)) 8px; }
}

/* The maker's mark (tools/mark.py): a signature, not an advert. Bottom-left corner, outside the
   shop's own content, the smallest thing on the page. Inherits the footer's text colour. */
.madeby-wrap { padding: 8px 0 max(16px, env(safe-area-inset-bottom)); padding-inline-start: clamp(12px, 1.6vw, 22px); text-align: left; }
.madeby { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 0 2px;
  min-height: 44px; color: inherit; text-decoration: none; opacity: .7; transition: opacity .16s ease; }
.madeby img { width: 38px; height: 38px; border-radius: 8px; display: block; }
.madeby span { font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: .09em; text-transform: uppercase; }
.madeby:hover, .madeby:focus-visible { opacity: 1; }
.madeby:hover span { text-decoration: underline; text-underline-offset: 3px; }
