/* alexlin.com.au — hand-written, mobile-first. No theme CSS. */
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url(/fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url(/fonts/poppins-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/mulish-var-latin.woff2) format("woff2"); }

:root {
  --text: #404040;
  --ink: #121217;
  --accent: #007565;
  --button: #066aab;
  --line: #c9c9c9;
  --gutter: 24px;
  --content: 900px;
  --wide: 1200px;
  --heading: "Poppins", system-ui, sans-serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.5 var(--body); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.site-header { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-title { font: 500 1.5rem/1.4 var(--heading); color: var(--ink); text-decoration: none; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-header nav a { color: #1d1d22; text-decoration: none; font-size: 1.0625rem; line-height: 1.75;
  display: inline-block; padding: 4px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline;
  text-underline-offset: 6px; }

/* Phone menu: the button only appears when JS runs, so the menu is never unreachable. */
.menu-toggle { background: none; border: 0; padding: 10px; margin: -10px; cursor: pointer; color: var(--ink); }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }
@media (max-width: 699px) {
  .js .menu-toggle { display: block; }
  .js .site-header nav { display: none; width: 100%; }
  .js .site-header.open nav { display: block; }
  .js .site-header nav ul { flex-direction: column; gap: 0; padding: 8px 0; border-top: 1px solid #eee; }
  .js .site-header nav a { padding: 10px 0; display: block; }
}
@media (min-width: 700px) { .menu-toggle { display: none !important; } }

/* Main */
main { display: block; padding: 0 var(--gutter) 64px; }
.page-title { font: 700 clamp(2rem, 1.4rem + 2.6vw, 3rem)/1.3 var(--heading); color: var(--accent);
  text-align: center; margin: 40px 0 32px; }
.content { max-width: var(--content); margin: 0 auto; }
.content h2 { font: 700 1.5rem/1.5 var(--heading); color: var(--accent); margin: 32px 0 12px; }
.content p { margin: 0 0 1em; }
.content figure { margin: 0 0 16px; }
.content figure img { width: 100%; }
.content figcaption { font-size: .875rem; text-align: center; margin-top: 6px; color: #666; }
.content .back { text-align: center; margin-top: 32px; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Home tiles: 2 across on phones, 4 on wider screens, cropped to 3:4 like the original. */
.tiles { list-style: none; margin: 24px auto 0; padding: 0; max-width: var(--wide);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tiles a { display: block; }
.tiles img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .2s; }
.tiles a:hover img { opacity: .9; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* Contact */
.contact { max-width: var(--wide); margin: 0 auto; }
.contact address { font-style: normal; margin-bottom: 32px; }
.form { max-width: 720px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.form legend, .form .label { font-weight: 700; color: rgba(0, 0, 0, .85); margin-bottom: 10px; padding: 0; display: block; }
.form .req { color: #c00; }
.form .row { display: grid; gap: 12px 20px; }
@media (min-width: 520px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .sub { display: block; font-size: .8125rem; color: #666; margin-top: 4px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 3px; color: #222; background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--button); outline: 2px solid var(--button); outline-offset: 0; }
.form .field { margin-bottom: 24px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { font: 500 1.0625rem var(--body); background: var(--button); color: #fff; border: 0;
  border-radius: 4px; padding: 12px 16px; cursor: pointer; }
.form button:hover { background: #055a91; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form .privacy { font-size: .875rem; color: #555; max-width: 60ch; }
.form .turnstile:not(:empty) { margin-bottom: 16px; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 4px; }
.form-status:empty { display: none; }
.form-status.ok { background: #e7f5ef; color: #0b5a3f; }
.form-status.err { background: #fdecec; color: #8a1c1c; }

/* Footer */
.site-footer { text-align: center; padding: 24px var(--gutter) 48px; }
.site-footer p { margin: 0; }
