/* Traonda. One family, old-style numerals, survey line work. */

:root {
  --ground: #E8DFCC;
  --text: #1E3B31;
  --muted: #44626D;
  --line: #7FA6B8;
  --accent: #A1213A;
  --tint: #D5E2E2;
  --serif: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --s0: .75rem;
  --s1: .875rem;
  --s2: 1.125rem;
  --s3: 1.375rem;
  --s4: 1.75rem;
  --s5: 2.5rem;
  --s6: clamp(5rem, 14vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-variant-numeric: oldstyle-nums proportional-nums;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--s2);
  font-weight: 400;
  line-height: 1.7;
  padding: clamp(.875rem, 3vw, 2.5rem);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

svg { max-width: 100%; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color .25s ease, color .25s ease;
}
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

::selection { background: var(--tint); color: var(--text); }

p { margin: 0 0 1.1em; max-width: 62ch; }

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.005em;
}

.tr-nowrap { white-space: nowrap; }

.tr-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ground);
  border: 1px solid var(--text);
  padding: .5rem 1rem;
  font-size: var(--s1);
}
.tr-skip:focus { top: 1rem; }

/* Neatline with graticule ticks */

.tr-neatline {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2.25rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
}
.tr-neatline::before,
.tr-neatline::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.tr-neatline::before {
  left: -1px; right: -1px; top: -10px; bottom: -10px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 32px) left 0 top 5px / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 128px) left 0 top 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 32px) left 0 bottom 5px / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 128px) left 0 bottom 0 / 100% 10px no-repeat;
}
.tr-neatline::after {
  top: -1px; bottom: -1px; left: -10px; right: -10px;
  background:
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 32px) left 5px top 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 128px) left 0 top 0 / 10px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 32px) right 5px top 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 128px) right 0 top 0 / 10px 100% no-repeat;
}
.tr-neatline__mark {
  display: none;
  position: absolute;
  font-size: var(--s0);
  font-style: italic;
  color: var(--muted);
  line-height: 1;
  letter-spacing: .04em;
}
.tr-neatline__mark--tl { top: -1.9rem; left: 0; }
.tr-neatline__mark--br { bottom: -1.9rem; right: 0; }
@media (min-width: 1200px) {
  .tr-neatline__mark { display: block; }
}

/* Header and navigation */

.tr-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.tr-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.75rem;
}
.tr-nav a,
.tr-footer__nav a {
  display: inline-block;
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .05rem;
  transition: color .3s ease, transform .35s var(--ease), border-color .3s ease;
}
.tr-nav a:hover,
.tr-footer__nav a:hover {
  color: var(--text);
  transform: translateX(3px);
  border-bottom-color: var(--accent);
}
.tr-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--line);
}
.tr-header__mail {
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tr-header__mail:hover { color: var(--text); }

/* Phone menu. Native details and summary, so it opens and closes with the script off. */

.tr-header__mark {
  display: none;
  font-size: var(--s2);
  font-variant-caps: all-small-caps;
  letter-spacing: .2em;
  color: var(--text);
  text-decoration: none;
}
.tr-menu { display: none; }
.tr-menu__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
  color: var(--text);
  border: 1px solid var(--line);
  padding: .35rem .9rem .4rem;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color .25s ease;
}
.tr-menu__toggle::-webkit-details-marker { display: none; }
.tr-menu__toggle::marker { content: ""; }
.tr-menu__toggle::before {
  content: "";
  width: .9rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
  transition: box-shadow .25s ease;
}
.tr-menu__toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.tr-menu[open] .tr-menu__toggle { border-color: var(--text); }
.tr-menu[open] .tr-menu__toggle::before { box-shadow: 0 0 0 currentColor, 0 0 0 currentColor; }
.tr-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 20;
  background: var(--ground);
  border: 1px solid var(--line);
  padding: .5rem 1.25rem 1.1rem;
}
.tr-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.tr-menu__panel li { border-bottom: 1px solid var(--line); }
.tr-menu__panel a {
  display: block;
  padding: .7rem 0;
  font-size: var(--s2);
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  color: var(--muted);
  text-decoration: none;
}
.tr-menu__panel a:hover { color: var(--text); }
.tr-menu__panel a[aria-current="page"] { color: var(--text); font-style: italic; }
.tr-menu__mail { margin: .9rem 0 0; font-size: var(--s1); font-style: italic; }
.tr-menu__mail a { overflow-wrap: anywhere; }
.tr-menu[open] .tr-menu__panel { animation: tr-menu-in 240ms var(--ease) both; }
.tr-menu.is-closing .tr-menu__panel { animation: tr-menu-out 180ms var(--ease) both; }

