/*
Theme Name: Enlomi
Theme URI: https://enlomi.com/
Author: Enlomi LLC
Description: A one-page site for Enlomi LLC, the company behind Preface and Greyfold Press. Self-contained: no plugins, no page builder, no external requests. Front-page text lives in inc/content.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary. Copyright Enlomi LLC. All rights reserved.
Text Domain: enlomi
Tags: one-page, business, minimal

The bundled Libertinus Serif faces in fonts/ are licensed separately under the
SIL Open Font License 1.1 — see fonts/OFL.txt.
*/

/* -- fonts ------------------------------------------------------------- */

@font-face {
  font-family: "Libertinus Serif";
  src: url("fonts/LibertinusSerif-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libertinus Serif";
  src: url("fonts/LibertinusSerif-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libertinus Serif";
  src: url("fonts/LibertinusSerif-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* -- tokens ------------------------------------------------------------ */

:root {
  --ground: #f4f3f0;   /* the page */
  --band: #e9e7e2;     /* a section set apart */
  --card: #ffffff;
  --ink: #17181a;
  --muted: #565a5f;
  --faint: #83878c;
  --rule: #d6d3cc;
  --accent: #36506b;   /* printer's ink blue */
  --accent-soft: #eef1f5;
  --on-accent: #ffffff;
  --focus: #36506b;

  --serif: "Libertinus Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;

  /* One scale, stepped by a perfect fourth. */
  --s-1: 0.9375rem;
  --s0: 1.1875rem;
  --s1: 1.4375rem;
  --s2: 1.875rem;
  --s3: 2.5rem;
  --s4: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);

  --measure: 36em;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.75rem);
  --wide: 68rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17181a;
    --band: #1e2023;
    --card: #232629;
    --ink: #e9e7e2;
    --muted: #a8adb3;
    --faint: #80868d;
    --rule: #34383d;
    --accent: #9db7d4;
    --accent-soft: #232b35;
    --on-accent: #14181d;
    --focus: #9db7d4;

    color-scheme: dark;
  }
}

/* -- base -------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--s0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: var(--s4); }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s1); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { text-decoration-thickness: 2px; }

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

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 0.65rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

.lede {
  font-size: var(--s1);
  line-height: 1.45;
  color: var(--muted);
  max-width: var(--measure);
  text-wrap: pretty;
}

.kicker {
  font-size: var(--s-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.75rem;
}

/* -- masthead ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.4rem;
}

.wordmark {
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: var(--s-1);
  letter-spacing: 0.02em;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

section { padding-block: clamp(3rem, 1.6rem + 5vw, 5.5rem); }
section.band { background: var(--band); }

.section-head { max-width: var(--measure); margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* -- hero -------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 1.8rem + 7vw, 7rem); }
.hero h1 { max-width: 15ch; margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--accent); }

/* -- ventures ---------------------------------------------------------- */

.ventures {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.venture {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
}

.venture h3 {
  font-size: var(--s2);
  margin-bottom: 0.3em;
}

.venture .summary {
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0.9em;
}

.venture .body {
  color: var(--muted);
  font-size: var(--s-1);
  line-height: 1.65;
  flex: 1 1 auto;
}

.venture .foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.status {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 2px;
  padding: 0.3em 0.7em;
}

.venture .foot a {
  font-size: var(--s-1);
  white-space: nowrap;
}

/* -- contact ----------------------------------------------------------- */

.contact h2 { font-size: var(--s2); }
.contact p {
  color: var(--muted);
  max-width: var(--measure);
}

.email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--s1);
  color: var(--accent);
}

/* -- article pages (Privacy, etc.) ------------------------------------- */

.page-body {
  max-width: var(--measure);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.page-body h1 { font-size: var(--s3); margin-bottom: 0.6em; }
.page-body h2 { font-size: var(--s2); margin-top: 1.6em; }
.page-body h3 { margin-top: 1.5em; }
.page-body ul,
.page-body ol { padding-left: 1.3em; }
.page-body li { margin-bottom: 0.4em; }
.page-body blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--s-1);
}
.page-body th,
.page-body td {
  text-align: left;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--rule);
}
.page-body img { border-radius: 3px; }

/* -- footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: var(--s-1);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* -- WordPress housekeeping -------------------------------------------- */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption {
  font-size: var(--s-1);
  color: var(--faint);
  margin-top: 0.5em;
}

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