/* iTrend Holding — local holding draft.
   Static pages, one sheet, system fonts. Not the live lock face. */

:root {
  --page: #f3f2ee;
  --raised: #faf9f6;
  --ink: #1a1c20;
  --muted: #5c6168;
  --faint: #8a8178;
  --line: #d9d4cb;
  --copper: #8a4b28;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 68rem;
  --measure: 38rem;
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

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

html {
  background: var(--page);
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--page);
}

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--page);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.mark img {
  width: 28px;
  height: 28px;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--copper);
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 var(--section);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lede {
  max-width: var(--measure);
  margin: 1.4rem 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.byline {
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.meta {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--section);
}

.post-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.post-list a {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-decoration: none;
}

.article {
  max-width: var(--measure);
  padding-bottom: var(--section);
}

.wrap.prose,
.wrap.article {
  max-width: none;
}

.wrap.prose :where(p, ul, ol),
.wrap.article :where(p, ul) {
  max-width: var(--measure);
}

.article p + p {
  margin-top: 1rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 1.75rem;
}

.hero-links a {
  font-family: var(--serif);
  font-size: 1.15rem;
  text-underline-offset: 0.28em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section {
  padding: var(--section) 0;
}

.section h2 {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
}

.mandate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.mandate article {
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink);
}

.mandate h3 {
  margin: 0.4rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.mandate p,
.prose p,
.standard p,
.page-hero p {
  margin: 0;
}

.num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.standard {
  background: var(--ink);
  color: #f4f1ea;
}

.standard .kicker {
  color: #e4b08a;
}

.standard p {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.35;
}

.plates {
  margin: 0;
}

.plates svg {
  width: min(100%, 40rem);
  display: block;
}

.plates text {
  font-family: var(--serif);
  font-size: 22px;
  fill: var(--ink);
}

.plates text.light {
  fill: #f3f2ee;
}

.page-hero {
  padding: clamp(2.2rem, 6vw, 4.5rem) 0 1.5rem;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.page-hero h1 {
  max-width: 22ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
}

.page-hero .meta {
  margin-top: 1.2rem;
}

.page-hero .byline {
  margin-top: 0.35rem;
}

.post-list .byline {
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.prose {
  max-width: var(--measure);
  padding-bottom: var(--section);
}

.prose p + p,
.channels li + li {
  margin-top: 1rem;
}

.channels {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: var(--measure);
}

.channels a {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.channels span {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .profiles {
  flex: 1 1 100%;
}

.section h2.note-title {
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

.note-title a {
  text-decoration: none;
}

@media (max-width: 800px) {
  .mandate {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .page-hero h1 {
    max-width: 18ch;
  }
}
