/* Wynalto. site.css
   Sash window repair in Bath. One transitional serif throughout, bands in four tones
   of honey coloured Bath stone, forest green text and a single plum seal. */

:root {
  --ground: #E4D1A3;
  --pale: #EFE3C4;
  --mid: #D9C28E;
  --deep-tone: #CDB277;
  --forest: #1E3A2B;
  --forest-soft: #2F4A3B;
  --on-forest: #F1E7CE;
  --plum: #6B2D5C;
  --line: #B89D63;
  --serif: Baskerville, "Baskerville Old Face", "Libre Baskerville", "Hoefler Text", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
em { font-style: italic; }
button, summary { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; }
p, li, td, th, h1, h2, h3 { min-width: 0; overflow-wrap: break-word; }

.wy-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 0.9rem;
  background: var(--pale);
  border: 1px solid var(--forest);
}
.wy-skip:focus { top: 0.75rem; }

.wy-wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: max(1rem, 4vw);
}

.wy-chev { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.05em; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Type ---------- */

.wy-kicker { font-style: italic; color: var(--forest-soft); font-size: 1.05rem; letter-spacing: 0.01em; }
.wy-statement {
  font-size: clamp(2.35rem, 1.2rem + 4.4vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 15ch;
}
.wy-title { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem); line-height: 1.06; letter-spacing: -0.01em; max-width: 18ch; }
.wy-h2 { font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.005em; }
.wy-h3 { font-size: 1.35rem; line-height: 1.2; font-style: italic; }
.wy-lead { font-size: 1.25rem; line-height: 1.5; max-width: 40ch; }
.wy-meta { font-size: 0.95rem; color: var(--forest-soft); font-style: italic; }
.wy-prose > * + * { margin-top: 0.9em; }
.wy-prose p { max-width: 66ch; }
.wy-more { font-style: italic; white-space: nowrap; }
.wy-more .wy-chev { margin-left: 0.2em; }

/* ---------- Notice band ---------- */

.wy-notice { background: var(--forest); color: var(--on-forest); font-size: 0.98rem; }
.wy-notice a { text-decoration-color: var(--on-forest); }
.wy-notice__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 2rem;
  padding-block: 0.65rem;
}
.wy-notice__lead { font-style: italic; }
.wy-notice__list { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.wy-notice b { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Header ---------- */

.wy-header { position: relative; z-index: 20; }
.wy-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem;
}
.wy-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.wy-seal { width: 1.6rem; height: 1.6rem; flex: none; }
.wy-nav ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.9rem; }
.wy-nav a { font-style: italic; font-size: 1.08rem; text-decoration-color: transparent; }
.wy-nav a:hover, .wy-nav a[aria-current="page"] { text-decoration-color: var(--plum); }

