:root {
  color-scheme: dark;
  /* Colours taken from the logo: night sky, sea, cream ring and the sunset bands */
  --ink: #f4e4c4;
  --ink-soft: #cbbfa8;
  --paper: #0a0c14;
  --paper-deep: #0d1d3d;
  --line: #27324a;
  --ochre: #e8845f;
  --ochre-hover: #f09a78;
  --gold: #f6b731;
  --gold-hover: #ffc84f;
  --sun-red: #a8201f;
  --sun-orange: #c9511f;
  --ocean: #0d1d3d;
  --on-accent: #0a0c14;
  --field-border: #5d6782;
  --on-dark: #f4e4c4;
  --on-dark-soft: #cbbfa8;
  --stripe: linear-gradient(to bottom, var(--sun-red) 0 25%, var(--sun-orange) 25% 50%, var(--ochre) 50% 75%, var(--gold) 75% 100%);
  --slab: "Ultra", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; }
h1, h2 { font-family: var(--slab); font-weight: 400; letter-spacing: 0; line-height: 1.08; }
p { margin: 0 0 1em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

/* Draft banner */
.draft-bar {
  background: var(--ocean);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px var(--gutter);
  text-align: center;
}

/* Header */
.site-header { position: relative; }
/* 70s sunset stripe, echoing the bands in the logo */
.site-header::after, .site-footer::before {
  content: "";
  display: block;
  height: 12px;
  background: var(--stripe);
}
.site-footer::before { margin-top: -40px; margin-bottom: 40px; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: block; line-height: 0; }
.brand img { display: block; width: auto; height: 48px; }
@media (max-width: 480px) { .brand img { height: 38px; } }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a {
  font-size: 16px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--gold); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; gap: 40px 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 3fr 2fr; } }
.hero-image { display: block; width: 100%; max-width: 480px; margin: 0 auto; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 65% center; border-radius: 50%; border: clamp(10px, 1.6vw, 16px) solid var(--ink); box-shadow: 0 0 0 4px var(--sun-red); }
.banner { display: block; width: 100%; height: clamp(180px, 30vw, 420px); object-fit: cover; object-position: center 45%; margin-top: 16px; }
.portrait-small { display: block; width: 160px; height: auto; filter: grayscale(1); border-radius: 6px; }
.hero h1 {
  font-size: clamp(34px, 4.5vw, 62px);
}
.hero h1 .hl { color: var(--gold); }
.hero-lede {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  max-width: 36em;
  margin: 28px 0 32px;
}
.page-title { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-title h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  max-width: 18ch;
}
.page-title p { font-size: clamp(18px, 2vw, 22px); max-width: 36em; margin: 20px 0 0; }

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--on-accent);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  box-shadow: 4px 4px 0 var(--sun-red);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--gold-hover); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sun-red); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sun-red); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Sections */
.section { padding: clamp(40px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.section h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 28px;
}

/* Brands */
.brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.brands li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 18px;
  background: #fbf5ea;
  border-radius: 6px;
}
.brands img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* These two brands only publish a white logo online, so show it dark on the white tile. */
.brands img.to-dark { filter: brightness(0); }
.note { font-size: 15px; color: var(--ink-soft); margin-top: 14px; }

/* WA photos */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.gallery img.crop-left { object-position: left center; }
.gallery span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* Service groups */
.groups { display: grid; gap: 40px; }
@media (min-width: 800px) { .groups { grid-template-columns: repeat(3, 1fr); } }
.group { background: var(--paper-deep); border-radius: 6px; padding: 24px 24px 12px; border-top: 6px solid var(--ochre); }
.group:nth-child(1) { border-top-color: var(--sun-orange); }
.group:nth-child(3) { border-top-color: var(--gold); }
.group h3 { font-size: 24px; margin-bottom: 12px; color: var(--ink); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 10px 0; border-top: 1px solid var(--line); }
.note a { color: var(--gold); font-weight: 600; }

.service-group { display: grid; gap: 16px 48px; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .service-group { grid-template-columns: 1fr 2fr; } }
.service-group h2 { color: var(--ochre); margin: 0; font-size: clamp(26px, 3vw, 36px); }
.service { margin-bottom: 28px; }
.service:last-child { margin-bottom: 0; }
.service h3 { font-size: 22px; margin-bottom: 8px; }
.service p { margin: 0; color: var(--ink-soft); max-width: 38em; }

/* Dark band */
.band {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  padding: clamp(56px, 9vw, 112px) 0;
  /* A sun setting into the sea, drawn from the logo */
  background:
    radial-gradient(circle at 82% 100%, var(--gold) 0 13%, var(--ochre) 13% 21%, var(--sun-orange) 21% 29%, var(--sun-red) 29% 37%, transparent 37%),
    var(--ocean);
}
.band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 3px, transparent 3px 9px);
  opacity: .9;
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { font-size: clamp(28px, 4.4vw, 50px); max-width: 16ch; margin-bottom: 20px; }
@media (max-width: 700px) {
  .band {
    padding-bottom: 210px;
    background: radial-gradient(circle 170px at 50% 100%, var(--gold) 0 70px, var(--ochre) 70px 103px, var(--sun-orange) 103px 136px, var(--sun-red) 136px 170px, transparent 170px), var(--ocean);
  }
}
.band p { color: var(--on-dark-soft); max-width: 34em; font-size: 19px; }
.band .button { margin-top: 12px; }
.band a:focus-visible { outline-color: var(--on-dark); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 18px; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--slab);
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}
.steps li:nth-child(2)::before { color: var(--ochre); }
.steps li:nth-child(3)::before { color: var(--sun-orange); }
.steps strong { display: block; font-size: 20px; margin-bottom: 6px; }

/* Two column prose */
.columns { display: grid; gap: 40px 64px; }
@media (min-width: 800px) { .columns { grid-template-columns: 3fr 2fr; } }
.prose { max-width: 38em; }

/* Form */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--paper-deep);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 12px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { font-size: 16px; color: var(--gold); margin: 0; min-height: 1.4em; }
.form-status:focus { outline: none; }
.form-note { font-size: 15px; color: var(--ink-soft); margin: 0; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button:disabled { opacity: 0.6; cursor: wait; }
.form-sent { font-size: 20px; max-width: 32em; }

.aside-block { border-top: 6px solid var(--ochre); background: var(--paper-deep); border-radius: 6px; padding: 20px 22px 6px; margin-bottom: 36px; }
.aside-block h2 { font-size: 22px; margin-bottom: 10px; }
.aside-block p { font-size: 16px; color: var(--ink-soft); }
.aside-block a { color: var(--gold); font-weight: 600; }

/* Footer */
.site-footer { background: var(--paper-deep); color: var(--on-dark-soft); padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; flex: none; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--on-dark); }
#perth-time { font-family: var(--mono); font-size: 14px; }
