:root {
  --teal: #0E4F4F;
  --teal-dark: #0E2E2E;
  --yellow: #F2B705;
  --linen: #F3EFE7;
  --header: #FFFFFF; /* white bar; logo GIF background recoloured to white to match */
  --mist: #CFDCD8;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* where the headline sits in the photo's blank space */
  --copy-top: 9vh;
  --photo-pos: center 30%; /* which part of the photo stays in view when cropped */
  --copy-align: center;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); color: var(--teal); background: var(--linen); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* top menu */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--header);
}
/* the GIF has lots of empty space around the logo. Window = union of the logo's extent across all 101 frames (x 176-463, y 49-279) plus a 6px margin */
.logo { --s: 0.28; position: relative; display: block; overflow: hidden;
  width: calc(300px * var(--s)); height: calc(243px * var(--s)); }
.logo img { position: absolute; height: calc(360px * var(--s)); width: auto; max-width: none;
  left: calc(-170px * var(--s)); top: calc(-43px * var(--s)); }
.topbar nav a {
  font-weight: 500; font-size: 15px; text-decoration: none;
  padding: 8px 16px; border-radius: 0; border: 1px solid var(--teal);
  transition: background .2s, color .2s;
}
.topbar nav a:hover { background: var(--teal); color: var(--linen); }

/* coming soon hero */
.home { overflow: hidden; }
.hero { position: relative; height: 100vh; height: 100dvh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-pos, center 15%); }
.hero-copy {
  position: absolute; left: 0; right: 0; top: calc(76px + var(--copy-top));
  text-align: var(--copy-align); padding: 0 16px;
}
.hero-copy h1 {
  font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(36px, 7vw, 96px); color: #fff;
  text-shadow: 0 2px 18px rgba(14,46,46,.25);
}
.corner {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(14px, 3vh, 32px);
  display: flex; align-items: center; gap: 14px;
}
.soon {
  background: var(--teal); color: #fff;
  font-weight: 600; font-size: 15px; letter-spacing: .04em;
  padding: 0.55em 1.1em; border-radius: 0;
}
.contact {
  font-size: 14px; font-weight: 500; text-decoration: none; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.contact:hover { text-decoration: underline; }

/* article page */
.article-page { background: #fff; }
.article { max-width: 720px; margin: 0 auto; padding: 120px 20px 80px; }
.article .kicker { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); opacity: .7; }
.article h1 { font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 18px; }
.article .lede { font-size: 20px; line-height: 1.55; color: var(--teal-dark); margin-bottom: 28px; }
.article h2 { font-weight: 700; font-size: 24px; margin: 36px 0 10px; }
.article p, .article li { font-size: 17px; line-height: 1.7; color: var(--teal-dark); }
.article p + p { margin-top: 12px; }
.article ul { padding-left: 20px; margin-top: 8px; }
.article li { margin: 6px 0; }
.article .bar { width: 64px; height: 6px; background: var(--yellow); border-radius: 3px; margin-bottom: 24px; }
.article .cta { margin-top: 40px; padding: 24px; background: var(--teal); color: var(--linen); border-radius: 0; }
.article .cta p { color: var(--linen); }
.article .cta a { color: var(--yellow); font-weight: 700; }

@media (max-width: 600px) {
  .logo { --s: 0.22; }
  .topbar nav a { font-size: 13px; padding: 7px 12px; }
  :root { --copy-top: 8vh; }
}

/* ---------- Why prespace.com.au: magazine layout ---------- */
.mag { --head: 96px; display: grid; grid-template-columns: clamp(90px, 13vw, 200px) minmax(0, 1fr); margin-top: var(--head); background: #fff; }
.mag-photo { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow: hidden; }
.mag-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; display: block; }
.mag-page { position: relative; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 64px) 64px; color: #1F2A2A; }

.mag-title { text-align: center; line-height: 1; color: var(--teal); margin-bottom: 14px; }
.mag-title .t-light { display: block; font-weight: 200; font-size: clamp(34px, 5vw, 72px); color: var(--teal-dark); }
.mag-title .t-big { display: block; font-weight: 800; font-size: clamp(34px, 6vw, 92px); letter-spacing: -0.01em; }

.mag-byline { text-align: center; letter-spacing: .2em; font-size: 13px; font-weight: 500; color: var(--teal-dark); margin-bottom: clamp(28px, 4vw, 44px); }

.mag-body { columns: 2; column-gap: 40px; font-size: 15.5px; line-height: 1.65; font-weight: 400; color: #2B3535; }
.mag-body p { margin: 0 0 1em; }
.mag-body strong { font-weight: 600; color: var(--teal); }
.mag-body h2 { font-size: 20px; font-weight: 700; color: var(--teal); margin: 1.4em 0 .4em; break-after: avoid; }
.mag-body h2:first-of-type { margin-top: .6em; }
.mag-list { list-style: none; padding: 0; margin: 0 0 1em; }
.mag-list li { padding: 0 0 .7em; break-inside: avoid; }
.dropcap::first-letter { float: left; font-size: 4.6em; line-height: .85; font-weight: 300; color: var(--teal); padding: 4px 10px 0 0; }

.mag-end { margin-top: 28px; padding: 20px 24px; background: transparent; border: 1.5px solid var(--teal); color: #2B3535; font-size: 15px; line-height: 1.6; }
.mag-end strong { font-weight: 600; color: var(--teal); }
.mag-end a { color: var(--teal); font-weight: 600; }

.mag-side { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 120px; gap: 14px; }
.mag-side span { writing-mode: vertical-rl; letter-spacing: .14em; font-size: 13px; color: #7a8585; }
.mag-side b { writing-mode: vertical-rl; background: var(--teal); color: #fff; font-weight: 700; font-size: 18px; padding: 14px 10px; }

@media (max-width: 1100px) {
  .mag-body { columns: 1; }
}
@media (max-width: 760px) {
  .mag-page { padding-right: 24px; }
  .mag-side { display: none; }
}
@media (max-width: 560px) {
  /* keep the thin photo strip down the side on phones too */
  .mag { grid-template-columns: 44px minmax(0, 1fr); --head: 80px; }
  .mag-page { padding: 28px 18px 48px; }
}

/* prespace.com.au written as the logo wordmark: "pre" regular, "space" bold, small ".com.au" */
.wm { white-space: nowrap; letter-spacing: -0.01em; }
.wm .wm-pre { font-weight: 400; }
.wm .wm-space { font-weight: 700; }
.wm .wm-dot { font-weight: 400; font-size: .5em; margin-left: .08em; letter-spacing: .01em; }
.mag-title .t-big .wm .wm-dot { font-size: .42em; }
.mag-title .t-q { font-weight: 200; margin-left: .02em; }
.mag-title { margin-bottom: clamp(28px, 4vw, 44px); }
