@font-face {
  font-family: "Signifier";
  src: url("assets/fonts/signifier-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Signifier";
  src: url("assets/fonts/signifier-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --ink: #1c1b1a;
  --green: #2f5c47;
  --pale-green: #dadfcb;
  --muted: #716f68;
  --line: rgba(47, 92, 71, 0.18);
  --line-neutral: rgba(28, 27, 26, 0.1);
  --max: 1380px;
  --pad-x: clamp(24px, 3.2vw, 48px);
  --pad-y: clamp(20px, 2.2vw, 34px);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Signifier", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.frame {
  width: min(calc(100% - 24px), var(--max));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  background: var(--paper);
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 65px;
  padding: var(--pad-y) var(--pad-x) 18px;
}

.header > .brand-mark,
.header > .page-label {
  position: relative;
  justify-self: start;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.header > .brand-mark::after,
.header > .page-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 1px;
  background: var(--green);
}

.brand-mark {
  display: inline-block;
  width: clamp(180px, 18vw, 242px);
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.page-label,
.nav a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: end;
}

.nav a {
  transition: opacity 0.18s ease;
}

.home .nav {
  grid-column: 2;
  gap: clamp(24px, 2.5vw, 36px);
}

.nav a:hover {
  opacity: 0.68;
}

.brand-mark:focus-visible,
.nav a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 6px;
}

.hero {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: clamp(58px, 10vh, 118px) var(--pad-x) 0;
}

.home .hero {
  padding-top: 0;
}

.hero-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(32px, 5vh, 64px);
}

.home .meta-row {
  margin-top: 0;
}

.left-col {
  width: 100%;
  display: flex;
  flex-direction: column;
}

h1,
.main-title {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: clamp(3.15rem, 7vw, 5.95rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.statement {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.14rem, 1.55vw, 1.38rem);
  line-height: 1.55;
  letter-spacing: -0.008em;
}

.meta-row {
  margin-top: auto;
  padding-bottom: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  width: 100%;
}

.meta-block {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
  letter-spacing: 0.005em;
}

.meta-block.right {
  text-align: right;
  justify-self: end;
}

.side-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.side-value {
  color: var(--ink);
}

.mobile-contact {
  display: none;
}

.practice-section {
  display: block;
  padding: 20px var(--pad-x) 18px;
  border-top: 1px solid var(--line);
}

.practice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(34px, 3.2vw, 52px);
  align-items: start;
  width: 100%;
}

.practice article {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 128px;
  padding-top: 14px;
  padding-left: 18px;
}

.practice article::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--green) 0%, var(--pale-green) 100%);
}

.practice h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.practice p {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.64;
}

.about-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 var(--pad-x) 28px;
}

.about-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(24px, 4vh, 48px);
}

.about-hero > .legal-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
}

.main-col {
  max-width: 820px;
}

.main-title {
  max-width: 540px;
}

.entry-meta {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

.entry-meta .word-type {
  text-transform: lowercase;
}

.definition,
.origin-note {
  margin: 0;
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.84;
  letter-spacing: -0.004em;
}

.origin-note {
  margin-top: 28px;
}

.legal-footer {
  margin-top: auto;
  margin-left: auto;
  width: min(100%, 270px);
  padding-top: 10px;
  align-self: flex-end;
  text-align: right;
}

.legal-inner {
  position: relative;
  display: inline-block;
  padding-right: 10px;
  text-align: right;
}

.legal-inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--green) 0%, var(--pale-green) 72%, transparent 100%);
}

.legal-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-list {
  display: grid;
  gap: 7px;
}

.legal-item {
  display: grid;
  gap: 1px;
}

.legal-label {
  color: var(--muted);
  font-size: 0.59rem;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-value {
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .meta-row {
    margin-top: 28px;
    padding-bottom: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .meta-block.right {
    text-align: left;
    justify-self: start;
  }

  .practice-section {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .practice {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .practice article {
    min-height: 0;
    padding-top: 0;
  }

  .practice h2 {
    white-space: normal;
  }

  .about-hero {
    padding-bottom: 34px;
  }

  .legal-footer {
    width: 100%;
    max-width: 300px;
    margin-left: 0;
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --pad-x: 20px;
  }

  .frame {
    width: calc(100% - 12px);
    min-height: calc(100vh - 12px);
    margin: 6px auto;
  }

  .header {
    gap: 12px;
    min-height: 58px;
    padding: 18px var(--pad-x) 14px;
  }

  .header > .brand-mark::after,
  .header > .page-label::after {
    bottom: -14px;
  }

  .brand-mark {
    width: clamp(142px, 48vw, 184px);
  }

  .page-label,
  .nav a {
    font-size: 0.82rem;
    letter-spacing: 0.11em;
  }

  .hero {
    min-height: 52svh;
    padding: 28px var(--pad-x) 0;
  }

  h1,
  .main-title {
    margin-bottom: 18px;
    max-width: none;
    font-size: 3.35rem;
    line-height: 0.96;
    letter-spacing: -0.035em;
  }

  .statement {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .meta-row {
    margin-top: auto;
    padding-bottom: 8px;
  }

  .meta-block {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .side-label {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .practice-section {
    padding: 14px var(--pad-x) 20px;
  }

  .practice {
    gap: 24px;
  }

  .practice article {
    padding-left: 16px;
  }

  .practice h2 {
    margin-bottom: 8px;
    font-size: 0.94rem;
  }

  .practice p {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .about-hero {
    padding: 0 var(--pad-x) 28px;
  }

  .definition,
  .origin-note {
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .legal-footer {
    max-width: none;
  }

  /* Mobile homepage: use a comfortable reading flow instead of viewport centring. */
  .home .hero {
    flex: none;
    min-height: 0;
    padding-top: clamp(40px, 10vw, 52px);
    padding-bottom: 36px;
  }

  .home .hero-intro {
    flex: none;
    padding-block: 0;
  }

  .home h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.1rem);
    line-height: 1;
    margin-bottom: 22px;
  }

  .home .meta-row {
    display: none;
  }

  .home .practice-section {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .home .practice {
    gap: 36px;
  }

  .home .practice article {
    padding-left: 12px;
  }

  .home .mobile-contact {
    display: block;
    padding: 28px var(--pad-x) 32px;
    border-top: 1px solid var(--line);
  }

  .home .mobile-contact .side-label {
    margin-bottom: 4px;
  }

  .home .mobile-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    font-size: 1.1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }

  .home .mobile-contact a:focus-visible {
    outline: 1px solid var(--green);
    outline-offset: 4px;
  }
}
