/* arecipe treatise — arecipe.croft.ing
   Part of the croft.ing family. The tectonic palette, restated. */

:root {
  --schist:  #2F3539;
  --granite: #A2A9AB;
  --ruddy:   #B75C34;
  --moss:    #3D6546;
  --ink:     #1C1E20;
  --canvas:  #E9E1D6;
}

/* --- Self-hosted fonts (latin subset, swap on load) --- */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/lora-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/lora-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--granite);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .tld {
  color: var(--ruddy);
}

.site-header .guide {
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* --- Links --- */
a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--ruddy);
}

/* --- Typography --- */
main {
  padding: 2.5rem 0 1rem;
}

.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--granite);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--schist);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
  color: var(--schist);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

p {
  margin: 0 0 1.1rem;
}

strong {
  font-weight: 600;
  color: var(--schist);
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1.1rem;
}

li {
  margin: 0 0 0.4rem;
}

ul a {
  overflow-wrap: anywhere;
}

.gate-lead {
  margin-bottom: 0.75rem;
}

/* --- Drystone-course divider between acts --- */
.course {
  border: 0;
  height: 14px;
  margin: 2.5rem auto;
  width: 220px;
  max-width: 60%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='14'%20viewBox='0%200%20220%2014'%20fill='none'%20stroke='%23A2A9AB'%20stroke-width='1.5'%3E%3Crect%20x='1'%20y='2.5'%20width='24'%20height='9'%20rx='1'/%3E%3Crect%20x='25'%20y='3'%20width='32'%20height='8'%20rx='1'/%3E%3Crect%20x='57'%20y='2.5'%20width='20'%20height='9'%20rx='1'/%3E%3Crect%20x='77'%20y='3'%20width='36'%20height='8'%20rx='1'/%3E%3Crect%20x='113'%20y='2.5'%20width='26'%20height='9'%20rx='1'/%3E%3Crect%20x='139'%20y='3'%20width='30'%20height='8'%20rx='1'/%3E%3Crect%20x='169'%20y='2.5'%20width='22'%20height='9'%20rx='1'/%3E%3Crect%20x='191'%20y='3'%20width='28'%20height='8'%20rx='1'/%3E%3C/svg%3E");
}

/* --- Sign-off --- */
.signoff {
  text-align: right;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--granite);
  margin: 2.5rem 0 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--granite);
  margin-top: 2.5rem;
  padding: 1.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--schist);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.8rem;
  }
  main {
    padding-top: 2rem;
  }
}
