@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/stix-two-text.woff2") format("woff2");
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/stix-two-text-italic.woff2") format("woff2");
}
/* Width-matched fallback so the first paint does not re-lay itself when the real face lands.
   size-adjust only: every leading here is an explicit unitless multiplier, so line boxes never depend
   on font metrics and only advance widths move. 103.6% is the measured centre of the plateau. */
@font-face {
  font-family: "SY fallback";
  src: local("Baskerville"), local("Iowan Old Style"), local("Palatino Linotype"), local("Palatino"),
       local("Georgia"), local("Times New Roman");
  size-adjust: 103.6%;
}

/* SY Advisors — single-page holding site.
   One axis: every content block opens on it; only the h1 and the midnight bands break the field.
   Four sizes: 2.85rem / 1.3rem / 1.0625rem / 0.88rem. Three are fixed at every root size; the h1 is a
   ramp, clamp(min(2.1rem, 8vw), 3.4vw, 2.85rem), so it never sets a single word to a line on a phone.
   Five leadings: 1.2 h1, 1.4 h2, 1.6 body, 1.9 the stacked address (2.6 when it carries touch),
   plus 1.45 on paper. Two colours. */

:root {
  --midnight: #1E2A52;
  --ink: #191b20;
  --paper: #ffffff;
  --serif: "STIX Two Text", "SY fallback", "Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --measure: 32.6rem; /* 62ch at the 17px body size, fixed so one measure means one width */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  min-height: 100svh; /* NOT redundant: an engine that does not know svh drops the whole declaration */
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}
main { flex: 1; }

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 3rem);
}

/* ---- links: one geometry ---- */
a { color: inherit; }
main a, .foot-line a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  transition: text-decoration-color 0.3s ease;
}
main a:hover, main a:focus-visible { text-decoration-color: currentColor; }
nav.site-nav a, .skip-link, .mark { text-decoration: none; }
a:focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 0;
  top: -9999px; /* NOT left: a physical -9999px is scrollable overflow once dir="rtl" is set */
  background: var(--midnight);
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  z-index: 10;
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { outline-offset: -3px; }