@keyframes tr-menu-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes tr-menu-out {
  from { opacity: 1; clip-path: inset(0 0 0 0); }
  to { opacity: 0; clip-path: inset(0 0 100% 0); }
}

/* Type helpers */

.tr-title { font-size: var(--s5); margin-bottom: 1.5rem; }
.tr-head { font-size: var(--s4); margin-bottom: 1.5rem; }
.tr-subhead { font-size: var(--s3); margin-bottom: .35rem; }
.tr-lede { font-size: var(--s3); line-height: 1.5; max-width: 36ch; margin-bottom: 1.5rem; }
.tr-quiet { color: var(--muted); }
.tr-help { font-size: var(--s1); font-style: italic; color: var(--muted); margin-top: .75rem; }

.tr-label {
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .18em;
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
  margin: 0 0 .5rem;
}
.tr-label--h { font-weight: 400; margin-bottom: 1rem; }

.tr-caption {
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36ch;
}
.tr-caption--lead { font-size: var(--s2); max-width: 32ch; }

.tr-folio {
  display: block;
  font-style: italic;
  font-size: var(--s6);
  line-height: .78;
  color: var(--line);
  letter-spacing: -.02em;
  margin: 0 0 1.5rem;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
.tr-folio--sub { font-size: clamp(3rem, 7vw, 5rem); margin-bottom: 1rem; }

/* Spreads */

.tr-spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1.75rem;
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.tr-spread--first,
.tr-spread--plain { border-top: 0; }
.tr-spread--open { padding-top: clamp(2.5rem, 6vw, 5rem); }
.tr-spread--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.tr-spread--loose { padding-block: clamp(4rem, 10vw, 8.5rem); }

.tr-spread__side { grid-column: 1 / span 5; min-width: 0; }
.tr-spread__main { grid-column: 6 / span 7; min-width: 0; }
.tr-spread__full { grid-column: 1 / -1; min-width: 0; }
.tr-spread--flip .tr-spread__side { grid-column: 8 / span 5; grid-row: 1; }
.tr-spread--flip .tr-spread__main { grid-column: 1 / span 7; grid-row: 1; }
.tr-spread__main--low { align-self: end; }

@media (min-width: 861px) {
  .tr-spread__side { position: sticky; top: 2rem; align-self: start; }
  .tr-spread--nosticky .tr-spread__side { position: static; }
}

.tr-next {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin: 0;
  max-width: none;
}

/* Index hero */

.tr-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.tr-hero__text { grid-column: 1 / span 5; min-width: 0; }
.tr-hero__chart { grid-column: 6 / span 7; min-width: 0; margin: 0; }
.tr-hero__title {
  font-size: var(--s5);
  line-height: 1.12;
  max-width: 20ch;
  margin: 0 0 1.75rem;
}
.tr-hero__info {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin: 0 0 1.75rem;
}
.tr-hero__info .tr-open { margin-bottom: .4rem; }
.tr-hero__hours { font-size: var(--s1); margin: 0 0 .35rem; max-width: 40ch; }
.tr-hero__mail { font-size: var(--s1); font-style: italic; margin: 0; }
.tr-hero__mail a { overflow-wrap: anywhere; }
.tr-hero__offer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin: 0;
}
.tr-titleblock__legend .tr-hero__offer { margin: 0 0 1rem; }
.tr-hero__jump {
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  margin: 0;
}
.tr-hero__svg { border: 1px solid var(--line); }
.tr-hero__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.25rem;
  margin-top: .9rem;
}
.tr-hero__cap .tr-label { margin: 0; }
.tr-hero__cap .tr-caption { margin: 0; max-width: 60ch; }

/* Index title block and cartouche */

