/* Mañus Clan landing page. Theme: the Kaliwat design system ("Heritage, not SaaS"):
   warm paper, deep ink, one terracotta accent, serif for names and headings, hairlines instead of cards. */

:root {
  --paper: #f4efe6;
  --paper-2: #ece4d6;
  --card: #faf6ee;
  --ink: #2b2420;
  --ink-soft: #6b5f54;
  --accent: #9c5a3c;
  --accent-deep: #854a2f;
  --line: #d8cdba;
  --focus: #1d4e6b;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --page: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

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

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

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
}

.skip-link:focus {
  top: 12px;
}

/* ---- header ---- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.3px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
}

.wordmark img {
  display: block;
  height: 44px;
  width: auto;
  margin-right: 0.45em;
}

.wordmark b {
  font-weight: 700;
}

.wordmark-text span {
  font-weight: 400;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  white-space: nowrap;
}

.nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:not(.button):hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 28px;
  min-height: 48px;
}

.button:hover {
  background: var(--accent-deep);
}

.button-small {
  min-height: 44px;
  padding: 8px 20px;
}

.link-quiet {
  color: var(--accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 40px;
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  margin: 0;
}

h1 {
  font-weight: 600;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}

h1 .line {
  display: block;
}

h2 {
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
}

h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.lede {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 32ch;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-emblem {
  display: block;
  width: 127px;
  height: 280px;
  margin-top: 40px;
}

.nw {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- the photograph, mounted like a print ---- */
.photo {
  margin: 0;
}

.frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.frame picture {
  display: block;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.photo figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---- sections divided by hairlines ---- */
.band {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.band > .wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.band p {
  margin: 12px 0 0;
}

.steps,
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps {
  counter-reset: step;
}

.steps > li,
.rows > li {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.steps > li:first-child,
.rows > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.steps > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 8px;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--accent);
}

.steps > li > * {
  grid-column: 2;
}

.steps p,
.rows p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.rows > li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 8px 24px;
  align-items: baseline;
}

.rows p {
  margin: 0;
}

.note {
  color: var(--ink-soft);
  margin-top: 20px;
}

.reassure {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}

.reassure svg {
  flex: none;
  margin-top: 3px;
}

.reassure p {
  margin: 0;
}

/* ---- join panel ---- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px;
}

.panel .button {
  margin-top: 24px;
}

.pending {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

#how,
#members,
#join {
  scroll-margin-top: 16px;
}

/* ---- 404 ---- */
.notfound {
  padding-top: 96px;
  padding-bottom: 96px;
}

.notfound p {
  color: var(--ink-soft);
  margin: 0 0 28px;
}

/* ---- footer ---- */
.foot {
  border-top: 1px solid var(--line);
  padding: 18px 40px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}

/* ---- small screens ---- */
@media (max-width: 820px) {
  .bar {
    padding: 14px 24px;
  }

  .wrap {
    padding: 0 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(34px, 9.5vw, 40px);
  }

  .band {
    padding: 44px 0;
  }

  .band > .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rows > li {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 28px 24px;
  }

  .foot {
    padding: 16px 24px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 16px;
  }

  .nav a.nav-how,
  .nav a.nav-signin {
    display: none;
  }

  .wordmark {
    font-size: 22px;
  }

  .wordmark img {
    height: 36px;
  }
}

@media (max-width: 360px) {
  .bar {
    padding: 12px 16px;
    gap: 8px;
  }

  .wordmark {
    font-size: 19px;
  }

  .wordmark img {
    height: 32px;
    margin-right: 0.35em;
  }

  .button-small {
    padding: 8px 14px;
  }

  .wrap {
    padding: 0 16px;
  }
}

/* ---- motion: only a colour fade on hover, and none if the visitor asks for less ---- */
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background 0.2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
