/* =========================================================
   FLO
   by mae
   ========================================================= */

:root {
  --background: #171719;
  --surface: #222123;
  --surface-light: #2c2929;
  --border: #45403e;
  --text: #e8dfd2;
  --muted: #a69b90;
  --accent: #a74b45;
  --accent-light: #ce7764;
  --gold: #c4a675;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(167,75,69,.12), transparent 42%),
    radial-gradient(ellipse at 100% 80%, rgba(196,166,117,.05), transparent 35%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color .2s ease;
}

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

::selection {
  color: var(--text);
  background: var(--accent);
}

.site {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto;
}

/* Top masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  font: 10px var(--mono);
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.masthead span:last-child {
  text-align: right;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 340px;
  margin: 22px 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(34,33,35,.99) 0%, rgba(34,33,35,.95) 65%, rgba(34,33,35,.6) 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--accent-light);
  font: 10px var(--mono);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-light);
}

h1 {
  margin: 0;
  font: italic 600 clamp(64px, 10vw, 108px)/.95 var(--serif);
  letter-spacing: -5px;
}

.hero-subtitle {
  max-width: 310px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-number {
  margin-top: 26px;
  color: var(--gold);
  font: 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-image {
  position: relative;
  min-height: 340px;
background: #3da4cc;
background: #222123;
background: linear-gradient(90deg, rgba(34, 33, 35, 1) 20%, rgba(34, 33, 35, 0) 50%);

}

.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.72) contrast(1.05);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
background: #222123;
background: linear-gradient(90deg, rgba(34, 33, 35, 1) 2%, rgba(34, 33, 35, 0) 50%);
}

/* Navigation */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}

nav a {
  flex: 1 1 auto;
  padding: 13px 18px;
  border-right: 1px solid var(--border);
  color: var(--text);
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
}

nav a:last-child {
  border-right: 0;
}

nav a:hover {
  background: var(--accent);
  color: #fff1e6;
}

/* Main layout */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 28px;
}

.main-column,
.sidebar {
  min-width: 0;
}

.panel {
  margin-bottom: 22px;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font: 600 22px/1.25 var(--serif);
}

.section-heading .index {
  color: var(--accent-light);
  font: 10px var(--mono);
  letter-spacing: 1px;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

p {
  margin: 0 0 14px;
}

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

.muted {
  color: var(--muted);
}

/* Selected chapters */

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chapter {
  padding: 15px;
  background: var(--surface-light);
  border: 1px solid var(--border);
}

.chapter .chapter-no {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-light);
  font: 10px var(--mono);
}

.chapter strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.chapter span:last-child {
  color: var(--muted);
  font-size: 12px;
}

/* Join form */

.join-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  background: var(--background);
  color: var(--text);
  font: 13px var(--sans);
}

input:focus,
textarea:focus {
  border-color: var(--accent-light);
}

textarea {
  min-height: 85px;
  resize: vertical;
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff1e6;
  cursor: pointer;
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.button:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: #171719;
}

button {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff1e6;
  cursor: pointer;
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

button:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: #171719;
}

/* Members */

.member-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
}

.member-count strong {
  color: var(--gold);
  font: 500 36px var(--serif);
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.member-table th,
.member-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.member-table th {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Codes */

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.code-card {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-light);
}

.code-placeholder {
  display: grid;
  place-items: center;
  min-height: 100px;
  border: 1px dashed #64514a;
  background: #211d1d;
  color: var(--gold);
  font: italic 25px var(--serif);
}

.code-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font: 10px var(--mono);
  text-align: center;
}

/* Sidebar */

.side-title {
  margin: 0 0 14px;
  color: var(--gold);
  font: 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list span:first-child {
  color: var(--muted);
}

.quote-panel {
  position: relative;
  overflow: hidden;
  background: #352321;
  border-color: #68403a;
}

.quote-mark {
  color: var(--accent-light);
  font: 58px/.8 var(--serif);
}

blockquote {
  margin: 14px 0;
  font: italic 20px/1.5 var(--serif);
}

.quote-credit {
  color: #d3a99b;
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.network-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}

.network-link:last-child {
  border-bottom: 0;
}

.network-link span:last-child {
  color: var(--accent-light);
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 10px/1.8 var(--mono);
  letter-spacing: .5px;
}

footer span:last-child {
  text-align: right;
}

/* Responsive */

@media (max-width: 760px) {
  .site {
    width: min(100% - 24px, 600px);
    margin: 20px auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 270px;
    padding: 32px;
  }

  .hero-image {
    min-height: 280px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  .sidebar .panel {
    margin-bottom: 0;
  }

  .sidebar .quote-panel {
    min-height: 100%;
  }
}

@media (max-width: 460px) {
  .masthead {
    font-size: 9px;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 72px;
  }

  nav a {
    flex: 1 1 33%;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }

  .panel {
    padding: 19px;
  }

  .chapter-list,
  .code-grid,
  .join-form,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  footer span:last-child {
    text-align: left;
  }
}