/* luisahowell.com. Cyllo's look, quieter (shared/visual-system.md in the practice repo).
   Cream for reading, deep olive for the footer. Orange once: the dot before "Founder of Cyllo".
   No scripts, no third-party requests. Fonts self-hosted under the SIL Open Font License. */

@font-face {
  font-family: "GFS Didot";
  src: url("/fonts/gfs-didot-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --cream: #F4EDE3;
  --olive: #6E6C2C;
  --deep: #3A3A1E;
  --orange: #E9651F;
  --ink: #3A3A1E;
  --measure: 34rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: "Host Grotesk", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

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

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 1rem;
  background: var(--cream);
  padding: 0.5rem 0.75rem;
}

/* Page frame */

header,
main,
footer > div {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  font-family: "GFS Didot", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

main {
  flex: 1;
  padding-bottom: 5rem;
}

/* Home */

.intro {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2rem;
}

@media (min-width: 52rem) {
  .intro {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
    padding-top: 4rem;
  }
}

h1 {
  font-family: "GFS Didot", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

.label {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.credential { margin: 0 0 2rem; }

.lines {
  max-width: var(--measure);
  margin: 0 0 2rem;
}

.lines p { margin: 0 0 1rem; }

.founder {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.founder::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-0.1em);
}

.contact { margin: 0; }

.portrait {
  margin: 0;
  max-width: 20rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholders for Luisa's words. Never shipped: the release check fails if any remain. */

.todo {
  border: 2px dashed var(--olive);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

/* Prose pages: privacy, 404 */

.prose {
  max-width: 40rem;
  padding-top: 2rem;
}

.prose h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
}

.prose h2 {
  font-family: "Host Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

.prose p,
.prose ul { margin: 0 0 1rem; }

.prose li { margin-bottom: 0.35rem; }

.updated {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}

caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.5rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid rgba(58, 58, 30, 0.25);
}

th {
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */

footer {
  background: var(--deep);
  color: var(--cream);
  padding: 2.5rem 0 3rem;
  font-size: 1rem;
}

footer a { color: var(--cream); }

footer a:focus-visible { outline-color: var(--cream); }

footer p { margin: 0 0 0.5rem; }

footer nav {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

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