/* ---------------------------------------------------------
   WORKING FROM HOME — one stylesheet.
   White, system monospace, EB Garamond for titles,
   one blue accent. No JavaScript anywhere.
   --------------------------------------------------------- */

:root {
  --ink:    #111111;
  --muted:  #8a8a8a;
  --line:   #dcdcdc;
  --paper:  #ffffff;
  --accent: #1832d4;        /* the single accent colour */

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", "DejaVu Sans Mono", monospace;

  /* display serif, used for titles only.
     To try another: change the name here AND the Google Fonts
     <link> in all four pages. "Bodoni Moda" is a sharper Didone;
     "Cormorant Garamond" is more delicate. */
  --serif: "EB Garamond", "Garamond", "Hoefler Text", Georgia, "Times New Roman", serif;

  --col: 46rem;             /* width of the content column on sub-pages */
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;      /* 13px — small on purpose */
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

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

/* ---------------------------------------------------------
   TOP BAR — carries the name, hours, contact and navigation.
   Identical on every page.
   --------------------------------------------------------- */
.topbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 0.75rem clamp(0.9rem, 2vw, 1.5rem);
  font-size: 0.75rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

.topbar div > * { display: block; margin: 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.topbar .muted { color: var(--muted); }
.topbar .last { text-align: right; }
.topbar [aria-current="page"] { color: var(--accent); }

/* the wordmark, and the logo image once you add one */
.topbar .wordmark { font-weight: 700; }
.topbar .wordmark:hover { text-decoration: none; color: var(--accent); }
.topbar .logo {
  max-height: 1.75rem;      /* raise or lower to resize the logo */
  width: auto;
  margin-bottom: 0.25rem;
}

@media (max-width: 60rem) {
  .topbar { grid-template-columns: repeat(2, 1fr); }
  .topbar .last { text-align: left; }
}

/* ---------------------------------------------------------
   THE STAGE — landing page only. Title and image, centred.
   --------------------------------------------------------- */
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 8vh, 6rem) clamp(1.25rem, 4vw, 2rem);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.stage__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 10vw, 6.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 0;
}
.stage__title em {
  font-style: italic;
  display: block;      /* its own line, but the same size as the title */
}
.stage__title a { text-decoration: none; }
.stage__title a:hover { color: var(--accent); }


/* image kept deliberately small so the title carries the page */
.stage__figure {
  display: block;
  width: min(100%, 24rem);
  text-decoration: none;
}
.stage__figure img { width: 100%; }
.stage__figure:hover .placeholder { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------
   CONTENT — sub-pages. Centred column, headings centred,
   long prose left-aligned so it stays readable.
   --------------------------------------------------------- */
.content {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 3rem;
  text-align: center;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.page-title em {
  font-style: italic;
  display: block;      /* its own line, but the same size as the title */
}


h2, h3 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.75; margin: 0 0 1rem; }

p { margin: 0 0 1.4em; }

/* long prose: centred column, text itself left-aligned */
.prose { text-align: left; max-width: 60ch; margin-inline: auto; }
.prose > :last-child { margin-bottom: 0; }

.lead { max-width: 52ch; margin-inline: auto; }

.muted { color: var(--muted); }
.accent { color: var(--accent); }

section + section { margin-top: clamp(2.5rem, 6vw, 4rem); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: clamp(2.5rem, 6vw, 4rem) 0; }

/* ---------------------------------------------------------
   Figures
   --------------------------------------------------------- */
figure { margin: 0; }
figure img { width: 100%; }

/* upright photographs, kept modest rather than full column width */
.figure--portrait { width: min(100%, 26rem); margin-inline: auto; }

/* artworks sized to the same measure as the body text they sit under */
.figure--text-width { width: min(100%, 60ch); margin-inline: auto; }
.figure--text-width figcaption { text-align: left; }
figcaption { color: var(--muted); margin-top: 0.7rem; }

/* placeholder shown until a real photograph is dropped in */
.placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.figures { display: grid; gap: 1.75rem; }
@media (min-width: 44rem) {
  .figures--two { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   Key / value rows (dates, opening times, past projects)
   --------------------------------------------------------- */
.rows { margin: 0 auto; max-width: 60ch; text-align: left; }
.rows > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; }

@media (max-width: 34rem) {
  .rows > div { grid-template-columns: 1fr; }
}

/* plain itemised list */
.items { list-style: none; margin: 0 auto; padding: 0; max-width: 60ch; text-align: left; }
.items li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.items li:last-child { border-bottom: 1px solid var(--line); }
.items .meta { color: var(--muted); }

/* ---------------------------------------------------------
   Footer — one quiet line at the bottom
   --------------------------------------------------------- */
.foot {
  flex-shrink: 0;
  padding: 1.5rem clamp(0.9rem, 2vw, 1.5rem) 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.foot p { margin: 0; }

/* the brush-calligraphy mark at the bottom of every page */
.foot__mark {
  max-height: 1.5rem;       /* raise or lower to resize the mark */
  width: auto;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

@media print {
  .topbar { display: none; }
}