.tr-titleblock {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--gutter);
  row-gap: 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.tr-cartouche {
  grid-column: 6 / span 7;
  grid-row: 1;
  align-self: start;
  position: relative;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  min-width: 0;
}
.tr-cartouche::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.tr-cartouche.tr-cartouche--chart { padding: 10px; }
.tr-titleblock__legend {
  grid-column: 1 / span 5;
  grid-row: 1;
  align-self: start;
  min-width: 0;
}
.tr-titleblock__after {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: start;
  min-width: 0;
}
.tr-titleblock__chart {
  grid-column: 6 / span 7;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 0;
  margin: 0;
}
.tr-titleblock__cap { margin-top: 1rem; }
.tr-titleblock__cap p { margin: 0 0 .5rem; max-width: 56ch; }
.tr-titleblock .tr-hero__hours { font-size: var(--s2); }
.tr-masthead {
  font-size: var(--s2);
  font-variant-caps: all-small-caps;
  letter-spacing: .22em;
  line-height: 1.5;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.tr-cartouche__note {
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  margin: 1.25rem 0 0;
}
.tr-titleblock__legend .tr-open { margin-bottom: 1.75rem; }
.tr-titleblock__legend .tr-cartouche__note,
.tr-titleblock__after .tr-cartouche__note {
  font-size: var(--s2);
  max-width: 32ch;
  margin: 0 0 1.75rem;
}
.tr-cartouche .tr-cartouche__strip { display: none; margin: 0 0 1.25rem; position: relative; }

.tr-rose {
  display: block;
  width: 100%;
  max-width: 6rem;
  height: auto;
  margin-bottom: 1.5rem;
}
.tr-rose__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.tr-rose__ticks { fill: none; stroke: var(--line); stroke-width: 1; }
.tr-rose__needle { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-rose__half { fill: var(--text); }
.tr-rose__n { font-family: var(--serif); font-size: 11px; font-style: italic; fill: var(--muted); }

/* Open now marker */

.tr-open {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.tr-open__dot {
  display: none;
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.tr-open.is-open,
.tr-open.is-closed { color: var(--accent); font-style: normal; letter-spacing: .02em; }
.tr-open.is-open .tr-open__dot { display: block; background: currentColor; }
.tr-open.is-closed .tr-open__dot { display: block; }

/* Hours table */

.tr-table-wrap { max-width: 100%; overflow-x: auto; }

.tr-hours { width: 100%; border-collapse: collapse; }
.tr-hours caption {
  caption-side: top;
  text-align: left;
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .18em;
  color: var(--muted);
  padding-bottom: .4rem;
}
.tr-hours th,
.tr-hours td {
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
}
.tr-hours tr:last-child th,
.tr-hours tr:last-child td { border-bottom: 1px solid var(--line); }
.tr-hours th { padding-right: 1.25rem; width: 38%; min-width: 7rem; }
.tr-hours__slot { display: inline-block; margin-right: 1.25rem; white-space: nowrap; }
.tr-hours__slot:last-child { margin-right: 0; }
.tr-hours__slot--quiet { font-style: italic; color: var(--muted); font-size: var(--s1); }
.tr-hours__closed td { font-style: italic; color: var(--muted); }
.tr-hours__today {
  font-size: .9rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
  color: var(--accent);
  margin-left: .35rem;
  font-style: normal;
}
.tr-hours__where {
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  margin: .75rem 0 0;
}

@media (min-width: 861px) {
  .tr-hours th,
  .tr-hours td { padding-top: .4rem; padding-bottom: .4rem; }
}

.tr-place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .35rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: var(--s1);
}
.tr-place dt {
  font-size: .95rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  color: var(--muted);
}
.tr-place dd { margin: 0; min-width: 0; }
.tr-place a { overflow-wrap: anywhere; }

/* The chart */

.tr-chart { margin: 0; padding-top: 0; }
.tr-svg { display: block; width: 100%; height: auto; max-width: 100%; }
.tr-svg text { font-family: var(--serif); }
.tr-svg path, .tr-svg rect, .tr-svg circle, .tr-svg ellipse { vector-effect: non-scaling-stroke; }
.tr-chart .tr-chart__svg--phone { display: none; }

.tr-ch-shallow { fill: var(--tint); }
.tr-ch-land { fill: var(--ground); }
.tr-ch-grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-opacity: .35; }
.tr-ch-frame, .tr-ch-ticks { fill: none; stroke: var(--line); stroke-width: 1; }
.tr-ch-coast { fill: none; stroke: var(--text); stroke-width: 1; stroke-linejoin: round; }
.tr-ch-contour { fill: none; stroke: var(--line); stroke-width: 1; }
.tr-ch-track { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 10 7; }
.tr-ch-road { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 5; stroke-opacity: .7; }
.tr-ch-river { fill: none; stroke: var(--text); stroke-width: 1; stroke-opacity: .8; }
.tr-ch-blocks rect { fill: none; stroke: var(--muted); stroke-width: 1; }
.tr-ch-rock path { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-ch-rock circle { fill: var(--text); }
.tr-ch-sound { font-size: 15px; font-style: italic; fill: var(--muted); }
.tr-ch-sub { font-size: 10px; }
.tr-ch-clabel text, .tr-ch-break text, .tr-ch-place text, .tr-ch-tracklabel {
  paint-order: stroke;
  stroke: var(--ground);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.tr-ch-clabel text { font-size: 13px; font-style: italic; fill: var(--line); }
.tr-ch-break text { font-size: 16px; font-style: italic; fill: var(--text); }
.tr-ch-place text { font-size: 15px; letter-spacing: 3px; fill: var(--text); }
.tr-ch-tracklabel { font-size: 13px; font-style: italic; fill: var(--muted); letter-spacing: 1px; }
.tr-ch-note { font-size: 15px; font-style: italic; fill: var(--muted); }
.tr-ch-height circle { fill: var(--muted); }
.tr-ch-height text { font-size: 13px; font-style: italic; fill: var(--muted); }
.tr-ch-title text { font-size: 15px; font-style: italic; fill: var(--muted); }
.tr-ch-title .tr-ch-title__main { font-style: normal; letter-spacing: 3px; fill: var(--text); font-size: 14px; }
.tr-ch-north path, .tr-ch-scale path { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-ch-north text { font-size: 15px; font-style: italic; fill: var(--text); }
.tr-ch-scale text { font-size: 12px; font-style: italic; fill: var(--muted); }
.tr-ch-deg text { font-size: 13px; font-style: italic; fill: var(--muted); }
.tr-ch-town circle, .tr-ch-town path { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* Offers and figures on the index */

.tr-offer { padding: .25rem 0 0; }
.tr-offer--second {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.tr-figure {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: .25rem 0 1rem;
}
.tr-figure__label {
  font-size: .95rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  color: var(--muted);
}
.tr-figure__value {
  font-size: var(--s5);
  font-style: italic;
  line-height: 1;
  color: var(--muted);
}

.tr-more {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: .1rem;
  transition: border-color .3s ease;
}
.tr-more span { display: inline-block; transition: transform .4s var(--ease); }
.tr-more:hover { border-bottom-color: var(--accent); }
.tr-more:hover span { transform: translateX(5px); }

.tr-actions { margin-top: 2rem; }
.tr-button {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  padding: .7rem 1.35rem .75rem;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color .3s ease;
}
.tr-button span { display: inline-block; transition: transform .4s var(--ease); }
.tr-button:hover { border-bottom-color: var(--accent); }
.tr-button:hover span { transform: translateX(5px); }

/* Tables */

.tr-table { width: 100%; border-collapse: collapse; }
.tr-table th,
.tr-table td {
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
  padding: .9rem 1.25rem .9rem 0;
  border-bottom: 1px solid var(--line);
}
.tr-table th:last-child,
.tr-table td:last-child { padding-right: 0; }
.tr-table thead th {
  font-size: .95rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .18em;
  color: var(--muted);
  padding-top: 0;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--text);
}
.tr-table tbody th { min-width: 8rem; }
.tr-table__note {
  display: block;
  font-size: var(--s1);
  font-style: italic;
  color: var(--muted);
  margin-top: .15rem;
}
.tr-table__price { font-size: var(--s3); white-space: nowrap; }
.tr-table__time { font-size: var(--s1); font-style: italic; color: var(--muted); }
.tr-table__big { font-size: var(--s3); font-style: italic; white-space: nowrap; }
.tr-table--lead td:last-child { font-size: var(--s1); color: var(--muted); max-width: 22rem; }
.tr-table tbody tr[hidden] { display: none; }

.tr-price-table__group th {
  font-size: var(--s3);
  font-style: italic;
  color: var(--muted);
  padding-top: 1.75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.tr-price-table tbody tr:first-child th { padding-top: 1rem; }

/* Filters */

.tr-filter { display: none; flex-wrap: wrap; gap: .5rem; margin: 0 0 .5rem; }
.js .tr-filter { display: flex; }
.tr-filter button {
  font: inherit;
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .4rem 1rem .45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  transition: color .25s ease, border-color .25s ease, transform .35s var(--ease);
}
.tr-filter button::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background-color .25s ease;
}
.tr-filter button:hover { color: var(--text); border-color: var(--text); transform: translateX(2px); }
.tr-filter button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.tr-filter button[aria-pressed="true"]::before { background: currentColor; }
.tr-filter__status { font-size: var(--s0); font-style: italic; color: var(--muted); min-height: 1.4em; margin: 0 0 1rem; }

/* Facts list on the boards page */

.tr-facts { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.tr-facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.tr-facts dt {
  font-size: .95rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  color: var(--muted);
  padding-top: .1em;
}
.tr-facts dd { margin: 0; font-size: var(--s1); min-width: 0; }
.tr-facts__price dd { font-size: var(--s3); font-style: italic; line-height: 1.3; }

.tr-template { margin: 0 0 1.75rem; }
.tr-template .tr-template__phone { display: none; }
.tr-tp-outline { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-tp-stringer { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 12 7; }
.tr-tp-station { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.tr-tp-fin { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-tp-dim { fill: none; stroke: var(--muted); stroke-width: 1; }
.tr-tp-sound { font-size: 32px; font-style: italic; fill: var(--muted); }
.tr-tp-note { font-size: 26px; font-style: italic; fill: var(--muted); }

/* Lists */

.tr-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.tr-list li {
  position: relative;
  padding: .95rem 0 .95rem 2rem;
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.tr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 1rem;
  height: 1px;
  background: var(--line);
  transition: width .4s var(--ease), background-color .3s ease;
}
.tr-list__lead { font-style: italic; }
.tr-list__note { color: var(--muted); transition: color .3s ease; }
.tr-list li:hover { transform: translateX(6px); }
.tr-list li:hover::before { width: 1.4rem; background: var(--text); }
.tr-list li:hover .tr-list__note { color: var(--text); }

/* Survey line on the boards page */

.tr-survey { margin-top: 1rem; }
.tr-survey__line { margin-bottom: .75rem; }
.tr-survey__path { fill: none; stroke: var(--text); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tr-survey__st path { fill: var(--ground); stroke: var(--text); stroke-width: 1; }
.tr-survey__st circle { fill: var(--text); }
.tr-survey__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}
.tr-survey__list li { min-width: 0; position: relative; }
.tr-survey__num {
  display: block;
  font-size: var(--s5);
  font-style: italic;
  line-height: 1;
  color: var(--line);
  margin-bottom: .5rem;
}
.tr-survey__head { font-size: var(--s3); margin-bottom: .4rem; }
.tr-survey__list p { font-size: var(--s1); color: var(--muted); line-height: 1.6; margin: 0; }

/* Repairs aside and sketch */

.tr-aside p { font-size: var(--s1); font-style: italic; color: var(--muted); line-height: 1.65; max-width: 38ch; }
.tr-sketch { margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tr-sk-piece path:first-child { fill: none; stroke: var(--text); stroke-width: 1; stroke-linejoin: round; }
.tr-sk-stringer { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 6 5; }
.tr-sk-fin { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-sk-note { font-size: 18px; font-style: italic; fill: var(--muted); }

/* Workshop drawing */

.tr-bay { margin: 0; }
.tr-ws-wall { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-ws-line { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-ws-thin { fill: none; stroke: var(--muted); stroke-width: 1; }
.tr-ws-hidden { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.tr-ws-overhead { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 9 6; }
.tr-ws-light { fill: var(--tint); stroke: var(--text); stroke-width: 1; }
.tr-ws-rays { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.tr-ws-blank { fill: var(--tint); stroke: var(--text); stroke-width: 1; }
.tr-ws-stringer { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 12 7; }
.tr-ws-label text {
  font-size: 24px;
  font-style: italic;
  fill: var(--muted);
  paint-order: stroke;
  stroke: var(--ground);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.tr-ws-north path { fill: none; stroke: var(--text); stroke-width: 1; }
.tr-ws-north text { font-size: 15px; font-style: italic; fill: var(--text); }

.tr-longform { max-width: 64ch; hyphens: auto; }
.tr-signature {
  font-size: var(--s4);
  font-style: italic;
  margin: 2.5rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  display: inline-block;
  min-width: 10rem;
}

/* Contact */

.tr-mail {
  font-size: clamp(var(--s5), 4.5vw, 3.25rem);
  line-height: 1.2;
  margin: 0;
  max-width: none;
}
.tr-mail a { overflow-wrap: anywhere; text-underline-offset: .2em; }
.tr-mail__note { margin: 1rem 0 0; }
.tr-coords { font-size: var(--s3); font-style: italic; color: var(--muted); }
.tr-crop { margin: 0; border: 1px solid var(--line); }

/* Footer */

.tr-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--s1);
  color: var(--muted);
}
.tr-footer p { margin: 0; }
.tr-footer__hours { grid-column: 1 / span 5; min-width: 0; }
.tr-footer__place { grid-column: 6 / span 4; min-width: 0; }
.tr-footer__place a { overflow-wrap: anywhere; color: var(--text); }
.tr-footer__nav { grid-column: 10 / span 3; min-width: 0; }
.tr-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.tr-footer__copy { grid-column: 1 / -1; font-size: var(--s0); font-style: italic; padding-top: 1.25rem; }

/* Motion states. Every one is added by the script, never present by default.
   Nothing is ever clipped, masked or partly drawn: every drawing is complete at rest
   and complete while it enters. A drawing already on screen at load fades its line work
   up from faint to full; one below the fold is never armed and is simply present.
   Dimensions, names and labels are never hidden; only the decorative soundings fade. */

.tr-shutter-lines { clip-path: none; }
.tr-shutter.is-armed .tr-shutter-lines {
  transition: none;
  opacity: .25;
}
.tr-shutter.is-opening .tr-shutter-lines {
  transition: opacity 900ms var(--ease);
  opacity: 1;
}
.tr-shutter.is-open .tr-shutter-lines { opacity: 1; }
.tr-shutter .tr-soundings text { transition: opacity 500ms ease 300ms; }
.tr-shutter.is-armed .tr-soundings text { opacity: 0; transition: none; }

.tr-survey__path { transition: stroke-dashoffset 1400ms var(--ease); }
.tr-survey.is-armed .tr-survey__path { stroke-dashoffset: 1; }
.tr-survey__st,
.tr-survey__list li { transition: opacity .6s ease, transform .6s var(--ease); }
.tr-survey.is-armed .tr-survey__st { opacity: .4; }
.tr-survey.is-armed .tr-survey__list li { opacity: .4; transform: translateY(10px); }
.tr-survey__st:nth-of-type(1), .tr-survey__list li:nth-child(1) { transition-delay: 150ms; }
.tr-survey__st:nth-of-type(2), .tr-survey__list li:nth-child(2) { transition-delay: 420ms; }
.tr-survey__st:nth-of-type(3), .tr-survey__list li:nth-child(3) { transition-delay: 690ms; }
.tr-survey__st:nth-of-type(4), .tr-survey__list li:nth-child(4) { transition-delay: 960ms; }
.tr-survey__st:nth-of-type(5), .tr-survey__list li:nth-child(5) { transition-delay: 1230ms; }
.tr-survey.is-armed .tr-survey__st,
.tr-survey.is-armed .tr-survey__list li { transition-delay: 0ms; }

.tr-rise { transition: transform .8s var(--ease); }
.tr-rise.is-pending { transform: translateY(14px); }

/* Responsive */

@media (min-width: 861px) and (max-width: 1100px) {
  .tr-ch-break text { font-size: 20px; }
  .tr-ch-sound { font-size: 19px; }
  .tr-ch-deg text, .tr-ch-clabel text { font-size: 16px; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .tr-ws-label text { font-size: 30px; }
}

@media (max-width: 860px) {
  /* The five nav items and the address no longer fit on one line here,
     so the header collapses to the mark and the menu button. */
  .tr-header { align-items: center; flex-wrap: nowrap; }
  .tr-nav,
  .tr-header__mail { display: none; }
  .tr-header__mark { display: inline-block; }
  .tr-menu { display: block; }
  .tr-spread__side,
  .tr-spread__main,
  .tr-spread--flip .tr-spread__side,
  .tr-spread--flip .tr-spread__main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .tr-hero__text,
  .tr-hero__chart { grid-column: 1 / -1; }
  .tr-hero { row-gap: 1.75rem; }
  .tr-titleblock { grid-template-rows: none; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
  .tr-titleblock__legend { grid-column: 1 / -1; grid-row: 1; }
  .tr-cartouche { grid-column: 1 / -1; grid-row: 2; }
  .tr-titleblock__chart { grid-column: 1 / -1; grid-row: 2; }
  .tr-titleblock__after { grid-column: 1 / -1; grid-row: 3; }
  .tr-cartouche .tr-cartouche__strip { display: block; }
  .tr-titleblock__legend .tr-rose { display: none; }
  .tr-folio { margin-bottom: .75rem; }
  .tr-survey__line { display: none; }
  .tr-survey__list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    border-left: 1px solid var(--line);
    padding-left: 1.75rem;
  }
  .tr-survey__list li::before {
    content: "";
    position: absolute;
    left: calc(-1.75rem - 6px);
    top: .9rem;
    width: 11px;
    height: 11px;
    background: var(--ground);
    border: 1px solid var(--text);
    transform: rotate(45deg);
  }
  .tr-survey__num { font-size: var(--s4); }
  .tr-footer__hours,
  .tr-footer__place,
  .tr-footer__nav { grid-column: 1 / -1; }
  .tr-footer__nav ul { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; }
}

@media (max-width: 640px) {
  .tr-chart .tr-chart__svg { display: none; }
  .tr-chart .tr-chart__svg--phone { display: block; }
  .tr-titleblock__chart .tr-ch-break text { font-size: 19px; }
  .tr-titleblock__chart .tr-ch-place text { font-size: 18px; }
  .tr-titleblock__chart .tr-ch-place .tr-ch-place--foz { letter-spacing: 2px; }
  .tr-titleblock__chart .tr-ch-sound { font-size: 20px; }
  .tr-template .tr-template__wide { display: none; }
  .tr-template .tr-template__phone { display: block; }
  .tr-tp-sound { font-size: 60px; }
  .tr-tp-note { display: none; }
  .tr-tp-note.tr-tp-len { display: inline; font-size: 48px; }
  .tr-ws-label text { font-size: 34px; }
  .tr-hero__svg { aspect-ratio: 1 / 1; }
  .tr-hero__chart .tr-ch-break text { font-size: 19px; }
  .tr-hero__chart .tr-ch-place text { font-size: 18px; }
  .tr-hero__chart .tr-ch-sound { font-size: 20px; }
  .tr-hero__chart .tr-ch-clabel text,
  .tr-hero__chart .tr-ch-height text { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .tr-title { font-size: 2.125rem; }
  .tr-hero__title { font-size: 2.125rem; }
  .tr-head { font-size: 1.5rem; }
  .tr-lede { font-size: 1.25rem; }
  .tr-cartouche { padding: 1.25rem 1rem; }
  .tr-cartouche.tr-cartouche--chart { padding: 8px; }
  .tr-hours th { width: auto; min-width: 0; padding-right: .75rem; }
  .tr-hours__slot { margin-right: .75rem; }
  .tr-table th, .tr-table td { padding-right: .75rem; }
  .tr-table tbody th { min-width: 0; }
  .tr-table__price, .tr-table__big { font-size: var(--s2); }
  .tr-facts div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .tr-mail { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tr-shutter-lines,
  .tr-shutter.is-armed .tr-shutter-lines,
  .tr-shutter.is-opening .tr-shutter-lines { clip-path: none !important; opacity: 1 !important; }
  .tr-shutter.is-armed .tr-soundings text { opacity: 1 !important; }
  .tr-rise.is-pending { transform: none !important; }
  .tr-survey.is-armed .tr-survey__path { stroke-dashoffset: 0 !important; }
  .tr-survey.is-armed .tr-survey__st,
  .tr-survey.is-armed .tr-survey__list li { opacity: 1 !important; transform: none !important; }
  .tr-list li:hover, .tr-nav a:hover, .tr-footer__nav a:hover, .tr-filter button:hover { transform: none; }
}