@charset "UTF-8";
/*
This file serves as the main entry point for compiling the site's SCSS.
Pico CSS is now loaded via CDN, so this file contains only custom styles.
*/
/* ── USyd brand palette ───────────────────────
   Source: github.com/Sydney-Informatics-Hub/usydColours
   Branding Document V2.0
   ──────────────────────────────────────────── */
:root {
  /* Masterbrand */
  --mg-ochre:     #E64626;
  --mg-black:     #0A0A0A;
  --mg-charcoal:  #424242;
  --mg-white:     #FFFFFF;
  /* Accents */
  --mg-blue:      #0148A4;
  --mg-yellow:    #FFB800;
  --mg-grey:      #F1F1F1;
  /* Modern palette extras */
  --mg-light-grey:  #E6E7E9;
  --mg-sandstone:   #FBEEE2;
  --mg-navy:        #1B355E;
  /* Derived / UI tokens */
  --mg-ochre-hover: #CB3B1E;
  --mg-surface:     #F7F8F9;
  --mg-border:      #E6E7E9;
  --mg-text:        var(--mg-black);
  --mg-text-muted:  var(--mg-charcoal);
  /* ── Pico overrides ───────────────────────── */
  --pico-primary:               var(--mg-ochre);
  --pico-primary-background:    var(--mg-ochre);
  --pico-primary-border:        var(--mg-ochre);
  --pico-primary-hover:         var(--mg-ochre-hover);
  --pico-primary-hover-background: var(--mg-ochre-hover);
  --pico-primary-hover-border:  var(--mg-ochre-hover);
  --pico-primary-focus:         rgba(230, 70, 38, 0.15);
  --pico-primary-inverse:       var(--mg-white);
  --pico-primary-underline:     rgba(230, 70, 38, 0.3);
  /* Typography */
  --mg-font-display: "Literata", Georgia, "Times New Roman", serif; }

/* ── Headings ──────────────────────────────── */
h1, h2, h3 {
  font-family: var(--mg-font-display);
  letter-spacing: -0.01em;
  font-weight: 600; }

/* ── Nav brand ─────────────────────────────── */
.nav-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none; }
  .nav-brand img {
    width: 26px;
    height: 26px; }

