@font-face { font-family: Cormorant; font-weight: 300; font-display: swap; src: url(../assets/fonts/cormorant-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Cormorant; font-weight: 400; font-display: swap; src: url(../assets/fonts/cormorant-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Cormorant; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Cormorant; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Cormorant; font-weight: 400; font-style: italic; font-display: swap; src: url(../assets/fonts/cormorant-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 500; font-style: italic; font-display: swap; src: url(../assets/fonts/playfair-display-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 400; font-display: swap; src: url(../assets/fonts/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 500; font-display: swap; src: url(../assets/fonts/jost-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 600; font-display: swap; src: url(../assets/fonts/jost-latin-600-normal.woff2) format('woff2'); }

:root {
  /* The client's palette (review round 2). Colour on the public site comes from these five, or a tint of the brown. */
  --brown: #513229;  /* Mother Earth */
  --cream: #f4f1e2;  /* Lucky Dice */
  --blue: #d8ebf9;   /* Something Blue */
  --yellow: #fce6b7; /* The Bay */
  --olive: #d7d4b1;  /* Walking Vinnie */
  --ivory: var(--cream);
  --stone: var(--olive);
  --sage: var(--blue);
  --white: #fff;
  --ink: var(--brown);
  --accent: var(--brown);
  --soft: #6a4f45;
  --muted: #7a625a;
  --hair: #ddd8c4;
  --rule: var(--brown);
  --blank: #dedbc9;
  /* Editor only: a field that needs fixing. Not used on the public site. */
  --error: #a3271f;
  --serif: Cormorant, 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif;
  --sans: Jost, 'Century Gothic', 'Segoe UI', sans-serif;
  --mast: 'Playfair Display', Georgia, serif;
  --read: var(--serif);
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
main:focus { outline: none; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 15px/1.7 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Stands in wherever a photo has not been supplied yet */
.blank { display: block; width: 100%; height: 100%; background: var(--blank); }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.link-caps { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--ink); transition: background .2s, box-shadow .2s; }
a:hover > .link-caps, .link-caps:hover, a:hover .link-caps { background: var(--yellow); box-shadow: -5px 0 0 var(--yellow), 5px 0 0 var(--yellow), -5px -5px 0 var(--yellow), 5px -5px 0 var(--yellow), 0 -5px 0 var(--yellow); }
/* With one dark colour in the palette, a headline that is a link is underlined on hover rather than recoloured */
.hero a:hover h2, .gridcard:hover h2, .frame:hover h3, .nextcard:hover h2, .tab:hover .tab__y, .foot__note a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.link-caps--sm { font-size: 9.5px; padding-bottom: 4px; }
.micro { font: 500 9.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.display { font: 300 clamp(44px, 5.4vw, 72px)/1.06 var(--serif); letter-spacing: -.012em; }
.caps-head { font: 500 clamp(30px, 3.2vw, 40px)/1.05 var(--serif); letter-spacing: .03em; text-transform: uppercase; }
.caps-title { font: 400 clamp(32px, 4.2vw, 50px)/1.1 var(--serif); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.sectitle { font: 600 18px/1.3 var(--sans); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
