
/* ========================================
   BEGENT COMMUNITY
   Editorial design system
======================================== */

:root {
  --paper: #f8f7f4;
  --paper-dark: #efede8;
  --white: #ffffff;
  --ink: #20201e;
  --muted: #77756f;
  --line: #dedbd4;
  --red: #c83d32;
  --red-soft: #f5e7e3;
  --dark: #22211f;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --page-width: 1240px;
  --gutter: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--red);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--dark);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.header-inner,
.hero {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Announcement */

.announcement {
  min-height: 36px;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  background: var(--dark);
  color: #f8f7f4;
  font-size: 11px;
  letter-spacing: 0.015em;
}

.announcement p {
  margin: 0;
  text-align: center;
}

.announcement a {
  color: #f1a59c;
  margin-left: 6px;
}

.announcement a:hover {
  color: #fff;
}

.announcement-close {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #d7d4ce;
  cursor: pointer;
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: #c9c5bd;
}

.brand-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  padding: 28px 0 25px;
  color: var(--muted);
  font-size: 12px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
  background: var(--paper-dark);
  border-color: var(--line);
}

.icon-button i {
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--red);
}

.button {
  min-height: 43px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.button-dark:hover {
  background: var(--red);
  border-color: var(--red);
}

.button-outline {
  background: transparent;
  border-color: #c9c5bd;
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--ink);
  background: #fff;
}

.button-light {
  background: var(--paper);
  color: var(--dark);
}

.button-light:hover {
  background: #fff;
}

.header-join {
  min-height: 39px;
  padding: 9px 13px;
}

.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: clamp(38px, 7vw, 105px);
  padding-top: 86px;
  padding-bottom: 83px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  align-self: center;
  padding-block: 8px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
}

.eyebrow-line {
  display: inline-block;
  width: 23px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--red);
}

