:root {
  --ink: #0b2440;
  --ink-soft: #35516b;
  --ocean: #0d6f91;
  --water: #4ca7ca;
  --sky: #cfeaf4;
  --mist: #edf7fa;
  --paper: #fffdf8;
  --steel: #9aaab5;
  --line: rgba(11, 36, 64, 0.16);
  --signal: #ee7046;
  --shadow: 0 28px 70px rgba(11, 36, 64, 0.14);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(76, 167, 202, 0.17), transparent 25rem),
    linear-gradient(180deg, #f8fcfd 0, var(--mist) 35rem, #e8f1f3 100%);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 36, 64, 0.12) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}

a {
  color: var(--ocean);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 50%;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateX(-50%);
}

.skip-link:focus {
  top: 0.5rem;
}

.view-switch {
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(11, 36, 64, 0.24);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.view-switch::before {
  content: "←";
  margin-right: 0.38rem;
}

.view-switch:hover {
  color: white;
  background: var(--signal);
}

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.3rem;
  padding: 0.7rem clamp(1.1rem, 4vw, 4.5rem) 0.7rem clamp(10.5rem, 16vw, 13rem);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 252, 253, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 36, 64, 0.18), 0 8px 18px rgba(11, 36, 64, 0.14);
}

.brand > span {
  display: grid;
  line-height: 1.08;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.38rem;
  letter-spacing: 0.05em;
}

.brand small {
  margin-top: 0.22rem;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav > a,
.archive-menu > summary {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.archive-menu > summary:hover {
  color: white;
  background: var(--ocean);
}

.archive-menu {
  position: relative;
}

.archive-menu > summary {
  cursor: pointer;
  list-style: none;
}

.archive-menu > summary::-webkit-details-marker {
  display: none;
}

.archive-menu > summary::after {
  content: "+";
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 1rem;
}

.archive-menu[open] > summary::after {
  content: "−";
}

.archive-panel {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: min(74rem, calc(100vw - 2rem));
  max-height: calc(100vh - 8rem);
  padding: clamp(1.2rem, 3vw, 2.3rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  color: white;
  background:
    radial-gradient(circle at 95% 0, rgba(76, 167, 202, 0.35), transparent 25rem),
    var(--ink);
  box-shadow: var(--shadow);
}

.archive-panel__intro {
  max-width: 42rem;
  margin: 0 0 1.7rem;
  color: var(--sky);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(9rem, 1fr));
  gap: 1.6rem;
}

.archive-group h2 {
  margin: 0 0 0.65rem;
  color: #7fd3ec;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-group ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-group a {
  display: block;
  padding: 0.18rem 0;
  color: white;
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.archive-group a:hover,
.archive-group a[aria-current="page"] {
  color: #85def4;
}

main {
  min-height: 60vh;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
  max-width: 88rem;
  min-height: min(44rem, 72vh);
  margin: clamp(1.4rem, 4vw, 4rem) auto 0;
  overflow: hidden;
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background: var(--sky);
  box-shadow: var(--shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -15rem;
  width: 32rem;
  height: 32rem;
  border: 3.5rem solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero__image {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
}

.home-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 68%, var(--sky));
}

.home-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 7vw, 7rem) clamp(2rem, 7vw, 7rem) clamp(2.2rem, 7vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.home-hero__copy::before {
  content: "Australian archive · 1997—1999";
  display: block;
  width: fit-content;
  margin-bottom: 1.3rem;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  color: white;
  background: var(--ocean);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.2vw, 7.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.home-tagline {
  margin-top: 2rem;
  color: var(--signal);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 850;
}

.home-refresh {
  max-width: 29rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.home-directory {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  max-width: 82rem;
  margin: clamp(4rem, 8vw, 8rem) auto;
  padding: 0 clamp(1.1rem, 4vw, 3rem);
}

.section-kicker {
  padding-top: 0.7rem;
  border-top: 2px solid var(--signal);
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 850;
}

.home-directory h2 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 8.2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  text-decoration: none;
  transition: 160ms ease;
}

.home-card span:last-child {
  color: var(--water);
  font-family: var(--sans);
}

.home-card:hover {
  color: white;
  background: var(--ocean);
  border-color: var(--ocean);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(13, 111, 145, 0.2);
}

.home-story {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 82rem;
  margin: 0 auto clamp(5rem, 9vw, 9rem);
  padding: 0 clamp(1.1rem, 4vw, 3rem);
}

.home-story--single {
  grid-template-columns: minmax(0, 58rem);
  justify-content: center;
}

.home-story__copy {
  padding-right: clamp(0rem, 3vw, 3rem);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.home-story__copy > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--ocean);
  font-family: var(--serif);
  font-size: 4.8em;
  line-height: 0.74;
}

.home-contact {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding: 1.7rem;
  border-radius: 1.4rem;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.home-contact a {
  color: #8adef2;
}

.home-contact h1,
.home-contact h2 {
  color: white;
}

.feature-panel {
  margin: clamp(2.5rem, 5vw, 5rem) 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: linear-gradient(145deg, rgba(207, 234, 244, 0.75), rgba(255, 255, 255, 0.7));
  text-align: center;
}

.feature-panel .content-image {
  margin-top: 1.5rem;
}

.page-mast {
  position: relative;
  min-height: 24rem;
  padding: clamp(5rem, 10vw, 9rem) max(clamp(1.2rem, 6vw, 7rem), calc((100vw - 78rem) / 2));
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(102, 194, 222, 0.5), transparent 26rem),
    linear-gradient(130deg, #0a2743 10%, #0a5978 100%);
}

.page-mast::before,
.page-mast::after {
  content: "";
  position: absolute;
  border: 3rem solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.page-mast::before {
  right: -8rem;
  bottom: -16rem;
  width: 32rem;
  height: 32rem;
}

.page-mast::after {
  right: 13rem;
  bottom: -9rem;
  width: 16rem;
  height: 16rem;
  border-width: 1.4rem;
}

.page-mast__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: #9be4f5;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-mast h1 {
  position: relative;
  z-index: 1;
  max-width: 16ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 48rem);
  justify-content: center;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem) clamp(5rem, 9vw, 9rem);
}

.editorial-layout:not(:has(.story-rail)) {
  grid-template-columns: minmax(0, 55rem);
}

.story-rail {
  position: sticky;
  top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--signal);
}

.story-rail > span {
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-rail ol {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.story-rail a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}

.story-rail a:hover {
  color: var(--signal);
}

.article-copy {
  min-width: 0;
  color: #1b3349;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
  line-height: 1.82;
}

.article-copy > :first-child {
  margin-top: 0;
}

.article-copy p,
.article-copy ul,
.article-copy ol,
.article-copy blockquote {
  margin: 0 0 1.25em;
}

.article-copy ul,
.article-copy ol {
  padding-left: 1.35em;
}

.story-heading {
  margin: 2.8em 0 0.85em;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.12;
  text-wrap: balance;
}

h1.story-heading,
h2.story-heading {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
}

h3.story-heading {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.86em;
}

.content-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(11, 36, 64, 0.17);
}

.email-icon {
  display: block;
  width: 4.6rem;
  height: auto;
  margin: 1rem 0;
  image-rendering: auto;
}

.contact-heading {
  padding-top: 1.1rem;
  border-top: 2px solid var(--water);
}

.legacy-list-item {
  margin: 0.6rem 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 3rem;
  font-family: var(--sans);
}

.directory-card {
  display: flex;
  min-height: 7rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.4;
  text-decoration: none;
}

.directory-card::after {
  content: "↗";
  align-self: flex-end;
  margin-left: auto;
  color: var(--water);
}

.directory-card:hover {
  color: white;
  border-color: var(--ocean);
  background: var(--ocean);
}

.directory-card--unavailable {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.48);
  cursor: default;
}

