/* What every page shares. A block only some pages show keeps its styles in
   a file of its own under public/styles/, linked on those pages alone.
   Colours, fonts and shapes follow docs/design/brief.md. The site is always
   light. */

:root {
  color-scheme: light;
  --text: #171717;
  --muted: #555;
  --background: #fff;
  --surface: #f0f1ef;
  --lime: #c8f568;
  --orange: #ff5a1f;
  /* Thin dividers between the rows of a list. */
  --line: #cfd1cd;
  /* System fonts only: the security policy loads none. The monospace list is
     spelled out so every system gets a real code font, not its default. */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --page-width: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font:
    1.125rem / 1.5 var(--font-sans),
    sans-serif;
  color: var(--text);
  background: var(--background);
}

header,
main,
footer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

h1,
h2,
h3 {
  margin: 0 0 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Two to three lines, not the whole screen, and never below the 32px that
   keeps the plaque in it at the 24px white text on orange needs. */
h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  max-width: 40rem;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* An accent word in a headline: monospace, white on orange. White on this
   orange is legible only from 24px up, which the headline sizes keep. */
.plaque {
  padding: 0 0.2em;
  border-radius: 0.15em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  background: var(--orange);
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* The main button: lime with dark text and an arrow that moves on hover. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  background: var(--lime);
  text-decoration: none;
}

/* The arrow is decoration: a screen reader reads the label alone. */
.button::after {
  content: "↗" / "";
}

.button:hover::after {
  transform: translate(0.15em, -0.15em);
}

/* Movement only for those whose system has not turned it off. */
@media (prefers-reduced-motion: no-preference) {
  .button::after {
    transition: transform 0.15s;
  }
}

header {
  padding-block: 1.25rem;
}

/* The logo keeps its proportions and the clear space round the mark. */
.logo {
  display: inline-block;
  border-radius: 0.25rem;
}

.logo img {
  display: block;
  width: auto;
  height: 2rem;
}

footer {
  max-width: none;
  padding-inline: max(var(--gutter), (100% - var(--page-width)) / 2 + var(--gutter));
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--surface);
}

/* The booking link and the languages on the left, the copyright on the
   right; on a phone they wrap. */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-book {
  font-weight: 700;
  color: var(--text);
}

.copyright {
  margin: 0 0 0 auto;
}
