:root {
  --cream: #f6efe5;
  --paper: #fffaf3;
  --paper-soft: rgba(255, 250, 243, 0.88);
  --navy: #10283d;
  --navy-2: #1e3b55;
  --ink: #1f2a36;
  --muted: #65707a;
  --sand: #c2a57a;
  --sand-soft: #ead9c0;
  --line: rgba(16, 40, 61, 0.14);
  --line-strong: rgba(16, 40, 61, 0.24);
  --shadow: 0 24px 70px rgba(16, 40, 61, 0.11);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(194, 165, 122, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 40, 61, 0.1), transparent 26%),
    linear-gradient(180deg, #fbf7ef 0%, var(--cream) 100%);
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.member-page {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
  padding: 24px 0 70px;
}

.simple-page {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-link img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fffaf3;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--navy-2);
  outline: none;
}

.button.secondary {
  background: rgba(255, 250, 243, 0.72);
  color: var(--navy);
  border-color: var(--line-strong);
}

.button.ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.commerce-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.commerce-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 18px 34px 12px;
  border-bottom: 1px solid var(--line);
}

.commerce-icons,
.commerce-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
}

.commerce-tools {
  justify-content: flex-end;
}

.round-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffaf3;
  font-size: 0.92rem;
}

.commerce-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--navy);
}

.commerce-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.commerce-brand strong {
  letter-spacing: 0.28em;
  font-size: 1.25rem;
}

.commerce-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.commerce-nav a {
  text-decoration: none;
}

.member-hero {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 60px 28px;
  text-align: center;
  color: #fffaf3;
  background:
    linear-gradient(rgba(9, 26, 42, 0.4), rgba(9, 26, 42, 0.56)),
    url("../images/kyoto_indigo_collection.png") center/cover;
}

.member-hero h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.member-hero p {
  margin: 0 auto 26px;
  max-width: 620px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(255, 250, 243, 0.9);
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 28px;
  padding: 46px 52px;
  background: #fffaf3;
}

.feature-band h2,
.artisan-band h2,
.section-card h1,
.section-card h2,
.section-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.08;
}

.feature-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.feature-band p,
.artisan-band p,
.section-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-band img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(16, 40, 61, 0.1);
}

.artisan-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  color: #fffaf3;
}

.artisan-image {
  min-height: 360px;
  background: url("../images/global_sourcing_overview.png") center/cover;
}

.artisan-copy {
  padding: 54px;
}

.artisan-band h2 {
  color: #fffaf3;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.artisan-band p {
  color: rgba(255, 250, 243, 0.82);
}

.product-strip {
  padding: 44px 50px 54px;
  background: var(--paper);
}

.product-strip h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fffaf3;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card div {
  padding: 15px;
}

.product-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.product-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.account-panel,
.section-card,
.plan-card,
.invoice-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.92);
  box-shadow: var(--shadow);
}

.account-panel {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.account-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.account-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.account-nav {
  display: grid;
  gap: 8px;
}

.account-nav a,
.account-nav button {
  text-align: left;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.account-nav a:hover,
.account-nav button:hover,
.account-nav a:focus-visible,
.account-nav button:focus-visible {
  border-color: var(--line);
  background: rgba(194, 165, 122, 0.1);
  outline: none;
}

.section-card {
  padding: 32px;
  margin-bottom: 22px;
}

.section-card h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  max-width: 850px;
}

.section-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.kicker {
  margin: 0 0 10px;
  color: var(--sand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  gap: 26px;
  align-items: stretch;
}

.form-card {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-card h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.form-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 800;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fffaf3;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sand);
  outline: 3px solid rgba(194, 165, 122, 0.22);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.password-row .button {
  min-width: 76px;
  border-radius: 14px;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.form-message.error {
  color: #a33a22;
}

.aside-art {
  min-height: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(16, 40, 61, 0.24), rgba(16, 40, 61, 0.54)),
    url("../images/shopify_homepage.png") top center/cover;
  box-shadow: var(--shadow);
}

.plan-grid,
.billing-grid,
.metrics-grid {
  display: grid;
  gap: 18px;
}

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

.plan-card {
  padding: 24px;
}

.plan-card.featured {
  border-color: rgba(194, 165, 122, 0.7);
  box-shadow: 0 26px 70px rgba(194, 165, 122, 0.2);
}

.plan-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2rem;
}

.price {
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-card ul {
  margin: 18px 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

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

.invoice-card {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(194, 165, 122, 0.12);
  color: var(--navy);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.due {
  background: rgba(185, 105, 57, 0.14);
  border-color: rgba(185, 105, 57, 0.28);
}

.status-pill.paid {
  background: rgba(97, 113, 71, 0.14);
  border-color: rgba(97, 113, 71, 0.26);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.workspace-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf3;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .commerce-header,
  .feature-band,
  .artisan-band,
  .account-layout,
  .form-shell,
  .billing-grid {
    grid-template-columns: 1fr;
  }

  .commerce-header {
    justify-items: center;
  }

  .commerce-icons,
  .commerce-tools {
    justify-content: center;
  }

  .account-panel {
    position: static;
  }

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

@media (max-width: 680px) {
  .member-page,
  .simple-page {
    width: min(calc(100% - 22px), 1180px);
  }

  .topline,
  .commerce-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .commerce-header {
    padding: 18px;
  }

  .member-hero {
    min-height: 420px;
  }

  .feature-band,
  .artisan-copy,
  .product-strip,
  .section-card,
  .form-card,
  .plan-card,
  .invoice-card {
    padding: 24px;
  }

  .plan-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