.directory-card--unavailable::after {
  content: "Archive listing";
  align-self: flex-end;
  margin-left: 1rem;
  color: var(--steel);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table {
  display: block;
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.84rem;
}

.data-table td,
.data-table th {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.image-gallery,
.image-gallery tbody {
  display: block;
}

.image-gallery tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.image-gallery td {
  display: block;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.62);
}

.image-gallery .content-image {
  margin: 0 auto 0.8rem;
}

.page--visual .editorial-layout {
  grid-template-columns: minmax(0, 13rem) minmax(0, 62rem);
}

.page--journal .article-copy {
  max-width: 58rem;
  padding-left: clamp(1.2rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
}

.page--journal .article-copy > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--ocean);
  font-size: 4.6em;
  line-height: 0.72;
}

.site-footer {
  display: grid;
  place-items: center;
  min-height: 15rem;
  padding: 3.5rem clamp(1.2rem, 5vw, 6rem);
  background: var(--ink);
}

.contact-reveal {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.contact-button {
  min-width: 10rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(138, 222, 242, 0.65);
  border-radius: 999px;
  color: white;
  background: transparent;
  font: 800 0.9rem/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  color: var(--ink);
  background: #8adef2;
  transform: translateY(-2px);
}

.contact-address {
  color: #8adef2;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 240ms ease, transform 240ms ease;
}

.contact-address.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-left: 10.5rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .archive-panel {
    position: fixed;
    top: 7.5rem;
    right: 1rem;
  }

  .archive-grid {
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
  }

  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .view-switch {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
  }

  .site-header {
    min-height: 8.8rem;
    padding: 3.9rem 1rem 0.65rem;
  }

  .brand img {
    width: 2.9rem;
    height: 2.9rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .site-nav > a,
  .archive-menu > summary {
    padding: 0.45rem 0.58rem;
    font-size: 0.75rem;
  }

  .archive-panel {
    top: 8rem;
    left: 0.7rem;
    right: 0.7rem;
    width: auto;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    grid-template-columns: 1fr;
    margin: 1rem;
    min-height: auto;
  }

  .home-hero__image {
    min-height: 22rem;
  }

  .home-hero__image::after {
    background: linear-gradient(180deg, transparent 72%, var(--sky));
  }

  .home-hero__copy {
    padding: 1rem 1.5rem 3rem;
  }

  .home-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .home-directory {
    grid-template-columns: 1fr;
  }

  .section-kicker {
    width: 3rem;
  }

  .home-card-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 6.5rem;
  }

  .home-story {
    grid-template-columns: 1fr;
  }

  .home-contact {
    position: static;
  }

  .page-mast {
    min-height: 20rem;
  }

  .editorial-layout,
  .page--visual .editorial-layout {
    grid-template-columns: 1fr;
  }

  .story-rail {
    display: none;
  }

  .page--journal .article-copy {
    padding-left: 0;
    border-left: 0;
  }

  .image-gallery tr {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__image {
    min-height: 17rem;
  }

  .home-directory,
  .home-story {
    padding-inline: 1rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