.wy-menu { display: none; position: relative; }
.wy-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--forest);
  font-style: italic;
  cursor: pointer;
  list-style: none;
}
.wy-menu__toggle::-webkit-details-marker { display: none; }
.wy-menu__toggle .wy-chev { transform: rotate(90deg); transition: transform 0.2s var(--ease); }
.wy-menu[open] .wy-menu__toggle .wy-chev { transform: rotate(-90deg); }
.wy-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 14rem;
  padding: 0.6rem 1.1rem;
  background: var(--pale);
  border: 1px solid var(--forest);
}
.wy-menu__panel li + li { border-top: 1px solid var(--line); }
.wy-menu__panel a { display: block; padding: 0.6rem 0; font-style: italic; font-size: 1.1rem; text-decoration-color: transparent; }
.wy-menu__panel a[aria-current="page"] { text-decoration-color: var(--plum); }
.wy-js .wy-menu__panel { opacity: 0; transform: translateY(-0.4rem); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.wy-js .wy-menu.is-open .wy-menu__panel { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.wy-hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.wy-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.wy-hero__text > * + * { margin-top: 1.25rem; }
.wy-hero__text .wy-statement { margin-top: 0.9rem; }
.wy-hero__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 1.1rem; }
.wy-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.wy-figures li { display: flex; flex-direction: column; }
.wy-figures b { font-weight: 400; font-size: 2.4rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.wy-figures span { font-style: italic; font-size: 0.95rem; color: var(--forest-soft); }
.wy-index li { border-top: 1px solid var(--line); }
.wy-index li:last-child { border-bottom: 1px solid var(--line); }
.wy-index a { display: flex; gap: 0.9rem; align-items: baseline; padding-block: 0.45rem; text-decoration-color: transparent; }
.wy-index a:hover { text-decoration-color: var(--plum); }
.wy-index i { min-width: 2.6rem; color: var(--forest-soft); font-variant-numeric: lining-nums tabular-nums; }
.wy-hero__aside .wy-meta { margin-bottom: 0.5rem; }
/* The homepage terrace: statement across the top, the drawing full width beneath. */
.wy-hero__side > * + * { margin-top: 1rem; }
.wy-hero__side { font-size: 1.15rem; max-width: 34rem; }
.wy-terrace__crop { overflow: hidden; }
.wy-terrace__crop svg { width: 100%; }
.wy-terrace__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2.5rem; margin-top: 1rem; align-items: start; }
.wy-terrace__foot .wy-figures { max-width: none; }
.wy-fig figcaption { margin-top: 0.75rem; font-style: italic; font-size: 0.95rem; color: var(--forest-soft); max-width: 36ch; }

/* ---------- Bands ---------- */

.wy-band { padding-block: clamp(3rem, 7vw, 6rem); }
.wy-band--pale { background: var(--pale); }
.wy-band--mid { background: var(--mid); }
.wy-band--deep { background: var(--deep-tone); }
.wy-band--forest { background: var(--forest); color: var(--on-forest); }
.wy-band--forest a { text-decoration-color: var(--on-forest); }
.wy-band--forest .wy-meta, .wy-band--forest .wy-kicker { color: var(--on-forest); }
.wy-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; }
.wy-num {
  font-style: italic;
  font-size: clamp(4.25rem, 2.6rem + 7vw, 10.5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}
.wy-band__body > * + * { margin-top: 1rem; }
.wy-band__body > .wy-h2 + * { margin-top: 0.8rem; }

.wy-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 2.5rem; }
.wy-cols > * > * + * { margin-top: 0.6rem; }
.wy-cols--rule > * { padding-top: 1rem; border-top: 1px solid var(--line); }
.wy-band--forest .wy-cols--rule > * { border-top-color: var(--forest-soft); }

.wy-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1.5rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.wy-rows li:first-child { border-top: 1px solid var(--line); }
.wy-rows li > :last-child { margin-left: auto; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.wy-rows em { color: var(--forest-soft); }

.wy-list li { position: relative; padding: 0.55rem 0 0.55rem 1.4rem; border-bottom: 1px solid var(--line); }
.wy-list li:first-child { border-top: 1px solid var(--line); }
.wy-list li::before { content: ""; position: absolute; left: 0.1rem; top: 1.2rem; width: 0.55rem; height: 1px; background: currentColor; }
.wy-band--forest .wy-list li { border-color: var(--forest-soft); }

/* The owner's note and its seal. */
.wy-note p { max-width: 62ch; }
.wy-sign { display: flex; align-items: center; gap: 0.75rem; font-style: italic; font-size: 1.2rem; }
.wy-sign .wy-seal { width: 2.2rem; height: 2.2rem; }

/* ---------- Price table ---------- */

.wy-table { width: 100%; border-collapse: collapse; }
.wy-table caption { text-align: left; font-style: italic; color: var(--forest-soft); padding-bottom: 0.75rem; }
.wy-table th, .wy-table td { text-align: left; vertical-align: baseline; padding: 0.85rem 1.25rem 0.85rem 0; border-top: 1px solid var(--line); }
.wy-table thead th { font-style: italic; font-weight: 400; font-size: 0.95rem; color: var(--forest-soft); border-top: 0; padding-top: 0; }
.wy-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.wy-table tbody th { font-weight: 400; font-size: 1.15rem; width: 26%; }
.wy-table .wy-price { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; font-size: 1.15rem; }
.wy-table thead .wy-price { font-size: 0.95rem; }

/* ---------- Next block ---------- */

.wy-next { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.wy-next__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; align-items: baseline; }
.wy-next__links li { border-top: 1px solid var(--line); }
.wy-next__links li:last-child { border-bottom: 1px solid var(--line); }
.wy-next__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.8rem;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  font-style: italic;
  text-decoration-color: transparent;
}
.wy-next__links a:hover { text-decoration-color: var(--plum); }
.wy-next__links .wy-chev { flex: none; color: var(--plum); }

