/* ---------------------------------------------------------------------------
   Tukt — tukt.com.au
   Brand tokens live in this one block. To re-skin the site, change only :root.
   Palette source: Tukt logo asset kit N3 / Teal 750, issued 2026-07-25
   (assets/Tukt_Logo_Assets_N3_Teal750/). Teal 750 is INTERIM — proposed, not
   yet ratified in D10. See CLAUDE.md § Brand.
   --------------------------------------------------------------------------- */

:root {
  --teal: #055f80;
  --teal-dark: #04485f;
  --teal-light: #0a7ba6;

  --text: #111111;
  --text-muted: #5b5b5b;
  --text-faint: #a8a8a8;

  --surface: #ffffff;
  --surface-alt: #f5f7f8;
  --border: #e3e8ea;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-light);
}

:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Header ------------------------------------------------------------- */

/* Padding tracks the brand sheet's clear-space rule: 0.5 x mark width on all
   four sides, and the mark grew with the logo. At full size that is ~69px, so
   28px would now crowd the lockup against the hero edge. The vw term tracks
   the requirement down through the range where the logo is shrinking to fit. */
.site-header {
  padding-block: clamp(3.2rem, 16.5vw, 4.35rem);
}

/* The gap is the same ~69px clear-space figure as the padding above, for the
   same reason: the rule says nothing sets inside the clear space, and nav
   links are something. flex-wrap means that on narrow screens the nav drops
   to its own row and the gap becomes vertical separation instead. */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3.2rem, 16.5vw, 4.35rem);
}

.brand {
  display: inline-block;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* The lockup is scaled whole — never re-spaced.
   Sized by WIDTH, not height: at this scale height-driven sizing overflows
   narrow viewports (160px tall = 508px wide, wider than a 375px phone can
   show), and min(..., 100%) lets it shrink to fit instead of forcing a
   horizontal scrollbar. height:auto keeps the ratio intact while it does.
   381px = 3 x the original 127px. The mark is 36.4% of the lockup's width,
   so it stays far above its 24px floor at every size here. */
.brand img {
  display: block;
  width: min(23.8125rem, 100%);
  height: auto;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: var(--teal);
  color: #fff;
  padding-block: clamp(3.5rem, 10vw, 6.5rem);
}

.hero h1 {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.hero p {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #fff;
  color: var(--teal);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* --- Content sections --------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer .fine {
  margin: 0;
  color: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- Prose (pages and articles) ----------------------------------------- */

.prose .wrap > * {
  max-width: var(--measure);
}

.prose h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.prose p,
.prose li {
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose img {
  border-radius: 6px;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--teal);
  color: var(--text-muted);
}

.prose code {
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.prose pre code {
  background: none;
  padding: 0;
}

/* Wide content must scroll inside itself rather than widening the page. */
.prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.lede {
  max-width: var(--measure);
  color: var(--text-muted);
}

/* --- Post lists ---------------------------------------------------------- */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.post-list li {
  padding-block: 1rem;
  border-top: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.post-list a {
  font-weight: 700;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list time {
  display: block;
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-top: 0.15rem;
}

.post-list p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.post-meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.tag-list a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
}

.tag-list a:hover {
  border-color: var(--teal);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
