/* Brand House — studio + sign-in chrome, following fifthhousestudio.co.
   Studio fonts: Ivy Ora Display (The Ivy Foundry) and Gotham HTF (Hoefler&Co), self-hosted from /fonts.
   They're licensed to Fifth House — keep this repository private. */
@font-face { font-family: 'Ivy Ora Display'; src: url('/fonts/ivyora-display-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ivy Ora Display'; src: url('/fonts/ivyora-display-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('/fonts/gotham-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('/fonts/gotham-book.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('/fonts/gotham-medium.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
:root {
  --ground: #FFFDFA;
  --paper: #FFFFFF;
  --ink: #111111;
  --muted: #6E6862;
  --line: #E6E1DA;
  --line-strong: #111111;
  --tint: #F3EFE9;
  --danger: #9B2C1F;
  --display: 'Ivy Ora Display', Georgia, 'Times New Roman', serif;
  --sans: 'Gotham', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img { max-width: 100%; display: block; }

.display { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; line-height: .98; margin: 0; }
.display--xl { font-size: clamp(44px, 7vw, 76px); }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* buttons + fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 400 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--tint); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--ground); }
.btn--solid:hover { background: #333; color: var(--ground); }
.btn--block { width: 100%; }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: default; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; min-height: 44px; }
.linklike:hover { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.field label, .field__label { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; margin-bottom: 8px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__row label { margin-bottom: 8px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input:not([type]), textarea, select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 10px 14px; font: 300 14px/1.5 var(--sans); border-radius: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
textarea { resize: vertical; min-height: 96px; }
.notice { padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; margin: 0 0 18px; }
.notice--error { border-color: var(--danger); color: var(--danger); }
.notice p { margin: 0 0 10px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; }

/* top + foot bars */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 40px; border-bottom: 1px solid var(--line); }
.topbar__nav { display: flex; gap: 28px; align-items: center; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 400; }
.topbar__nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar__nav a[aria-current=page] { text-decoration: underline; text-underline-offset: 6px; }
.topbar__nav--end { justify-content: flex-end; }
.topbar__nav form { margin: 0; }
.wordmark { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wordmark__name { font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: .07em; text-transform: uppercase; }
.wordmark__by { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.footbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 40px; border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; justify-items: center; padding: 14px 16px; }
  .topbar__nav, .topbar__nav--end { justify-content: center; }
  .footbar { padding: 18px 16px; }
}

/* page layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 64px 40px 96px; min-height: calc(100vh - 160px); }
.wrap--narrow { max-width: 760px; }
@media (max-width: 720px) { .wrap { padding: 40px 16px 64px; } }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 400; text-decoration: none; }
.pill--on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pill--on:hover { color: var(--ground); }
.search { width: 300px; max-width: 100%; }

.newhub { position: relative; }
.newhub summary { list-style: none; }
.newhub summary::-webkit-details-marker { display: none; }
.newhub__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 320px; max-width: 90vw; background: var(--ground); border: 1px solid var(--ink); padding: 20px; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 44px 32px; }
.hub-card { display: flex; flex-direction: column; gap: 16px; }
.hub-card__cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.hub-card__cover:hover { color: inherit; opacity: .92; }
.hub-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-card__cover > span:first-child { font-size: 40px; letter-spacing: .06em; text-align: center; padding: 16px; }
.hub-card__chips { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; }
.hub-card__chips span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.hub-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hub-card__name { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 4px; }
.hub-card__meta p { margin: 0; word-break: break-all; }
.hub-card__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hub-card__links { display: flex; gap: 20px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 400; align-items: center; }
.hub-card__links a { text-decoration: none; }
.hub-card__links form { margin: 0; }
.badge { flex-shrink: 0; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; font-weight: 400; padding: 6px 10px; border: 1px solid var(--ink); white-space: nowrap; }
.badge--draft { border-color: #B5AEA6; color: var(--muted); }
.empty { text-align: center; padding: 96px 16px; border: 1px dashed var(--line); }
.empty .display { font-size: 40px; margin-bottom: 8px; }

.rows { list-style: none; margin: 32px 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row form { margin: 0; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }

/* sign-in pages */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth__brand { flex: 1 1 480px; min-height: 300px; background: #EDE6DC; position: relative; display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth__mark { text-align: center; }
.auth__name { font-family: var(--display); font-weight: 300; font-size: clamp(56px, 7vw, 92px); line-height: .95; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.auth__by { margin: 18px 0 0; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #4A4540; }
.auth__foot { position: absolute; left: 32px; bottom: 24px; margin: 0; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #4A4540; }
.auth__main { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 56px 20px; }
.auth__card { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.auth__title { font-size: 48px; }
.auth__card > p { margin: 0; }
.hub-choice { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hub-choice a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 24px; }
@media (max-width: 720px) { .auth__brand { min-height: 220px; } .auth__foot { display: none; } }