/* ---------- Contact ---------- */

.wy-email {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.5rem, 0.5rem + 5.4vw, 4rem);
  line-height: 1.1;
  font-style: italic;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.wy-footer { background: var(--forest); color: var(--on-forest); padding-block: 3rem 2rem; font-size: 1rem; }
.wy-footer a { text-decoration-color: var(--on-forest); }
.wy-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.wy-footer__name { display: inline-flex; align-items: center; gap: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; }
.wy-footer__about { margin-top: 0.9rem; max-width: 36ch; }
.wy-footer__head { font-style: italic; margin-bottom: 0.5rem; }
.wy-footer__list li + li { margin-top: 0.3rem; }
.wy-footer__list a { text-decoration-color: transparent; }
.wy-footer__list a:hover, .wy-footer__list a[aria-current="page"] { text-decoration-color: var(--on-forest); }
.wy-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--forest-soft);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- Wider screens ---------- */

@media (min-width: 36rem) {
  .wy-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .wy-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wy-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 62rem) {
  .wy-hero--home { min-height: min(78vh, 50rem); display: flex; align-items: center; }
  .wy-hero--home > .wy-wrap { width: 100%; }
  .wy-hero__aside { grid-column: 9 / span 4; align-self: end; }
  .wy-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .wy-hero__text { grid-column: 1 / span 7; }
  .wy-hero__fig { grid-column: 8 / span 5; }
  .wy-hero__grid--plain .wy-hero__text { grid-column: 1 / span 7; }
  .wy-hero__grid--terrace { row-gap: 2rem; align-items: end; }
  .wy-hero__grid--terrace .wy-hero__text { grid-column: 1 / span 8; }
  .wy-hero__grid--terrace .wy-statement { font-size: clamp(2.35rem, 1rem + 3.9vw, 4.4rem); max-width: 18ch; }
  .wy-hero__grid--terrace .wy-hero__side { grid-column: 9 / span 4; }
  .wy-hero__grid--terrace .wy-hero__fig { grid-column: 1 / -1; }
  .wy-terrace__foot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .wy-band__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .wy-band__grid > .wy-num { grid-column: 1 / span 3; }
  .wy-band__grid > .wy-band__body { grid-column: 5 / span 8; }
  .wy-band--flip .wy-band__grid > .wy-num { grid-column: 10 / span 3; grid-row: 1; text-align: right; }
  .wy-band--flip .wy-band__grid > .wy-band__body { grid-column: 1 / span 8; grid-row: 1; }
  .wy-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wy-next__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .wy-next__grid > :first-child { grid-column: 1 / span 4; }
  .wy-next__grid > :last-child { grid-column: 5 / span 8; }
}

@media (max-width: 47.99rem) {
  .wy-nav { display: none; }
  .wy-menu { display: block; }
  .wy-header__row { padding-block: 1rem; }
  .wy-notice__row { gap: 0.15rem 1.25rem; }
  .wy-notice__list { flex-direction: column; gap: 0.1rem; }
  /* On a phone the terrace is cropped to the opened middle window, so its labels stay readable. */
  .wy-terrace__crop svg { width: 250%; max-width: none; margin-left: -75%; }

  /* The price table becomes one block per row: name and price on a line, what it covers below. */
  .wy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wy-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
  .wy-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .wy-table tbody th, .wy-table tbody td { border: 0; padding: 0; width: auto; }
  .wy-table tbody tr:last-child > * { border-bottom: 0; }
  .wy-table tbody .wy-price { grid-column: 2; grid-row: 1; }
  .wy-table tbody td:not(.wy-price) { grid-column: 1 / -1; font-size: 0.98rem; color: var(--forest-soft); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- Print ---------- */

@media print {
  .wy-notice, .wy-menu, .wy-nav, .wy-skip { display: none; }
  body, .wy-band, .wy-footer { background: #fff; color: #000; }
}
