/* Oneroa Systems. Mid-century NZ: Crown Lynn and 1950s travel-poster colours, archive photos in black and white. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --kowhai: #e0a526;
  --harbour: #1f3a3d;
  --lichen: #eef0e6;
  --turquoise: #2f8c86;
  --turquoise-deep: #1f6e69;
  --pohutukawa: #b23a2e;
  --manuka: #707d3c;
  --photo-grey: #8d938e;

  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Georgia", serif;

  --page: 68rem;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { background: var(--lichen); color: var(--harbour); }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main { flex: 1; }

a { color: var(--turquoise-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--harbour); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pohutukawa); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3125rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.lede { font-size: 1.3125rem; line-height: 1.5; margin-top: 1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--lichen); padding: 0.5rem 1rem; z-index: 2; }

/* The kōwhai bands, after Mountain View Smart Contracts' amber bar. */
.band { background: var(--kowhai); color: var(--harbour); font-family: var(--sans); }
.band a { color: var(--harbour); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
/* The dot in the name is a small sun. */
.wordmark .sun {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin: 0 0.06em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.02em;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav a { font-size: 1.0625rem; font-weight: 500; text-decoration: none; padding-bottom: 0.2rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--harbour); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--harbour); }

.site-footer { margin-top: 5rem; font-size: 0.9375rem; }
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer p { margin: 0; }

/* Archive photographs: always black and white, always credited. */
.archive { margin: 0; }
.archive img, .archive .placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  background: var(--photo-grey);
}
.archive.wide img, .archive.wide .placeholder { aspect-ratio: 3 / 2; }
.archive .placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--lichen);
  font-family: var(--sans);
  font-size: 1rem;
  text-align: center;
}
.archive figcaption { font-family: var(--sans); font-size: 0.875rem; line-height: 1.45; margin-top: 0.6rem; max-width: 30rem; }
.archive figcaption .title { font-family: var(--serif); font-style: italic; font-size: 0.9375rem; display: block; }

/* Home: the one loud moment. A kōwhai sun rises behind the archive photo, as on a 1950s travel poster. */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; padding-top: 4rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 450; letter-spacing: -0.02em; line-height: 1; }
.hero h1 .sun { display: inline-block; width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--kowhai); margin: 0 0.04em; }
.hero .lede { max-width: 30rem; margin-top: 1.5rem; }
.hero .archive { position: relative; isolation: isolate; }
.hero .archive::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--kowhai);
  top: -7%;
  right: -16%;
}

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 5rem; padding-top: 2rem; border-top: 4px solid var(--harbour); }
.offers h2 { margin-top: 0; }
.offers p { max-width: 30rem; }

/* Inner pages: text on the left, one archive photo on the right. */
.page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3.5rem; padding-top: 3.5rem; }
.page .archive { position: sticky; top: 2rem; align-self: start; margin-top: 0.5rem; }

ul.plain, ol.steps { padding-left: 1.25rem; margin: 0 0 1rem; }
ul.plain li, ol.steps li { margin-bottom: 0.5rem; }
ol.steps li::marker { font-family: var(--sans); font-weight: 500; color: var(--manuka); }

.project { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 4px solid var(--turquoise); }
.project h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
.status { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; background: var(--turquoise); color: var(--lichen); padding: 0.1rem 0.6rem; border-radius: 1rem; }

.contact-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; align-items: start; padding-top: 3.5rem; }
.contact-card .email { font-family: var(--sans); font-size: 1.3125rem; font-weight: 500; }

@media (max-width: 52rem) {
  .hero, .offers, .page, .contact-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 2.5rem; }
  .hero .archive { max-width: 22rem; margin: 1rem 2.5rem 0 0; }
  .page .archive { position: static; max-width: 22rem; }
  .contact-card .archive { max-width: 16rem; }
  .offers { margin-top: 3.5rem; }
}
