/* Rookery Ventures shared layout — holding-company and placeholder modes. */

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

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

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--page-pad);
  top: 0.5rem;
  transform: translateY(-200%);
  background: var(--bg);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-md) var(--page-pad);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--header-fg);
  text-decoration: none;
}

.brand:hover {
  color: var(--header-fg);
}

.huddle-mark {
  width: 1.35rem;
  height: auto;
  display: block;
  color: var(--header-fg);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hostname {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.hostname[hidden] {
  display: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--header-fg);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Coming-soon / holding home hero */
.page-coming-soon .site-main,
.page-home .site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) var(--page-pad) 8.5rem;
  position: relative;
}

.hero-copy {
  max-width: none;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--text);
}

.hero-copy p {
  margin: 1.65rem 0 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.site-bottom {
  position: relative;
}

.huddle-hero-wrap {
  position: absolute;
  right: var(--page-pad);
  bottom: 100%;
  width: var(--huddle-w);
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

.huddle-hero {
  width: 100%;
  height: auto;
  display: block;
}

.huddle-bar {
  fill: var(--mark-bar);
}

.huddle-bar-center {
  fill: var(--mark-center);
}

/* Interior pages */
.page-interior .site-main {
  flex: 1;
  padding: var(--space-xl) var(--page-pad) var(--space-2xl);
}

.content {
  max-width: var(--content-max);
}

.content h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.03em;
}

.content h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.02em;
}

.content p {
  margin: 0 0 var(--space-md);
  color: var(--text);
}

.content p:last-child {
  margin-bottom: 0;
}

.mailto-link {
  font-weight: 500;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: var(--footer-gap) var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  color: var(--footer-fg);
  font-size: var(--fs-small);
}

.footer-entity {
  margin: 0;
  color: var(--footer-fg);
}

.footer-endorsement {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  color: var(--footer-fg);
  text-decoration: none;
}

.footer-endorsement:hover {
  color: var(--text);
}

.footer-endorsement .huddle-mark {
  width: 1.15rem;
  color: var(--footer-fg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--footer-fg);
  text-decoration: none;
}

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

.copyright {
  margin: 0 0 0 auto;
  color: var(--footer-fg);
}

.contact-line {
  margin: 0;
  width: 100%;
  font-size: var(--fs-small);
  color: var(--footer-fg);
}

.contact-line[hidden] {
  display: none;
}

.contact-line a {
  color: inherit;
}

/* Visible when stateOfOrganization is empty in site.json. Do not invent a state. */
.config-placeholder {
  border-bottom: 1px dashed color-mix(in srgb, var(--slate) 65%, transparent);
}

@media (max-width: 640px) {
  .page-coming-soon .site-main,
  .page-home .site-main {
    padding-bottom: 7rem;
    justify-content: flex-start;
    padding-top: var(--space-2xl);
  }

  .huddle-hero-wrap {
    width: min(9.5rem, 46vw);
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
  }

  .copyright {
    margin-left: 0;
  }

  .site-footer {
    padding-top: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
