:root {
  --butter: #f9ec55;
  --ink: #000;
  --coral: #d9553c;
  --paper: #fff;
  --oven: #1e2a44;
  --quiet: #4a4f5c;
  --line: #d8d9dd;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Abhaya Libre", "Noto Serif Sinhala", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
}

a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--oven); outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; margin: 0; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

/* Header: same on every page, on the logo's own yellow. */
.site-head { background: var(--butter); }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}
.brand img { display: block; width: auto; height: 3rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1.125rem; }

/* Home hero: the receipt hangs off the yellow into the page below. */
.hero { background: var(--butter); padding-block: 1.5rem 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.hero-text { padding-bottom: 4rem; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.75rem); letter-spacing: -.015em; }
.hero-text p { max-width: 32rem; margin: 1.5rem 0 0; font-size: 1.5rem; line-height: 1.4; }
.hero-text .soon { font-size: 1.25rem; font-weight: 700; }

.receipt {
  padding: 1.75rem 1.5rem 2.25rem;
  background: var(--paper);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .95rem;
  line-height: 1.5;
  --tooth: .6rem;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--tooth)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--tooth)) 100%;
}
.receipt-wrap {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: -3.5rem;
  filter: drop-shadow(0 .5rem .75rem rgb(0 0 0 / .18));
}
.receipt h2 { font: inherit; font-weight: 700; text-align: center; }
.receipt .sub { margin: 0 0 1rem; text-align: center; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th { font-weight: 400; text-align: right; }
.receipt th:first-child, .receipt td:first-child { text-align: left; }
.receipt td { text-align: right; padding-block: .1rem; }
.receipt thead th, .receipt .rule td { border-bottom: 1px dashed var(--ink); padding-bottom: .35rem; }
.receipt .gap td { padding-top: .75rem; }
.receipt .total td { font-weight: 700; font-size: 1.15rem; border-top: 1px dashed var(--ink); padding-top: .35rem; }
.receipt .note { margin: 1rem 0 0; text-align: center; font-size: .85rem; }

/* Home sections */
.section { padding-block: 4.5rem 1rem; }
.section:first-of-type { padding-top: 6rem; }
.section > .wrap > h2 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin-bottom: 2rem; }

.day { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.day li { display: grid; grid-template-columns: 11rem minmax(0, 38rem); gap: .25rem 2rem; }
.day h3 { font-size: 1.75rem; }
.day p { margin: 0; }

.prices { width: 100%; max-width: 38rem; border-collapse: collapse; font-size: 1.375rem; }
.prices th { text-align: left; font-weight: 400; }
.prices td { text-align: right; font-weight: 800; }
.prices td:last-child { width: 7rem; font-weight: 400; font-size: 1.125rem; color: var(--quiet); }
.prices th, .prices td { padding-block: .6rem; border-bottom: 1px solid var(--line); }
.small { max-width: 38rem; color: var(--quiet); font-size: 1.125rem; }

.lang-switch { margin: 0 0 2rem; font-weight: 700; }

/* Legal and support pages */
.page-title { background: var(--butter); padding-block: 1.5rem 3rem; }
.page-title h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.page-title p { margin: .5rem 0 0; }
.doc { max-width: 42rem; padding-block: 3rem 2rem; }
.doc h2 { font-size: 1.75rem; margin: 2.5rem 0 .5rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin: 0 0 1rem; }
.doc li { margin-bottom: .4rem; }
.doc-si { border-top: 6px solid var(--butter); }
.doc-si h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1.5rem; }

.site-foot { margin-top: 4rem; background: var(--oven); color: #fff; padding-block: 2rem; font-size: 1.125rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-foot :focus-visible { outline-color: var(--butter); }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-text { padding-bottom: 2.5rem; }
  .receipt-wrap { max-width: 26rem; }
  .day li { grid-template-columns: minmax(0, 1fr); }
}