/* -----------------------------------------------------------------------------
Syntax Highlighting Theme Defaults
----------------------------------------------------------------------------- */
.syntax-theme-solarized-light {
  --syntax-bg-color: #fdf6e3;
  --syntax-fg-color: #657b83;
  --syntax-comment-color: #93a1a1;
  --syntax-keyword-color: #dc322f;
  --syntax-string-color: #2aa198;
  --syntax-class-color: #268bd2;
  --syntax-operator-color: #cb4b16;
  --syntax-function-color: #268bd2;
  --syntax-variable-color: #268bd2; }

.syntax-theme-solarized-dark {
  --syntax-bg-color: #002b36;
  --syntax-fg-color: #839496;
  --syntax-comment-color: #586e75;
  --syntax-keyword-color: #859900;
  --syntax-string-color: #2aa198;
  --syntax-class-color: #268bd2;
  --syntax-operator-color: #cb4b16;
  --syntax-function-color: #b58900;
  --syntax-variable-color: #268bd2; }

.syntax-theme-gruvbox {
  --syntax-bg-color: #fbf1c7;
  --syntax-fg-color: #3c3836;
  --syntax-comment-color: #928374;
  --syntax-keyword-color: #9d0006;
  --syntax-string-color: #79740e;
  --syntax-class-color: #b57614;
  --syntax-operator-color: #9d0006;
  --syntax-function-color: #79740e;
  --syntax-variable-color: #076678; }

.syntax-theme-gruvbox-dark {
  --syntax-bg-color: #282828;
  --syntax-fg-color: #ebdbb2;
  --syntax-comment-color: #a89984;
  --syntax-keyword-color: #fb4934;
  --syntax-string-color: #b8bb26;
  --syntax-class-color: #fabd2f;
  --syntax-operator-color: #fe8019;
  --syntax-function-color: #83a598;
  --syntax-variable-color: #83a598; }

/* -----------------------------------------------------------------------------
Pygments Style Overrides
----------------------------------------------------------------------------- */
div.highlight,
figure.highlight {
  position: relative;
  margin: 1em 0;
  background: var(--syntax-bg-color, #f8f8f8);
  color: var(--syntax-fg-color, #333);
  font-family: "Menlo", "Consolas", "Roboto Mono", "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.6;
  border-radius: 6px;
  overflow: hidden; }
  div.highlight pre,
  figure.highlight pre {
    margin: 0;
    padding: 1em;
    overflow-x: auto; }
  div.highlight .c, div.highlight .c1, div.highlight .cs,
  figure.highlight .c,
  figure.highlight .c1,
  figure.highlight .cs {
    color: var(--syntax-comment-color, #998);
    font-style: italic; }
  div.highlight .k, div.highlight .kc, div.highlight .kd, div.highlight .kp, div.highlight .kr, div.highlight .kt, div.highlight .nb,
  figure.highlight .k,
  figure.highlight .kc,
  figure.highlight .kd,
  figure.highlight .kp,
  figure.highlight .kr,
  figure.highlight .kt,
  figure.highlight .nb {
    color: var(--syntax-keyword-color, #555);
    font-weight: bold; }
  div.highlight .s, div.highlight .s1, div.highlight .s2, div.highlight .sd, div.highlight .sh, div.highlight .si, div.highlight .sr, div.highlight .ss,
  figure.highlight .s,
  figure.highlight .s1,
  figure.highlight .s2,
  figure.highlight .sd,
  figure.highlight .sh,
  figure.highlight .si,
  figure.highlight .sr,
  figure.highlight .ss {
    color: var(--syntax-string-color, #d14); }
  div.highlight .n, div.highlight .nf, div.highlight .nc, div.highlight .nd, div.highlight .no, div.highlight .nn, div.highlight .py,
  figure.highlight .n,
  figure.highlight .nf,
  figure.highlight .nc,
  figure.highlight .nd,
  figure.highlight .no,
  figure.highlight .nn,
  figure.highlight .py {
    color: var(--syntax-class-color, #458); }
  div.highlight .o, div.highlight .ow, div.highlight .p, div.highlight .pi,
  figure.highlight .o,
  figure.highlight .ow,
  figure.highlight .p,
  figure.highlight .pi {
    color: var(--syntax-operator-color, #859900); }
  div.highlight .nv, div.highlight .vc, div.highlight .vg, div.highlight .vi, div.highlight .nl,
  figure.highlight .nv,
  figure.highlight .vc,
  figure.highlight .vg,
  figure.highlight .vi,
  figure.highlight .nl {
    color: var(--syntax-variable-color, #008080); }
  div.highlight .err,
  figure.highlight .err {
    color: #a61717;
    background-color: #e3d2d2; }
  div.highlight .n.n-Function,
  figure.highlight .n.n-Function {
    color: var(--syntax-function-color, #900);
    font-weight: bold; }
  div.highlight .n.n-Package,
  figure.highlight .n.n-Package {
    color: var(--syntax-keyword-color, #555);
    font-weight: bold; }
  div.highlight .n.n-Type,
  figure.highlight .n.n-Type {
    color: var(--syntax-class-color, #458);
    font-weight: bold; }
  div.highlight .n.n-Builtin,
  figure.highlight .n.n-Builtin {
    color: var(--syntax-class-color, #458); }
  div.highlight .k.k-Reserved,
  figure.highlight .k.k-Reserved {
    color: var(--syntax-keyword-color, #555);
    font-weight: bold; }
  div.highlight .language-magma .n.n-Intrinsic,
  figure.highlight .language-magma .n.n-Intrinsic {
    color: var(--syntax-function-color, #900);
    font-weight: bold; }

/* ── Landing page ────────────────────────────── */
/* ── Animation ──────────────────────────────── */
@keyframes mg-enter {
  from {
    opacity: 0;
    transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important; } }

/* ── Full-width layout ──────────────────────── */
.home-page {
  width: 100vw;
  margin-left: calc(-50vw + 50%); }
  .home-page > section {
    padding: 3.5rem 0; }
  .home-page .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 0 3.5rem;
  background: var(--mg-white);
  overflow: hidden;
  /* Subtle dot grid — evokes coordinate plane */ }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--mg-charcoal) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.04;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, black 0%, transparent 100%); }
  .hero .section-inner > * {
    position: relative; }
  .hero .hero-logo {
    width: 64px;
    height: auto;
    margin-bottom: 1.25rem;
    animation: mg-enter 0.45s ease-out 0.05s both; }
  .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    color: var(--mg-black);
    animation: mg-enter 0.45s ease-out 0.1s both; }
  .hero .hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--mg-charcoal);
    margin: 0 0 0.9rem;
    animation: mg-enter 0.45s ease-out 0.15s both; }
  .hero .hero-desc {
    max-width: 540px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
    color: var(--mg-charcoal);
    font-size: 0.95rem;
    animation: mg-enter 0.45s ease-out 0.2s both; }
  .hero .hero-cta {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    animation: mg-enter 0.45s ease-out 0.25s both; }
    .hero .hero-cta a[role="button"] {
      font-size: 0.9rem;
      padding: 0.55rem 1.3rem;
      border-radius: 4px; }

/* ── Quick Access cards ────────────────────── */
.quick-access {
  background: var(--mg-surface);
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border); }
  .quick-access .section-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; }
  @media (max-width: 860px) {
    .quick-access .section-inner {
      grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) {
    .quick-access .section-inner {
      grid-template-columns: 1fr; } }
.qcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--mg-text);
  transition: border-color 0.15s, box-shadow 0.15s; }
  .qcard:hover, .qcard:focus-visible {
    border-color: var(--mg-ochre);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    color: var(--mg-text);
    text-decoration: none; }
  .qcard i {
    font-size: 1.25rem;
    color: var(--mg-ochre);
    margin-bottom: 0.6rem; }
  .qcard strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem; }
  .qcard p {
    margin: 0;
    font-size: 0.835rem;
    line-height: 1.45;
    color: var(--mg-text-muted); }

/* ── Mathematical Areas ───────────────────── */
.areas header {
  margin-bottom: 1.75rem; }
  .areas header h2 {
    margin-bottom: 0.4rem; }
  .areas header p {
    color: var(--mg-text-muted);
    margin: 0; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem; }
  @media (max-width: 760px) {
    .areas-grid {
      grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) {
    .areas-grid {
      grid-template-columns: 1fr; } }
.area {
  padding: 1rem 1rem 1rem 0.85rem;
  border-left: 3px solid var(--mg-ochre); }
  .area strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem; }
  .area p {
    margin: 0;
    font-size: 0.835rem;
    line-height: 1.45;
    color: var(--mg-text-muted); }

.section-link {
  margin: 0;
  font-size: 0.9rem; }

/* ── About + News split ──────────────────── */
.split {
  background: var(--mg-surface);
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border); }
  .split h2 {
    margin-bottom: 0.65rem; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem; }
  @media (max-width: 700px) {
    .split-grid {
      grid-template-columns: 1fr;
      gap: 2rem; } }
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem; }
  .news-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--mg-border); }
    .news-list li:first-child {
      padding-top: 0; }
  .news-list time {
    display: block;
    font-size: 0.78rem;
    color: var(--mg-text-muted);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.15rem; }
  .news-list a, .news-list span {
    font-size: 0.875rem;
    line-height: 1.4; }

/* ── Team ──────────────────────────────────── */
.team .section-inner {
  max-width: 680px; }

.team h2 {
  margin-bottom: 0.2rem; }

.team .team-sub {
  color: var(--mg-text-muted);
  font-size: 1rem;
  margin-bottom: 0.75rem; }

.header-link {
  text-decoration: none !important; }

.calc-container {
  max-width: 800px;
  margin: 0 auto; }
  .calc-container h1 {
    margin-bottom: 0.5rem; }
  .calc-container > p {
    margin-bottom: 1.5rem;
    color: var(--pico-muted-color); }

.calc-form {
  margin-bottom: 1rem; }
  .calc-form label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem; }
    .calc-form label small {
      color: var(--pico-muted-color);
      font-weight: normal; }

.calc-input {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 150px; }

.calc-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem; }
  .calc-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; }

.calc-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--pico-primary-background);
  border-radius: var(--pico-border-radius);
  color: var(--pico-primary-inverse); }
  .calc-status .spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }

.calc-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: var(--pico-border-radius);
  color: #c00; }

.calc-output-section {
  margin-top: 1.5rem; }
  .calc-output-section label {
    display: block;
    margin-bottom: 0.25rem; }

.calc-output {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9rem;
  padding: 1rem;
  background: #f4f4f4;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  min-height: 100px;
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0; }

.calc-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--pico-muted-color); }