/* ---- header ---- */
header.site { background: var(--midnight); color: #ffffff; } /* the lockup's alt text, if the SVG fails */
header.site ::selection, footer.site ::selection { background: #ffffff; color: var(--midnight); }
header.site a:focus-visible, .skip-link:focus-visible { outline-color: #ffffff; }
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem; /* not shorthand: preserves the .shell gutter */
}
.site-bar .mark img {
  height: 46px;
  width: auto;
  display: block;
}
/* .site-bar .mark img is (0,2,1); a bare .mark-print (0,1,0) would lose and the print lockup would
   render at 46px on screen underneath the white one, doubling the band. Three classes to win. */
.site-bar .mark .mark-print { display: none; }
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
}
nav.site-nav a {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.3rem 0 2px;
}
nav.site-nav a:hover { color: #ffffff; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- hero ---- */
.hero { padding: 2.1rem 0 0; }
.hero h1 {
  font-weight: 700;
  color: var(--midnight);
  font-size: clamp(min(2.1rem, 8vw), 3.4vw, 2.85rem);
  line-height: 1.2;
  text-wrap: balance;
}
.hero p {
  margin-top: 1.1rem;
  max-width: var(--measure);
  font-size: 1.3rem;
  text-wrap: balance;
}
/* One line, the width of the shell. balance still holds, so if a narrow desktop cannot fit it the
   break lands mid-sentence rather than orphaning "Australia." */
@media screen and (min-width: 901px) { .hero p { max-width: none; } }
/* ---- sections ---- */
section.block {
  padding: 2.1rem 0 0;
  scroll-margin-top: 1.6rem; /* the header is static, so a fragment only needs breathing room */
}
section.block.block-contact { padding-bottom: 2.2rem; }
section.block h2 {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--midnight);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
section.block p { max-width: var(--measure); text-wrap: pretty; }

/* ---- practice areas ----
   The one block that leaves the measure: six short items in two rows of three, across the full shell.
   Below 900px the shell is already one measure wide, so the grid falls to a single column and the
   list reads exactly as it did before. */
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(1.6rem, 4vw, 3rem);
  row-gap: 0.2rem;
}
@media screen and (min-width: 901px) {
  .area-list { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
}
.area-list li { padding: 0.55rem 0; }
.area-name { font-weight: 700; color: var(--midnight); }
.area-desc { display: block; text-wrap: pretty; }

/* ---- the matter list: one descending column, on the axis ---- */
.exp-intro { margin-bottom: 1.1rem; }
.mlist { list-style: none; }
.mrow { max-width: var(--measure); }
.mrow + .mrow { margin-top: 1.5rem; }
/* Across the page, but the prose never widens past one measure: the year takes the left column and the
   citation and description take the right. Below 901px the two stack, exactly as they read now. */
@media screen and (min-width: 901px) {
  .mrow {
    max-width: none;
    display: grid;
    grid-template-columns: 6rem minmax(0, var(--measure));
    column-gap: clamp(1.6rem, 4vw, 3rem);
    align-items: baseline;
  }
}
.mrow-year { font-weight: 700; color: var(--midnight); }
.mrow-body p { margin-top: 0.6rem; }
.cite {
  color: rgba(25, 27, 32, 0.75);
  text-wrap: pretty;
}
.cite a { text-decoration-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.cn { white-space: nowrap; } /* a medium neutral citation never breaks across a line */

/* ---- contact ---- */
.conflict-note {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: rgba(25, 27, 32, 0.75);
}
.contact-line { line-height: 1.9; }

/* ---- footer ---- */
footer.site {
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  padding-block: 2.2rem;
}
footer.site .foot-mark { height: 30px; width: auto; display: block; margin-bottom: 1.4rem; }
.foot-line + .foot-line { margin-top: 0.55rem; }
.foot-line.line-liability { color: rgba(255, 255, 255, 0.92); }
footer.site a:focus-visible { outline-color: #ffffff; }

@media screen and (max-width: 900px) {
  .shell { max-width: calc(var(--measure) + 2 * clamp(1.4rem, 5vw, 3rem)); }
  nav.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-bar .mark { display: inline-block; padding-block: 4px; margin-block: -4px; }
  .contact-line { line-height: 2.6; }
  .contact-line a { display: inline-block; }
}

@media screen and (max-width: 720px) {
  .site-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-block: 1.3rem 0.68rem;
  }
  nav.site-nav { gap: 1.1rem; }
  nav.site-nav a { padding: 0.45rem 0 2px; }
}


/* ---- privacy and terms: the only two pages behind the holding page ---- */
.legal-page { padding-block: 2.1rem 2.2rem; }
.legal-page h1 {
  font-weight: 700;
  color: var(--midnight);
  font-size: clamp(min(2.1rem, 8vw), 3.4vw, 2.85rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.legal-head { margin-bottom: 2.2rem; }
.legal-page .updated {
  font-size: 0.88rem;
  color: rgba(25, 27, 32, 0.75);
}
.ls + .ls { margin-top: 1.9rem; }
.ls .ls-body { max-width: var(--measure); }
.legal-page .ls h2 {
  font-weight: 700;
  color: var(--midnight);
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}
.legal-page p { max-width: var(--measure); text-wrap: pretty; }
.legal-page p + p { margin-top: 0.9rem; }
.legal-page ul {
  list-style: none;
  margin: 1.4rem 0;
  padding-left: 1.1rem;
  max-width: var(--measure);
}
.legal-page li { text-wrap: pretty; }
.legal-page li + li { margin-top: 0.45rem; }
.legal-page ul li { position: relative; }
/* a drawn dot, not a list marker: it survives the print sheet at the same size as on screen */
.legal-page ul li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.74em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(30, 42, 82, 0.45);
  print-color-adjust: exact;
}
@media (forced-colors: active) {
  .legal-page ul li::before { background: CanvasText; forced-color-adjust: none; }
}

/* ---- print: A4, no bands, the mark in midnight ---- */
@page { size: A4; margin: 18mm 22mm; }
@media print {
  body { min-height: 0; display: block; } /* a flex container fragments badly across sheets */
  .shell { max-width: var(--measure); margin-inline: auto; padding-inline: 0; }
  a, main a, .foot-line a { text-decoration: none; }
  header.site, footer.site { background: none; padding: 0; break-inside: avoid; }
  header.site { color: var(--ink); }
  nav.site-nav, .skip-link { display: none; } /* nothing to navigate to on paper */
  .mark-screen, .foot-mark { display: none; }
  .site-bar .mark .mark-print { display: block !important; }
  .site-bar { display: block; padding-block: 0 1.6rem; }
  .hero { padding: 0; }
  section.block { padding: 1.6rem 0 0; }
  section.block h2 { margin-bottom: 0.8rem; }
  .exp-intro { margin-bottom: 1.6rem; }
  .area-list li { padding: 0.1rem 0; }
  .area-list li + li { margin-top: 0.35rem; }
  .mrow + .mrow { margin-top: 1.1rem; }
  footer.site { color: var(--ink); margin-top: 1.6rem; }
  .foot-line.line-liability { color: var(--ink); }
  .mrow, .contact-line, .area-list li { break-inside: avoid; }
  .legal-page { padding-block: 1.5rem; }
  .legal-page .ls h2 { break-after: avoid; }
  .legal-page .ls:last-of-type { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
}
