:root {
  color-scheme: light;
  --ink: #14120f;
  --muted: #69645d;
  --line: #ded8ce;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft: #f0ebe2;
  --accent: #bb5a3a;
  --accent-ink: #ffffff;
  --green: #617866;
  --shadow: 0 24px 70px rgba(36, 27, 18, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(222, 216, 206, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: Georgia, serif;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a,
.text-link {
  text-decoration: none;
}

nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 780px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  font-weight: 520;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 520;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy p,
.section-note {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 720px;
}

.hero-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.live-panel,
.profile-card,
.interest-form,
.profile-fact-panel,
.inquiry-form,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.live-panel {
  padding: 18px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-profile-list {
  display: grid;
  gap: 10px;
}

.mini-profile {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  text-decoration: none;
}

.mini-profile img {
  width: 62px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.mini-profile span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.two-column,
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
}

.profile-card {
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px rgba(36, 27, 18, 0.18);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--soft);
}

.profile-card-body {
  padding: 15px;
}

.profile-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.72);
}

.split-band {
  background: var(--ink);
  color: var(--paper);
}

.split-band .section-note,
.split-band .clean-list {
  color: rgba(251, 250, 247, 0.74);
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.clean-list li {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.create-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.8fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.interest-form,
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 12px;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.profile-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--soft);
}

.profile-meta {
  color: var(--muted);
  font-weight: 700;
}

.profile-name {
  margin: 10px 0 18px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 0 clamp(18px, 5vw, 72px) clamp(60px, 8vw, 100px);
}

.profile-section {
  margin-bottom: 32px;
}

.profile-fact-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  align-self: start;
}

.profile-fact-panel h2 {
  margin-bottom: 2px;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.04;
}

.profile-fact-panel h3 {
  margin-top: 6px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.fact-row span:first-child {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.guide-card {
  padding: 16px;
  box-shadow: none;
}

.loading-state,
.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.loader {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero-shell,
  .profile-hero,
  .profile-layout,
  .two-column,
  .split-band,
  .create-section {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .profile-grid,
  .interest-form,
  .inquiry-form,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .profile-card img {
    aspect-ratio: 5 / 4;
  }
}
