/* The Danery: the public pages (holding page, privacy, not found).
   The pub's identity is still being drawn up with Whippet, so these pages borrow
   Danery Meadow Park's free stand-in faces and a plain warm palette.
   Swap the tokens below when the identity arrives; the back office's admin.css
   uses the same tokens. */

@font-face {
  font-family: "TD Display";
  src: url("/assets/fonts/display-roboto-serif-wide.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TD Body";
  src: url("/assets/fonts/body-montserrat.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --ink: #22301f;
  --ink-soft: #4a5444;
  --honey: #b5843d;       /* Cotswold stone, for rules and ornaments only */
  --honey-deep: #7d5824;  /* honey dark enough for text */
  --line: rgb(34 48 31 / 0.18);

  --font-display: "TD Display", "Roboto Serif", Georgia, serif;
  --font-body: "TD Body", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --size-caption: 0.8125rem;
  --size-small: 0.9375rem;
  --size-body: 1.0625rem;
  --size-lede: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --size-wordmark: clamp(3rem, 1.8rem + 4.6vw, 5.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --text: 34rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

main {
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) var(--gutter) clamp(2.5rem, 2rem + 4vw, 6rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-wordmark);
  line-height: 1;
  letter-spacing: -0.01em;
}

.parts {
  margin: 1.25rem 0 0;
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.parts span + span::before {
  content: "·";
  margin: 0 0.6em;
  color: var(--honey);
}

/* On a phone: the kitchen and pub on its own line, the other two beneath */
@media (max-width: 30rem) {
  .parts span:first-child { display: block; }
  .parts span:nth-child(2)::before { content: none; }
}

/* The architect's watercolours are drawn on white paper; multiply lets the
   page colour show through the white, so they sit on the page like a print.
   Nothing between the image and the page may start its own stacking context
   (no transform, opacity or filter on the figure), or the white comes back. */
.visual {
  max-width: 72rem;
  margin: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) auto 0;
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* The road view is cut off hard at both sides; fade the edges into the page */
.visual--road img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.visual--garden { max-width: 60rem; }

/* On a phone the drawings run edge to edge */
@media (max-width: 40rem) {
  .visual { margin-inline: calc(-1 * var(--gutter)); }
}

.ornament {
  display: block;
  width: 7.5rem;
  height: 0.75rem;
  margin: clamp(2.25rem, 1.75rem + 2vw, 3.5rem) auto;
  color: var(--honey);
}

h1, h2 { text-wrap: balance; }

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-lede);
  line-height: 1.3;
}

.status {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.4rem 0.95rem;
  border-radius: 1.4rem;
  background: var(--paper-2);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: 1.45;
}

.story {
  max-width: var(--text);
  margin: 1.75rem auto 0;
  text-align: left;
}

.story p { margin: 0; }

/* A thin double rule, like the border of a painted sign */
.sign {
  max-width: 40rem;
  margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) auto 0;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.25rem) clamp(1.25rem, 0.5rem + 4vw, 3.5rem);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -8px;
}

.sign h2 { margin-bottom: 1.25rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--size-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}

.button:hover { background: #2f4129; transform: translateY(-1px); }

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-small);
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.contact a:hover span { text-decoration: underline; }

.contact svg { flex: none; color: var(--honey-deep); }

address {
  margin-top: 1.25rem;
  font-style: normal;
  font-size: var(--size-small);
  color: var(--ink-soft);
}

footer {
  padding: 0 var(--gutter) 2rem;
  text-align: center;
  font-size: var(--size-caption);
  line-height: 1.6;
  color: var(--ink-soft);
}

footer p { margin: 0 auto; max-width: 48rem; }

@media (prefers-reduced-motion: no-preference) {
  .intro > *, .visual--road img {
    animation: rise 0.9s var(--ease-out) both;
  }
  .intro > :nth-child(2) { animation-delay: 0.06s; }
  .intro > :nth-child(3) { animation-delay: 0.12s; }
  .visual--road img { animation-delay: 0.2s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(0.6rem); }
  }
}

/* ------------------------------------------------------------ sign-up form */

.signup-intro {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  font-size: var(--size-small);
  color: var(--ink-soft);
}

.signup {
  display: grid;
  gap: 0.9rem 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 36rem) {
  .signup { grid-template-columns: 2fr 3fr; }
  .signup > .button, .signup > .signup__error { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field .optional { font-weight: 400; color: var(--ink-soft); }

.field input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgb(34 48 31 / 0.32);
  border-radius: 3px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;             /* 16px, so phones don't zoom in on the box */
  line-height: 1.3;
}

.field input:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 1px;
}

button.button {
  justify-content: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.button:disabled { opacity: 0.7; cursor: progress; transform: none; }

button.button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 3px;
}

.signup__error {
  margin: 0;
  color: #8c2f1d;
  font-size: var(--size-small);
}

.signup__error:focus { outline: none; }

.signup__done {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  background: var(--paper-2);
  font-weight: 500;
}

.signup__done:focus { outline: none; }

.signup__small {
  margin: 1rem 0 0;
  font-size: var(--size-caption);
  color: var(--ink-soft);
}

/* A box for spam robots: off the screen, never seen or reached by people. */
.trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------ privacy page */

.prose {
  max-width: 38rem;
  margin: 0 auto;
  text-align: left;
}

.prose h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); text-align: center; }
.prose .eyebrow { text-align: center; }
.prose h2 { margin: 2.25rem 0 0.6rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }

.back {
  display: inline-block;
  margin-top: 2rem;
  font-size: var(--size-small);
}

/* ------------------------------------------- confirm and unsubscribe pages */

.list-link { text-align: center; }
.list-link [data-ask] p { margin: 0 0 1.5rem; }
.list-link .signup__done, .list-link .signup__error { margin-inline: auto; }
