/* Hallmark · custom · Tide Table · tidal blue, quiet panoramic dining room */
/* Critique: The panorama separates the dining-room invitation and a changeable kitchen menu. */
@font-face {
  font-family: "DMSER";
  src: url("./fonts/dm-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMS";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f6f7ef;
  --ink: #163b49;
  --line: #a0b7ba;
  --focus: #7a341b;
  --cta: #174956;
  --cta-ink: #f6f7ef;
  --display: "DMSER", Georgia, serif;
  --body: "DMS", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 1.5rem;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: var(--heading-weight, 400);
  line-height: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
h1,
h2 {
  text-wrap: balance;
}
p {
  max-width: 65ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: none;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: -7rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(91%, 81rem);
  margin-inline: auto;
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
}
.site-head nav {
  display: flex;
  gap: clamp(0.7rem, 2.1vw, 2.4rem);
  align-items: center;
  flex-wrap: wrap;
}
.site-head nav a {
  text-decoration: none;
  font-size: 0.9rem;
}
.site-head nav a:hover {
  text-decoration: underline;
}
.wordmark {
  color: inherit;
  font-family: var(--display);
  text-decoration: none;
  line-height: 1;
}
.site-foot {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-foot p {
  font-size: 0.83rem;
}
.site-foot a {
  white-space: nowrap;
}
.jump,
.action {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.65rem 1.15rem;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid currentColor;
  color: var(--cta-ink);
  background: var(--cta);
  font-weight: 650;
}
.jump:hover,
.action:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
.detail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section {
  padding-block: clamp(3.4rem, 7vw, 7.5rem);
}
.section h2 {
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  margin-bottom: 1rem;
}
.section h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 1rem 0 1.2rem;
}
.choices button,
.stepper button {
  padding: 0.55rem 0.9rem;
  min-height: 2.75rem;
  border: 1px solid currentColor;
}
.choices button[aria-pressed="true"],
.stepper button:hover {
  background: var(--cta);
  color: var(--cta-ink);
}
form,
fieldset {
  min-width: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend,
label {
  font-weight: 650;
}
select {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border: 1px solid currentColor;
  background: var(--control, var(--paper));
  border-radius: 0;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.stepper button {
  min-width: 2.75rem;
  padding-inline: 0.5rem;
}
.stepper button:disabled {
  background: var(--paper);
  color: var(--line);
  border-color: var(--line);
  cursor: not-allowed;
}
.stepper output {
  font-variant-numeric: tabular-nums;
  min-width: 1.25rem;
  text-align: center;
}
.note {
  font-size: 0.82rem;
  line-height: 1.45;
}
.section p + p {
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .site-head {
    min-height: 4.25rem;
    gap: 0.8rem;
  }
  .site-head nav {
    gap: 0.8rem;
  }
  .site-head nav a {
    font-size: 0.825rem;
  }
  .site-foot .wrap {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --water: #c5dddd;
  --deep: #163b49;
  --white: #f6f7ef;
  --numeral: Georgia, serif;
}
.site-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 5.1rem;
}
.site-head .wordmark {
  grid-column: 2;
  font-size: 2.05rem;
  text-align: center;
  letter-spacing: -0.06em;
}
.site-head .town {
  grid-row: 1;
  grid-column: 1;
  font-size: 0.84rem;
}
.site-head nav {
  justify-self: end;
}
.hero {
  background: var(--water);
}
.hero-top {
  padding-block: clamp(2.2rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.65fr);
  align-items: end;
  gap: 6%;
}
.hero-top h1 {
  font-size: clamp(4.3rem, 8.8vw, 8.7rem);
  line-height: 0.94;
  letter-spacing: -0.063em;
}
.hero-intro {
  max-width: 33ch;
  padding-bottom: 0.25rem;
}
.hero-intro p {
  margin-bottom: 1.15rem;
}
.hero .jump {
  border: 0;
  border-bottom: 1px solid var(--deep);
  background: transparent;
  color: var(--deep);
  padding-inline: 0;
  min-height: 2.45rem;
}
.hero figure {
  position: relative;
  max-width: 100rem;
  margin-inline: auto;
}
.hero img {
  width: 100%;
  height: clamp(18rem, 27vw, 30rem);
  object-fit: cover;
}
.hero figcaption {
  position: absolute;
  right: clamp(1rem, 5%, 5rem);
  bottom: 1rem;
  background: var(--white);
  padding: 0.42rem 0.85rem;
  font-size: 0.84rem;
}
.landings {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 8%;
}
.landings h2,
.visit h2 {
  letter-spacing: -0.055em;
}
.sitting {
  border-top: 2px solid var(--deep);
}
.sitting .choices {
  margin-top: 0.9rem;
}
.sitting .choices button {
  border: 0;
  border-bottom: 1px solid var(--line);
}
.sitting .choices button[aria-pressed="true"] {
  background: var(--water);
  color: var(--deep);
  border-bottom: 2px solid var(--deep);
}
.course {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.course h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}
.course p {
  font-size: 0.94rem;
}
.course b {
  white-space: nowrap;
  font-weight: 450;
}
.visit {
  background: var(--water);
}
.visit .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: center;
}
.visit img {
  height: clamp(13rem, 22vw, 23rem);
}
.visit address {
  margin-top: 1rem;
  font-style: normal;
}
@media (max-width: 690px) {
  .site-head {
    grid-template-columns: 1fr auto;
  }
  .site-head .town {
    display: none;
  }
  .site-head .wordmark {
    grid-column: 1;
    justify-self: start;
  }
  .hero-top,
  .landings,
  .visit .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
  }
  .hero-top h1 {
    font-size: clamp(4rem, 13vw, 6.2rem);
  }
  .hero img {
    height: 52vw;
    min-height: 12rem;
  }
  .hero figcaption {
    font-size: 0.7rem;
    bottom: 0.65rem;
  }
}

button,
a {
  touch-action: manipulation;
}
button:enabled:active,
.jump:active {
  transform: translateY(1px);
}
.choices button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:where(img) {
  height: auto;
}

.chapter {
  padding-block: clamp(3.5rem, 7.5vw, 7.5rem);
}
.chapter .chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.chapter-intro h2 {
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 1.15rem;
}
.chapter-intro > p {
  max-width: 39ch;
}
.chapter-tool {
  min-width: 0;
}
.chapter-tool h3 {
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  margin-bottom: 0.6rem;
}
.chapter-tool h4 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
.chapter-tool .small {
  font-size: 0.88rem;
}
.chapter-tool button,
.chapter-tool input,
.chapter-tool select {
  max-width: 100%;
}
.chapter-tool .work-button {
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
.chapter-tool .work-button:hover {
  text-decoration: underline;
}
.chapter-tool .work-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chapter-tool .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 1rem;
}
.chapter-link {
  display: inline-block;
  font-size: 0.95rem;
  text-underline-offset: 0.3em;
  padding: 0.7rem 0.4rem;
  margin-left: 0.6rem;
}
.chapter-intro details {
  border-block-start: 1px solid currentColor;
  margin-top: 1.3rem;
  padding-block: 0.8rem;
}
.chapter-intro summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 2.3rem;
}
.chapter-intro details p {
  max-width: 40ch;
}
@media (max-width: 730px) {
  .chapter .chapter-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .chapter-link {
    margin-left: 0.15rem;
  }
  .chapter-intro h2 {
    max-width: 16ch;
  }
}

.quay-diary-chapter {
  background: var(--deep);
  color: var(--white);
}
.quay-diary-chapter .chapter-intro h2 {
  color: var(--water);
}
.diary-card {
  background: var(--white);
  color: var(--deep);
  border-top: 7px solid var(--water);
  padding: clamp(1rem, 2.5vw, 2.4rem);
}
.date-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.date-pair label {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}
.date-pair input,
.date-pair select {
  min-width: 0;
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid currentColor;
  padding: 0.55rem;
  background: var(--white);
  color: var(--deep);
  border-radius: 0;
}
.visit-verdict {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  margin-top: 1.35rem;
}
.diary-times {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.diary-times .work-button[aria-pressed="true"] {
  background: var(--water);
  border: 2px solid var(--deep);
}
.diary-card .actions {
  align-items: center;
}
.diary-card .actions .work-button {
  background: var(--deep);
  color: var(--white);
}
.diary-card [role="status"] {
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
.diary-card .small {
  max-width: 48ch;
}
@media (max-width: 390px) {
  .date-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-head nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Quayside service ledger */

.tide-sheet {
  background: #eef2e9;
  padding: clamp(1.5rem, 3vw, 3.6rem) 0 1rem;
  border-bottom: 1px solid var(--deep);
}
.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 0.81fr) minmax(5rem, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 4%;
  border-block: 3px double var(--deep);
  padding: 1.2rem 0;
}
.ledger-head h1 {
  font-size: clamp(3.6rem, 6.8vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}
.ledger-head > div > p {
  max-width: 29ch;
  margin-top: 0.8rem;
}

.service-ledger h2 {
  font-size: clamp(1.7rem, 3.2vw, 3.3rem);
  letter-spacing: -0.05em;
}
.weekday-rule,
.span-rule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--deep);
}
.weekday-rule {
  margin-top: 0.5rem;
}
.weekday-rule span {
  text-align: center;
  font-size: 0.82rem;
  border-left: 1px solid #96a7a7;
  padding: 0.2rem;
}
.span-rule {
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(14.285% - 1px),
    #b3c3c0 calc(14.285% - 1px) 14.285%
  );
}
.span-rule :is(button, .front-key) {
  min-height: 2.8rem;
  color: var(--deep);
  border: 1px solid var(--deep);
  background: #c4d5d0;
  text-align: center;
}
.lunch-row :is(button, .front-key) {
  grid-column: 3/8;
}
.supper-row :is(button, .front-key) {
  grid-column: 4/7;
}
.span-rule :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  background: var(--deep);
  color: var(--white);
}
.service-ledger > p,
.ledger-links {
  margin-top: 0.55rem;
  font-size: 0.9rem;
}
.ledger-links {
  display: flex;
  gap: 1.2rem;
}
.tide-sheet figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  margin-top: 0.85rem;
  background: var(--deep);
  color: var(--white);
}
.tide-sheet figure img {
  height: clamp(10rem, 18vw, 19rem);
  width: 100%;
  object-fit: cover;
}
.tide-sheet figcaption {
  writing-mode: vertical-rl;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.78rem;
}
@media (max-width: 720px) {
  .ledger-head {
    grid-template-columns: minmax(0, 1fr) minmax(3.5rem, 0.35fr);
    gap: 0.8rem;
  }
  .ledger-head h1 {
    font-size: clamp(3.2rem, 11vw, 5rem);
  }
  .ledger-head #front-panel {
    grid-column: 1/-1;
  }

  .service-ledger h2 {
    font-size: 1.7rem;
  }
  .tide-sheet figure img {
    height: 40vw;
  }
  .ledger-head > div > p {
    margin-top: 0.5rem;
  }
}

/* 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;
}
.span-rule .front-key {
  align-content: center;
}

.ledger-head {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 5vw, 5rem);
}
@media (max-width: 720px) {
  .ledger-head {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .ledger-head > #front-panel {
    grid-column: auto;
  }
  .ledger-head h1 br {
    display: none;
  }
}