.hero h1 {
  margin: 0;
  max-width: 690px;
  font-family: var(--serif);
  font-size: clamp(43px, 6.2vw, 78px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.headline-accent {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
}

.hero-description {
  max-width: 440px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 29px;
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 11px;
}

.hero-footnote-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.hero-aside {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.aside-topline,
.aside-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.aside-topline {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.aside-editorial {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 11px;
  padding: 27px 0 25px;
  border-bottom: 1px solid var(--line);
}

.aside-index {
  padding-top: 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.aside-editorial h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.aside-editorial p {
  grid-column: 2;
  margin: 8px 0 0;
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.aside-bottom {
  margin-top: auto;
  padding: 19px 0 3px;
}

.aside-arrow {
  color: var(--red);
  font-size: 22px;
}

/* Section headings */

.discovery-section {
  padding-top: 84px;
  padding-bottom: 78px;
}

.section-heading,
.startup-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.startup-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.heading-period {
  color: var(--red);
}

.section-description {
  max-width: 490px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #b9b5ad;
  font-size: 11px;
  font-weight: 600;
}

.subtle-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* Discovery controls */

.discovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 37px;
  border-bottom: 1px solid var(--line);
}

.feed-tabs {
  display: flex;
  align-items: center;
  gap: 27px;
}

.feed-tab {
  position: relative;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.feed-tab:hover,
.feed-tab.active {
  color: var(--ink);
}

.feed-tab.active {
  font-weight: 700;
}

.feed-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--red);
}

.category-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.category-select-wrap::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  right: 4px;
  top: 45%;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-50%);
  pointer-events: none;
}

.category-select,
.rank-period {
  max-width: 100%;
  padding: 10px 22px 10px 4px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 27px;
}

.product-card {
  min-width: 0;
  padding: 27px 0 26px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  background: var(--paper-dark);
  border: 1px solid #e6e3dd;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #e8e3da;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 54px;
  letter-spacing: -0.08em;
}

.product-placeholder.tone-red {
  background: #ead8d2;
  color: #87352d;
}

.product-placeholder.tone-dark {
  background: #33322f;
  color: #f8f7f4;
}

.product-placeholder.tone-green {
  background: #dce2d5;
  color: #34432e;
}

.product-placeholder.tone-blue {
  background: #d9e1e6;
  color: #344b5b;
}

.product-featured-label {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.product-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9e5de;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.product-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title-wrap {
  min-width: 0;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-title a:hover {
  color: var(--red);
}

.product-maker {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.product-description {
  margin: 13px 0 0;
  min-height: 45px;
  color: #65635d;
  font-size: 11px;
  line-height: 1.8;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.product-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: #65635d;
  font-size: 9px;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.product-vote,
.product-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.product-vote:hover,
.product-subscribe:hover {
  color: var(--red);
}

.product-vote.active,
.product-subscribe.active {
  border-color: #e6b8b1;
  background: var(--red-soft);
  color: #9d332a;
}

.product-vote i,
.product-subscribe i {
  font-size: 11px;
}

.feed-loading,
.empty-state {
  grid-column: 1 / -1;
  padding: 34px 0;
  color: var(--muted);
  font-size: 12px;
}

.feed-loading p,
.empty-state {
  margin: 0;
}

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.feed-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* Rankings */

.rankings-section {
  padding: 77px 0;
  background: var(--paper-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rankings-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.3fr);
  gap: clamp(45px, 9vw, 125px);
}

.rankings-intro {
  padding-top: 8px;
}

.rankings-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 51px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.rankings-intro h2 span {
  color: var(--red);
  font-style: italic;
}

.rankings-intro > p:not(.eyebrow) {
  max-width: 300px;
  margin: 18px 0 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.rankings-content {
  min-width: 0;
}

.rankings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid #d4d0c8;
}

.rankings-header .eyebrow {
  margin-bottom: 6px;
}

.rankings-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.rank-period-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rank-period-wrap::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 42%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-50%);
  pointer-events: none;
}

.rank-period {
  padding-right: 22px;
  border: 1px solid #d4d0c8;
}

.ranking-row {
  display: grid;
  grid-template-columns: 29px 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #d4d0c8;
}

.ranking-position {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ranking-avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  overflow: hidden;
  border: 1px solid #d4d0c8;
  background: #e8e3da;
  font-family: var(--serif);
  font-size: 16px;
}

.ranking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-details {
  min-width: 0;
}

.ranking-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-name:hover {
  color: var(--red);
}

.ranking-category {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.ranking-score {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.ranking-score i {
  color: var(--red);
  font-size: 10px;
}

.ranking-bottom-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 19px;
  font-size: 11px;
  font-weight: 600;
}

.ranking-bottom-link:hover {
  color: var(--red);
}

/* Startup section */

.startup-section {
  padding-top: 83px;
  padding-bottom: 88px;
}

.startup-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 285px;
  margin-top: 32px;
  border: 1px solid var(--line);
}

.startup-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(25px, 4vw, 48px);
}

.feature-number {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.startup-feature-copy h3 {
  max-width: 350px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.startup-feature-copy p {
  max-width: 340px;
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.startup-feature-copy .text-link {
  margin-top: auto;
}

.startup-feature-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  background: #e7dfd5;
}

.art-frame {
  position: absolute;
  width: 180px;
  height: 220px;
  border: 1px solid rgba(60, 49, 42, 0.22);
  transform: rotate(-13deg);
}

.art-frame-one {
  left: 22%;
  top: 16%;
  background: #d8c9b9;
}

.art-frame-two {
  left: 37%;
  top: 10%;
  background: #f1e8dc;
  transform: rotate(9deg);
}

.art-big-number {
  z-index: 1;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(100px, 15vw, 175px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.12em;
  line-height: 1;
}

.art-caption {
  position: absolute;
  right: 15px;
  bottom: 14px;
  color: #6f6256;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* Builder invitation */

.builder-invitation {
  background: var(--red);
  color: #fff;
}

.invitation-inner {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 0.65fr);
  align-items: center;
  gap: 50px;
  padding-top: 63px;
  padding-bottom: 63px;
}

.invitation-inner .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.invitation-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 55px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.invitation-action p {
  max-width: 370px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.9;
}

/* Footer */

.site-footer {
  background: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.65fr);
  gap: 40px;
  padding-top: 53px;
  padding-bottom: 48px;
}

.footer-brand > p {
  max-width: 230px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.footer-column a {
  color: var(--muted);
  font-size: 11px;
}

.footer-column a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  padding-bottom: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

/* Search overlay */

.search-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(18vh, 150px) 20px 30px;
  background: rgba(27, 26, 24, 0.55);
}

.search-panel {
  width: min(520px, 100%);
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.13);
}

.search-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-panel-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  padding: 0 13px;
  border: 1px solid #c9c5bd;
  background: #fff;
}

.search-input-wrap i {
  color: var(--muted);
  font-size: 13px;
}

.search-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-input-wrap input:focus-visible {
  outline: none;
}

.search-submit {
  width: 100%;
  margin-top: 12px;
}

.search-hint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.noscript-notice {
  padding: 15px;
  background: var(--red-soft);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
}

/* Responsive: tablets */

@media (max-width: 900px) {
  :root {
    --gutter: 28px;
  }

  .header-inner {
    gap: 18px;
  }

  .main-nav {
    gap: 20px;
  }

  .header-actions {
    gap: 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 35px;
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .hero h1 {
    font-size: clamp(43px, 6.3vw, 62px);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .rankings-inner {
    gap: 45px;
  }

  .footer-main {
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
    gap: 25px;
  }
}

/* Responsive: phones */

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 70px;
  }

  body {
    font-size: 13px;
  }

  .announcement {
    padding: 7px 39px 7px 12px;
    font-size: 10px;
  }

  .announcement-close {
    right: 7px;
  }

  .header-inner {
    width: calc(100% - 32px);
    min-height: 65px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 27px;
    height: 27px;
  }

  .brand-label {
    font-size: 12px;
  }

  .main-nav,
  .login-link,
  .header-join {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .mobile-menu-toggle {
    display: inline-grid;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 16px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 43px;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 62px);
    line-height: 1.1;
  }

  .hero-description {
    margin-top: 19px;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-top: 23px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-footnote {
    margin-top: 24px;
  }

  .hero-aside {
    padding-bottom: 4px;
  }

  .aside-editorial {
    padding: 21px 0;
  }

  .aside-editorial h2 {
    font-size: 21px;
  }

  .discovery-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .section-heading,
  .startup-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .section-heading h2,
  .startup-heading h2 {
    font-size: 34px;
  }

  .section-description {
    font-size: 11px;
  }

  .discovery-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
  }

  .feed-tabs {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
  }

  .feed-tab {
    flex-shrink: 0;
    padding: 12px 0;
  }

  .category-select-wrap {
    align-self: flex-end;
    margin-bottom: 5px;
  }

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

  .product-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .product-visual {
    aspect-ratio: 1.7 / 1;
  }

  .product-description {
    min-height: 0;
  }

  .feed-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .rankings-section {
    padding: 52px 0;
  }

  .rankings-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .rankings-intro h2 {
    font-size: 40px;
  }

  .ranking-row {
    grid-template-columns: 22px 35px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 14px 0;
  }

  .ranking-avatar {
    width: 34px;
    height: 34px;
  }

  .ranking-score {
    gap: 4px;
    font-size: 9px;
  }

  .startup-section {
    padding-top: 55px;
    padding-bottom: 58px;
  }

  .startup-heading > .button {
    width: 100%;
  }

  .startup-feature {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  .startup-feature-copy {
    min-height: 255px;
    padding: 25px;
  }

  .startup-feature-copy h3 {
    font-size: 32px;
  }

  .startup-feature-art {
    min-height: 230px;
  }

  .art-frame {
    width: 150px;
    height: 190px;
  }

  .builder-invitation .invitation-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .invitation-inner h2 {
    font-size: 39px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 22px;
    padding-top: 38px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 15px;
    padding-bottom: 18px;
  }

  .search-overlay {
    padding: 65px 12px 20px;
  }

  .search-panel {
    padding: 21px;
  }

  .search-panel-heading h2 {
    font-size: 27px;
  }
}

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