:root {
  --md-charcoal: #1b1b1a;
  --md-ink: #26231f;
  --md-paper: #f5f1e8;
  --md-beige: #e5e0d3;
  --md-taupe: #7b7168;
  --md-earth: #5d4534;
  --md-moss: #7d8060;
  --md-water: #152b41;
  --md-mist: #aeb8bb;
  --md-clay: #ad7464;
  --md-ember: #743026;
  --md-line: rgba(38, 35, 31, 0.18);
  --md-muted: rgba(38, 35, 31, 0.68);
  --md-serif: Georgia, "Times New Roman", serif;
  --md-sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--md-beige);
  color: var(--md-ink);
  font-family: var(--md-sans);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.mark {
  display: inline-flex;
  width: 48px;
  height: 46px;
  align-items: center;
  justify-content: center;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.site-nav,
.header-actions,
.category-nav,
.catalog-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 32px);
  justify-content: center;
  font-size: 12px;
}

.site-nav a,
.header-actions a,
.text-link {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.header-actions a:hover,
.text-link:hover {
  border-bottom-color: currentColor;
}

.header-actions {
  gap: 18px;
  font-size: 12px;
}

.cart-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.cart-count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, 0.55);
  border-radius: 50%;
  font-size: 10px;
}

.page-shell {
  padding: 0 clamp(20px, 4vw, 56px);
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(58px, 9vw, 128px) 0 clamp(42px, 7vw, 92px);
  border-bottom: 1px solid var(--md-line);
}

.catalog-kicker,
.eyebrow,
.meta,
.filter-heading,
.filter-option,
.status,
.footer-label {
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.catalog-kicker {
  margin: 0 0 26px;
  color: var(--md-muted);
}

.brand-lockup {
  width: min(330px, 75vw);
  margin-bottom: 26px;
}

.catalog-title {
  max-width: 680px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6.8vw, 90px);
  font-weight: 400;
  line-height: 0.92;
}

.catalog-intro-copy {
  align-self: end;
  max-width: 400px;
  margin: 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.25;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--md-line);
}

.category-nav {
  flex-wrap: wrap;
  gap: 9px 20px;
}

.category-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--md-muted);
  font-size: 13px;
}

.category-nav a[aria-current="page"],
.category-nav a:hover {
  border-bottom-color: var(--md-ink);
  color: var(--md-ink);
}

.catalog-actions {
  gap: 18px;
  justify-content: flex-end;
}

.sort-control,
.filter-toggle {
  min-height: 38px;
  border: 1px solid var(--md-line);
  border-radius: 0;
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.sort-control {
  padding: 0 12px;
}

.filter-toggle {
  display: none;
  padding: 0 14px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 34px 0 clamp(58px, 9vw, 120px);
}

.filters {
  position: sticky;
  top: 20px;
  align-self: start;
}

.filter-group {
  padding: 0 0 21px;
  margin-bottom: 21px;
  border-bottom: 1px solid var(--md-line);
}

.filter-heading {
  display: block;
  margin-bottom: 14px;
  color: var(--md-muted);
}

.filter-option {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 30px;
  color: var(--md-ink);
  cursor: pointer;
}

.filter-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--md-charcoal);
}

.swatch {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(38, 35, 31, 0.26);
  border-radius: 50%;
}

.swatch.earth { background: var(--md-earth); }
.swatch.water { background: var(--md-water); }
.swatch.air { background: var(--md-taupe); }
.swatch.fire { background: var(--md-clay); }

.catalog-main {
  min-width: 0;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  color: var(--md-muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.product-card {
  min-width: 0;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background: var(--md-paper);
}

.product-visual::after {
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: rgba(38, 35, 31, 0.58);
  content: "moon & dawn";
  font-family: var(--md-serif);
  font-size: 12px;
  font-style: italic;
}

.notebook {
  position: relative;
  width: min(68%, 210px);
  aspect-ratio: 0.7;
  transform: rotate(-5deg);
  border: 1px solid rgba(38, 35, 31, 0.36);
  box-shadow: 13px 15px 0 rgba(38, 35, 31, 0.08);
}

.notebook::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 16%;
  width: 1px;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.notebook::after {
  position: absolute;
  right: 14%;
  bottom: 15%;
  left: 23%;
  content: "начни с\A чистого листа";
  white-space: pre;
  font-family: var(--md-serif);
  font-size: clamp(13px, 1.2vw, 18px);
  font-style: italic;
  line-height: 1.1;
}

.notebook.earth {
  background: #8b725c;
  color: var(--md-paper);
}

.notebook.water {
  background: #28445b;
  color: var(--md-paper);
}

.notebook.air {
  background: #cbc3b2;
  color: var(--md-ink);
}

.notebook.fire {
  background: #9b4d3f;
  color: var(--md-paper);
}

.product-copy {
  min-height: 134px;
  padding: 17px 18px 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  color: var(--md-muted);
}

.status {
  letter-spacing: 0;
}

.product-title {
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 1px solid transparent;
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
}

.product-title:hover {
  border-bottom-color: currentColor;
}

.product-details {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.price {
  font-size: 13px;
}

.add-button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--md-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--md-ink);
  font-size: 19px;
  line-height: 1;
}

.add-button:hover {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.collection-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  min-height: 400px;
  margin-top: clamp(42px, 7vw, 92px);
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.collection-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(30px, 5vw, 64px);
}

.collection-copy h2 {
  max-width: 420px;
  margin: 18px 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.collection-copy p {
  max-width: 390px;
  margin: 0 0 25px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 13px;
  line-height: 1.7;
}

.outline-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.collection-image {
  min-height: 280px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: clamp(38px, 6vw, 72px) clamp(20px, 4vw, 56px);
  background: var(--md-paper);
  border-top: 1px solid var(--md-line);
}

.footer-logo {
  width: min(220px, 100%);
  margin-bottom: 26px;
}

.footer-note {
  max-width: 240px;
  margin: 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: 16px;
  line-height: 1.35;
}

.footer-label {
  display: block;
  margin-bottom: 15px;
  color: var(--md-muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
  }

  .site-nav {
    gap: 12px 18px;
  }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    min-height: 70px;
    padding: 12px 20px;
  }

  .mark {
    width: 40px;
    height: 38px;
  }

  .site-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px 0 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .header-actions a:first-child {
    display: none;
  }

  .page-shell {
    padding: 0 20px;
  }

  .catalog-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .catalog-intro-copy {
    font-size: 21px;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .category-nav a {
    flex: 0 0 auto;
  }

  .catalog-actions {
    justify-content: space-between;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .filters {
    display: none;
  }

  .product-visual {
    min-height: 260px;
  }

  .collection-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .collection-image {
    min-height: 260px;
    grid-row: 1;
  }

  .collection-copy {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 325px;
  }

  .catalog-title,
  .account-heading h1,
  .states-page h1 {
    font-size: clamp(38px, 12vw, 46px);
    overflow-wrap: anywhere;
  }

  .promo-form {
    grid-template-columns: 1fr;
  }

  .promo-form .primary-button {
    width: 100%;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 20px 0;
  border-bottom: 1px solid var(--md-line);
  color: var(--md-muted);
  font-size: 11px;
}

.breadcrumb a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-page {
  padding: clamp(30px, 5vw, 72px) 0 clamp(58px, 9vw, 120px);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.74fr);
  gap: clamp(34px, 7vw, 104px);
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--md-line);
}

.gallery-frame {
  display: grid;
  min-height: clamp(280px, 36vw, 490px);
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: var(--md-paper);
}

.gallery-frame .notebook {
  width: min(62%, 280px);
}

.gallery-frame:nth-child(2) .notebook {
  transform: rotate(6deg);
}

.gallery-material {
  min-height: clamp(280px, 36vw, 490px);
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.gallery-note {
  display: grid;
  min-height: clamp(280px, 36vw, 490px);
  place-items: end start;
  padding: 28px;
  background: var(--md-earth);
  color: var(--md-paper);
}

.gallery-note p {
  max-width: 190px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(22px, 2.5vw, 36px);
  font-style: italic;
  line-height: 1.05;
}

.product-info {
  position: sticky;
  top: 25px;
}

.product-info .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.product-name {
  max-width: 520px;
  margin: 0 0 20px;
  font-family: var(--md-serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.94;
}

.product-description {
  max-width: 460px;
  margin: 0 0 28px;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: 19px;
  line-height: 1.35;
}

.product-price {
  margin: 0 0 26px;
  font-size: 18px;
}

.purchase-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 38px 38px 38px;
  min-height: 44px;
  border: 1px solid var(--md-line);
}

.quantity-control button {
  border: 0;
  border-right: 1px solid var(--md-line);
  background: transparent;
  color: var(--md-ink);
  font-size: 18px;
}

.quantity-control button:last-child {
  border-right: 0;
}

.quantity-control output {
  display: grid;
  place-items: center;
  font-size: 13px;
}

.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--md-charcoal);
  border-radius: 0;
  background: var(--md-charcoal);
  color: var(--md-paper);
  font-size: 13px;
}

.primary-button:hover {
  background: transparent;
  color: var(--md-ink);
}

.secondary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--md-ink);
  border-radius: 0;
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.product-note {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.65;
}

.product-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px 20px;
  margin: 38px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--md-line);
  font-size: 13px;
  line-height: 1.45;
}

.product-specs dt {
  color: var(--md-muted);
}

.product-specs dd {
  margin: 0;
}

.product-details-section {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 92px);
  padding: clamp(60px, 9vw, 128px) 0;
  border-top: 1px solid var(--md-line);
}

.product-details-section h2,
.recommendations h2 {
  max-width: 360px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.product-accordions {
  border-top: 1px solid var(--md-line);
}

.product-accordions details {
  border-bottom: 1px solid var(--md-line);
}

.product-accordions summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  flex: 0 0 auto;
  content: "+";
  font-size: 19px;
  line-height: 0.8;
}

.product-accordions details[open] summary::after {
  content: "-";
}

.product-accordions p {
  max-width: 610px;
  margin: 0 0 20px;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.75;
}

.recommendations {
  padding: 0 0 clamp(60px, 9vw, 120px);
}

.recommendation-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }
}

@media (max-width: 720px) {
  .product-gallery,
  .product-details-section {
    grid-template-columns: 1fr;
  }

  .product-details-section {
    gap: 34px;
  }

  .gallery-frame,
  .gallery-material,
  .gallery-note {
    min-height: 420px;
  }

  .recommendation-head {
    display: grid;
    align-items: start;
  }
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  min-height: min(760px, 78svh);
  border-bottom: 1px solid var(--md-line);
}

.brand-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(52px, 8vw, 112px) clamp(28px, 6vw, 84px);
}

.brand-hero-copy .brand-lockup {
  width: min(380px, 78vw);
}

.brand-hero-copy h1,
.story-intro h1 {
  max-width: 680px;
  margin: 0 0 26px;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 0.92;
}

.brand-hero-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.25;
}

.brand-hero-image {
  min-height: 420px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.brand-section {
  padding: clamp(64px, 10vw, 146px) 0;
  border-bottom: 1px solid var(--md-line);
}

.brand-section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: clamp(26px, 7vw, 100px);
}

.section-index {
  margin: 5px 0 0;
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.brand-large-copy {
  max-width: 760px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(29px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
}

.brand-support-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.opposites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 8vw, 112px);
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.opposite {
  min-height: 290px;
  padding: clamp(25px, 4vw, 54px);
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
}

.opposite.dark {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.opposite h3 {
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.opposite p {
  max-width: 350px;
  margin: 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.75;
}

.opposite.dark p {
  color: rgba(245, 241, 232, 0.72);
}

.principle-list {
  margin-top: clamp(44px, 7vw, 92px);
  border-top: 1px solid var(--md-line);
}

.principle {
  display: grid;
  grid-template-columns: 70px minmax(190px, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--md-line);
}

.principle-number {
  color: var(--md-muted);
  font-size: 11px;
}

.principle h3 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.principle p {
  max-width: 520px;
  margin: 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.75;
}

.material-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 510px;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--md-earth);
  color: var(--md-paper);
}

.material-image {
  min-height: 310px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.material-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(30px, 6vw, 86px);
}

.material-copy h2 {
  max-width: 500px;
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.material-copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(245, 241, 232, 0.76);
  font-size: 14px;
  line-height: 1.8;
}

.element-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.element-panel {
  min-height: 300px;
  padding: 24px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
}

.element-panel.earth { background: #b6a287; }
.element-panel.water { background: #496174; color: var(--md-paper); }
.element-panel.air { background: #d8d1c3; }
.element-panel.fire { background: #9c6556; color: var(--md-paper); }

.element-panel h3 {
  margin: 0 0 14px;
  font-family: var(--md-serif);
  font-size: 32px;
  font-weight: 400;
}

.element-panel p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.brand-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: clamp(56px, 9vw, 120px) 0;
}

.brand-cta h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.98;
}

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.7fr);
  gap: clamp(30px, 7vw, 96px);
  padding: clamp(64px, 11vw, 154px) 0 clamp(62px, 9vw, 122px);
}

.story-intro aside {
  align-self: end;
  max-width: 360px;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.story-chapter {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr) minmax(210px, 0.55fr);
  gap: clamp(24px, 5vw, 74px);
  padding: clamp(55px, 9vw, 126px) 0;
  border-top: 1px solid var(--md-line);
}

.story-year {
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.story-chapter h2 {
  max-width: 560px;
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(33px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.story-chapter p {
  max-width: 590px;
  margin: 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.85;
}

.story-chapter-image {
  min-height: 260px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.story-chapter-image.dark {
  display: grid;
  place-items: end start;
  padding: 25px;
  background: var(--md-water);
  color: var(--md-paper);
}

.story-chapter-image.dark span {
  max-width: 210px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-style: italic;
  line-height: 1.05;
}

@media (max-width: 900px) {
  .element-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-chapter {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .story-chapter-image {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .brand-hero,
  .material-layout,
  .story-intro,
  .brand-cta {
    grid-template-columns: 1fr;
  }

  .brand-hero-image {
    min-height: 330px;
    grid-row: 1;
  }

  .brand-section-head,
  .principle,
  .story-chapter {
    grid-template-columns: 1fr;
  }

  .principle {
    gap: 12px;
  }

  .material-image {
    min-height: 270px;
  }

  .story-chapter-image {
    grid-column: auto;
  }

  .brand-cta {
    align-items: start;
  }
}

.blog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.62fr);
  gap: clamp(30px, 7vw, 96px);
  padding: clamp(64px, 10vw, 142px) 0 clamp(48px, 8vw, 108px);
  border-bottom: 1px solid var(--md-line);
}

.blog-intro h1,
.article-heading h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(48px, 6.6vw, 90px);
  font-weight: 400;
  line-height: 0.92;
}

.blog-intro p {
  align-self: end;
  max-width: 355px;
  margin: 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.blog-categories {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--md-line);
}

.blog-categories a {
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: var(--md-muted);
  font-size: 13px;
}

.blog-categories a:hover,
.blog-categories a[aria-current="page"] {
  border-bottom-color: var(--md-ink);
  color: var(--md-ink);
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin: clamp(40px, 7vw, 92px) 0;
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.featured-image {
  min-height: 460px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(30px, 5vw, 70px);
}

.featured-copy .meta,
.article-heading .meta {
  margin: 0 0 20px;
  color: rgba(245, 241, 232, 0.68);
}

.featured-copy h2 {
  max-width: 430px;
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(35px, 4vw, 57px);
  font-weight: 400;
  line-height: 1;
}

.featured-copy p {
  max-width: 410px;
  margin: 0 0 26px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 13px;
  line-height: 1.75;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(60px, 10vw, 130px);
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.article-preview {
  min-height: 360px;
  padding: 23px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.article-preview:nth-child(2n) {
  background: #ded6c7;
}

.article-preview .meta {
  margin: 0 0 72px;
  color: var(--md-muted);
}

.article-preview h2 {
  max-width: 310px;
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.05;
}

.article-preview p {
  max-width: 290px;
  margin: 0 0 24px;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-heading {
  max-width: 920px;
  padding: clamp(65px, 11vw, 154px) 0 clamp(44px, 8vw, 92px);
}

.article-heading .meta {
  color: var(--md-muted);
}

.article-lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.3;
}

.article-cover {
  min-height: clamp(320px, 46vw, 680px);
  margin-bottom: clamp(56px, 9vw, 130px);
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 0.84fr) minmax(160px, 0.32fr);
  gap: clamp(25px, 5vw, 78px);
  padding-bottom: clamp(62px, 9vw, 126px);
}

.article-aside {
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.6;
}

.article-body {
  max-width: 650px;
}

.article-body h2 {
  margin: 46px 0 18px;
  font-family: var(--md-serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.article-body p {
  margin: 0 0 20px;
  color: var(--md-muted);
  font-size: 15px;
  line-height: 1.85;
}

.article-quote {
  margin: 38px 0;
  padding: 25px 0;
  border-top: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  font-family: var(--md-serif);
  font-size: clamp(25px, 3.3vw, 40px);
  line-height: 1.1;
}

.related-product {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--md-line);
  background: var(--md-paper);
}

.related-product .notebook {
  width: 116px;
  margin: 13px auto 28px;
}

.related-product h2 {
  margin: 0 0 8px;
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
}

.related-product p {
  margin: 0 0 16px;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .article-aside {
    display: none;
  }
}

@media (max-width: 720px) {
  .blog-intro,
  .featured-article,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 330px;
  }

  .related-product {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .article-list {
    grid-template-columns: 1fr;
  }
}

.utility-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  min-height: min(700px, 72svh);
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.utility-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(42px, 7vw, 100px);
}

.utility-copy .meta {
  margin: 0 0 20px;
  color: rgba(245, 241, 232, 0.66);
}

.utility-copy h1 {
  max-width: 530px;
  margin: 0 0 24px;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.94;
}

.utility-copy p {
  max-width: 410px;
  margin: 0 0 28px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 14px;
  line-height: 1.8;
}

.utility-preview {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--md-earth);
}

.utility-preview::before {
  position: absolute;
  inset: -20px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
  content: "";
  filter: blur(9px);
  opacity: 0.8;
}

.utility-preview::after {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 26, 0.28);
  content: "";
}

.coming-window {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 6vw, 84px);
  bottom: clamp(24px, 6vw, 84px);
  left: clamp(24px, 6vw, 84px);
  padding: 22px;
  border: 1px solid rgba(245, 241, 232, 0.62);
  color: var(--md-paper);
}

.coming-window span {
  display: block;
  margin-bottom: 34px;
  font-size: 11px;
  text-transform: uppercase;
}

.coming-window strong {
  display: block;
  max-width: 280px;
  font-family: var(--md-serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.02;
}

.coming-details,
.gift-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 104px);
  padding: clamp(64px, 10vw, 144px) 0;
  border-bottom: 1px solid var(--md-line);
}

.coming-details h2,
.gift-layout h1,
.contact-layout h1 {
  max-width: 540px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.98;
}

.simple-list {
  border-top: 1px solid var(--md-line);
}

.simple-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--md-line);
}

.simple-list span {
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.simple-list p {
  max-width: 530px;
  margin: 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.75;
}

.gift-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  align-items: start;
}

.gift-intro {
  padding-top: clamp(0px, 5vw, 60px);
}

.gift-intro .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.gift-intro p {
  max-width: 480px;
  margin: 27px 0 0;
  color: var(--md-muted);
  font-size: 15px;
  line-height: 1.8;
}

.certificate {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--md-water);
  color: var(--md-paper);
}

.certificate img {
  width: min(230px, 65%);
  filter: invert(1);
}

.certificate-main {
  margin: 55px 0;
  font-family: var(--md-serif);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
}

.certificate-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 11px;
}

.gift-options {
  padding-bottom: clamp(64px, 10vw, 140px);
}

.gift-options h2 {
  max-width: 540px;
  margin: clamp(56px, 9vw, 118px) 0 30px;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.nominal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.nominal-grid button {
  min-height: 116px;
  border: 0;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  border-radius: 0;
  background: var(--md-paper);
  color: var(--md-ink);
  font-family: var(--md-serif);
  font-size: clamp(25px, 3vw, 38px);
}

.nominal-grid button:hover,
.nominal-grid button[aria-pressed="true"] {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.8fr);
}

.contact-intro .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.contact-intro p {
  max-width: 400px;
  margin: 26px 0 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact-info {
  margin-top: 54px;
  border-top: 1px solid var(--md-line);
}

.contact-info a,
.contact-info span {
  display: block;
  padding: 17px 0;
  border-bottom: 1px solid var(--md-line);
  font-size: 14px;
}

.contact-info a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-form {
  padding: clamp(24px, 4vw, 48px);
  background: var(--md-paper);
  border: 1px solid var(--md-line);
}

.contact-form h2 {
  margin: 0 0 28px;
  font-family: var(--md-serif);
  font-size: 34px;
  font-weight: 400;
}

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

.field label {
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--md-line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--md-ink);
  resize: vertical;
}

.field textarea {
  min-height: 92px;
}

.form-note {
  margin: 15px 0 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .utility-hero,
  .coming-details,
  .gift-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .utility-preview {
    min-height: 380px;
    grid-row: 1;
  }

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

@media (max-width: 480px) {
  .simple-list article {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

.purchase-page-heading {
  max-width: 780px;
  padding: clamp(58px, 10vw, 142px) 0 clamp(34px, 6vw, 72px);
}

.purchase-page-heading .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.purchase-page-heading h1 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.95;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: clamp(32px, 7vw, 102px);
  align-items: start;
  padding-bottom: clamp(64px, 10vw, 144px);
}

.cart-list {
  border-top: 1px solid var(--md-line);
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(170px, 1fr) 116px 112px 32px;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  min-height: 156px;
  border-bottom: 1px solid var(--md-line);
}

.cart-thumb {
  display: grid;
  width: 92px;
  height: 112px;
  place-items: center;
  background: var(--md-paper);
}

.cart-thumb .notebook {
  width: 54px;
  transform: rotate(-4deg);
}

.cart-product-name {
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 1px solid transparent;
  font-family: var(--md-serif);
  font-size: 23px;
  line-height: 1.05;
}

.cart-product-name:hover {
  border-bottom-color: currentColor;
}

.cart-product-meta {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.55;
}

.cart-price,
.cart-total {
  font-size: 13px;
}

.cart-quantity {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  min-height: 32px;
  border: 1px solid var(--md-line);
}

.cart-quantity button {
  border: 0;
  border-right: 1px solid var(--md-line);
  background: transparent;
  font-size: 16px;
}

.cart-quantity button:last-child {
  border-right: 0;
}

.cart-quantity span {
  display: grid;
  place-items: center;
  font-size: 12px;
}

.remove-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--md-muted);
  font-size: 20px;
}

.remove-button:hover {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.cart-preview {
  position: absolute;
  z-index: 4;
  top: calc(100% - 12px);
  left: 95px;
  display: none;
  width: min(320px, calc(100vw - 44px));
  padding: 16px;
  border: 1px solid var(--md-line);
  background: var(--md-paper);
  box-shadow: 12px 14px 0 rgba(38, 35, 31, 0.08);
}

.cart-item:hover .cart-preview,
.cart-item:focus-within .cart-preview {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 14px;
}

.cart-preview .notebook {
  width: 55px;
  margin: auto;
}

.cart-preview strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--md-serif);
  font-size: 18px;
  font-weight: 400;
}

.cart-preview p {
  margin: 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.55;
}

.cart-mobile-preview {
  display: none;
}

.order-summary {
  position: sticky;
  top: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--md-line);
  background: var(--md-paper);
}

.order-summary h2,
.checkout-section h2 {
  margin: 0 0 23px;
  font-family: var(--md-serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 28px;
}

.promo-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--md-line);
  border-radius: 0;
  background: transparent;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  color: var(--md-muted);
  font-size: 13px;
}

.summary-row.total {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--md-line);
  color: var(--md-ink);
  font-size: 16px;
}

.summary-row.discount {
  color: var(--md-ember);
}

.summary-action {
  width: 100%;
  margin-top: 25px;
}

.checkout-form {
  border-top: 1px solid var(--md-line);
}

.checkout-section {
  padding: 31px 0;
  border-bottom: 1px solid var(--md-line);
}

.checkout-section h2 {
  margin-bottom: 25px;
}

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

.form-grid .field {
  margin: 0;
}

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

.delivery-options,
.payment-options {
  display: grid;
  gap: 1px;
  border: 1px solid var(--md-line);
}

.option-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 17px;
  background: var(--md-paper);
  cursor: pointer;
}

.option-control + .option-control {
  border-top: 1px solid var(--md-line);
}

.option-control input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--md-charcoal);
}

.option-control strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 400;
}

.option-control span {
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.5;
}

.option-price {
  color: var(--md-ink) !important;
  white-space: nowrap;
}

.agreement {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.6;
}

.agreement input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--md-charcoal);
}

@media (max-width: 980px) {
  .cart-item {
    grid-template-columns: 92px minmax(150px, 1fr) 100px 30px;
  }

  .cart-price {
    display: none;
  }
}

@media (max-width: 720px) {
  .purchase-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr) 28px;
    gap: 14px;
    min-height: 134px;
  }

  .cart-thumb {
    width: 68px;
    height: 92px;
  }

  .cart-total,
  .cart-preview {
    display: none;
  }

  .cart-quantity {
    margin-top: 10px;
  }

  .cart-mobile-preview {
    display: block;
    grid-column: 2 / -1;
    padding: 0 0 15px;
    color: var(--md-muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .cart-mobile-preview summary {
    cursor: pointer;
  }

  .cart-mobile-preview p {
    margin: 9px 0 0;
  }

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

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

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  min-height: 100svh;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  background: var(--md-paper);
}

.auth-mark {
  display: inline-flex;
  width: 48px;
  height: 46px;
}

.auth-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card {
  width: min(100%, 400px);
  margin: 48px 0;
}

.auth-card .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.auth-card h1 {
  margin: 0 0 30px;
  font-family: var(--md-serif);
  font-size: clamp(38px, 4.5vw, 57px);
  font-weight: 400;
  line-height: 0.95;
}

.auth-card .field {
  margin-bottom: 19px;
}

.auth-card .primary-button {
  width: 100%;
  margin-top: 6px;
}

.auth-links {
  display: grid;
  gap: 11px;
  margin-top: 23px;
  color: var(--md-muted);
  font-size: 12px;
}

.auth-links a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-footnote {
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-visual {
  min-height: 420px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.account-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(56px, 9vw, 126px) 0 clamp(36px, 6vw, 74px);
  border-bottom: 1px solid var(--md-line);
}

.account-heading .meta {
  margin: 0 0 17px;
  color: var(--md-muted);
}

.account-heading h1 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.95;
}

.account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
  padding: 35px 0 clamp(64px, 10vw, 142px);
}

.account-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 3px;
}

.account-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  color: var(--md-muted);
  font-size: 13px;
}

.account-nav a:hover,
.account-nav a[aria-current="page"] {
  border-bottom-color: var(--md-ink);
  color: var(--md-ink);
}

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

.profile-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 0 0 27px;
  border-bottom: 1px solid var(--md-line);
}

.profile-strip h2,
.account-section h2 {
  margin: 0 0 9px;
  font-family: var(--md-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.profile-strip p {
  margin: 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-section {
  padding: 38px 0 0;
}

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

.account-section-header h2 {
  margin: 0;
}

.account-section-header a {
  color: var(--md-muted);
  font-size: 12px;
}

.account-section-header a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.order-list {
  border-top: 1px solid var(--md-line);
}

.order-card {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) minmax(160px, 0.5fr);
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--md-line);
}

.order-contents {
  display: flex;
  align-items: center;
  height: 86px;
}

.order-contents .notebook {
  width: 54px;
  margin-right: -20px;
  box-shadow: 4px 5px 0 rgba(38, 35, 31, 0.1);
}

.order-contents .notebook:nth-child(2) {
  transform: rotate(8deg);
}

.order-info .meta {
  margin: 0 0 7px;
  color: var(--md-muted);
}

.order-info h3 {
  margin: 0 0 7px;
  font-family: var(--md-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.order-info p {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.55;
}

.order-actions {
  display: grid;
  justify-items: start;
  gap: 11px;
}

.order-actions .status {
  color: var(--md-moss);
}

.order-action-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.order-action-links a,
.order-action-links button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--md-ink);
  font-size: 11px;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.saved-item {
  padding: 15px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.saved-item .notebook {
  width: 86px;
  margin: 12px auto 25px;
}

.saved-item h3 {
  margin: 0 0 6px;
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.saved-item p {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
}

@media (max-width: 850px) {
  .auth-shell,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
    grid-row: 1;
  }

  .auth-panel {
    min-height: 640px;
  }

  .account-nav {
    position: static;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--md-line);
  }
}

@media (max-width: 720px) {
  .account-heading,
  .profile-strip {
    display: grid;
    align-items: start;
  }

  .order-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .order-actions {
    grid-column: 2;
  }

  .order-contents {
    height: 74px;
  }

  .order-contents .notebook {
    width: 46px;
  }

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

.account-page-title {
  margin: 0 0 28px;
  font-family: var(--md-serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.account-page-copy {
  max-width: 560px;
  margin: -8px 0 30px;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.75;
}

.account-form {
  max-width: 610px;
  padding-bottom: 40px;
}

.account-form .form-grid {
  margin-bottom: 26px;
}

.account-form .primary-button {
  min-width: 190px;
}

.account-order-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: clamp(30px, 6vw, 84px);
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 35px;
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.progress-step {
  min-height: 96px;
  padding: 14px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.45;
}

.progress-step.done {
  background: var(--md-paper);
  color: var(--md-ink);
}

.progress-step .status {
  display: block;
  margin-bottom: 8px;
  color: var(--md-moss);
}

.order-product-list {
  border-top: 1px solid var(--md-line);
}

.order-product-row {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--md-line);
}

.order-product-row input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--md-charcoal);
}

.order-product-row .cart-thumb {
  width: 66px;
  height: 82px;
}

.order-product-row .cart-thumb .notebook {
  width: 43px;
}

.order-product-row h3 {
  margin: 0 0 5px;
  font-family: var(--md-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.order-product-row p {
  margin: 0;
  color: var(--md-muted);
  font-size: 11px;
}

.order-detail-summary {
  align-self: start;
  padding: 23px;
  border: 1px solid var(--md-line);
  background: var(--md-paper);
}

.order-detail-summary h2 {
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-weight: 400;
}

.order-detail-summary .primary-button {
  width: 100%;
  margin-top: 20px;
}

.order-detail-summary .secondary-button {
  margin: 15px auto 0;
}

.account-empty {
  display: grid;
  min-height: 310px;
  place-items: center;
  padding: 35px;
  border-top: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  text-align: center;
}

.account-empty h2 {
  margin: 0 0 14px;
  font-family: var(--md-serif);
  font-size: 34px;
  font-weight: 400;
}

.account-empty p {
  max-width: 330px;
  margin: 0 0 22px;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.65;
}

.saved-item-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}

.saved-item-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--md-muted);
  font-size: 11px;
}

.saved-item-actions button:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 850px) {
  .account-order-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .order-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-product-row {
    grid-template-columns: auto 62px minmax(0, 1fr);
  }

  .order-product-row > strong {
    grid-column: 3;
  }
}

.payment-state {
  display: grid;
  min-height: calc(100svh - 82px);
  place-items: center;
  padding: clamp(50px, 8vw, 110px) 20px;
}

.payment-state-inner {
  width: min(100%, 660px);
  text-align: center;
}

.payment-state-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid var(--md-ink);
  border-radius: 50%;
  font-family: var(--md-serif);
  font-size: 35px;
}

.payment-state-mark.fail {
  border-color: var(--md-clay);
  color: var(--md-ember);
}

.payment-state .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.payment-state h1 {
  margin: 0 0 20px;
  font-family: var(--md-serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 0.95;
}

.payment-state p {
  max-width: 440px;
  margin: 0 auto 28px;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.payment-state-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--md-paper);
}

.admin-sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: 100svh;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.admin-logo {
  display: inline-flex;
  width: 48px;
  height: 46px;
  margin: 0 0 48px 8px;
}

.admin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.admin-nav {
  display: grid;
  gap: 2px;
}

.admin-nav-label {
  margin: 25px 0 8px 9px;
  color: rgba(245, 241, 232, 0.52);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-nav a {
  padding: 9px;
  border-left: 1px solid transparent;
  color: rgba(245, 241, 232, 0.7);
  font-size: 12px;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
  border-left-color: var(--md-paper);
  background: rgba(245, 241, 232, 0.09);
  color: var(--md-paper);
}

.admin-user {
  margin-top: auto;
  padding: 14px 9px 4px;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  color: rgba(245, 241, 232, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

.admin-user strong {
  display: block;
  color: var(--md-paper);
  font-weight: 400;
}

.admin-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--md-line);
}

.admin-topbar .meta {
  margin: 0 0 11px;
  color: var(--md-muted);
}

.admin-topbar h1 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.admin-primary-action {
  white-space: nowrap;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0;
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.admin-metric {
  min-height: 134px;
  padding: 18px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
}

.admin-metric span {
  display: block;
  margin-bottom: 30px;
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-metric strong {
  font-family: var(--md-serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
}

.admin-section {
  padding: 36px 0 0;
}

.admin-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.admin-section-header h2 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
}

.admin-section-header a {
  color: var(--md-muted);
  font-size: 12px;
}

.admin-section-header a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--md-line);
}

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

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

.admin-table th {
  color: var(--md-muted);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

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

.admin-table tbody tr:hover {
  background: rgba(229, 224, 211, 0.48);
}

.admin-table a {
  border-bottom: 1px solid transparent;
}

.admin-table a:hover {
  border-bottom-color: currentColor;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 11px;
}

.admin-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--md-moss);
  content: "";
}

.admin-status.draft::before { background: var(--md-taupe); }
.admin-status.waiting::before { background: var(--md-clay); }
.admin-status.hidden::before { background: var(--md-ember); }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.admin-toolbar-start,
.admin-toolbar-end {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-search,
.admin-select {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--md-line);
  border-radius: 0;
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.admin-search {
  min-width: min(240px, 62vw);
}

.admin-ghost-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--md-line);
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.admin-ghost-button:hover {
  border-color: var(--md-ink);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  padding-top: 28px;
}

.admin-form-grid .field {
  margin: 0;
}

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

.admin-form-grid .field input,
.admin-form-grid .field textarea,
.admin-form-grid .field select {
  border: 1px solid var(--md-line);
  padding: 10px 11px;
}

.admin-form-grid .field textarea {
  min-height: 120px;
}

.admin-form-section {
  padding: 28px 0;
  border-top: 1px solid var(--md-line);
}

.admin-form-section h2 {
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
}

.admin-upload {
  display: grid;
  min-height: 205px;
  place-items: center;
  border: 1px dashed rgba(38, 35, 31, 0.36);
  color: var(--md-muted);
  font-size: 12px;
  text-align: center;
}

.admin-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 0 0;
}

.admin-auth {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 25px;
  background: var(--md-charcoal);
}

.admin-auth-card {
  width: min(100%, 390px);
  padding: 32px;
  background: var(--md-paper);
}

.admin-auth-card .admin-logo {
  margin: 0 0 40px;
}

.admin-auth-card h1 {
  margin: 0 0 27px;
  font-family: var(--md-serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 1;
}

.admin-auth-card .field {
  margin-bottom: 18px;
}

.admin-auth-card .primary-button {
  width: 100%;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px 20px;
  }

  .admin-logo {
    width: 39px;
    height: 37px;
    margin: 0 0 13px;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 3px;
  }

  .admin-nav-label,
  .admin-user {
    display: none;
  }

  .admin-nav a {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 1px solid transparent;
  }

  .admin-nav a:hover,
  .admin-nav a[aria-current="page"] {
    border-left: 0;
    border-bottom-color: var(--md-paper);
  }

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

@media (max-width: 800px) {
  .admin-topbar {
    display: grid;
    align-items: start;
  }

  .admin-primary-action {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .admin-topbar,
  .admin-form-actions {
    display: grid;
    align-items: start;
  }

  .admin-primary-action {
    width: 100%;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

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

.admin-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--md-line);
  background: var(--md-line);
}

.admin-info-item {
  min-height: 112px;
  padding: 16px;
  background: var(--md-paper);
}

.admin-info-item span {
  display: block;
  margin-bottom: 22px;
  color: var(--md-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-info-item strong,
.admin-info-item a {
  font-family: var(--md-serif);
  font-size: 20px;
  font-weight: 400;
}

.admin-promo-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 17px;
  margin: 25px 0;
  border: 1px solid var(--md-line);
  background: #e4ddd0;
}

.admin-promo-callout strong {
  font-family: var(--md-serif);
  font-size: 24px;
  font-weight: 400;
}

.admin-promo-callout p {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .admin-info-grid {
    grid-template-columns: 1fr;
  }
}

.admin-editor-preview {
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--md-line);
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: 18px;
  line-height: 1.6;
}

.admin-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
  gap: 10px;
  align-items: end;
  height: 240px;
  padding: 20px;
  border: 1px solid var(--md-line);
}

.admin-chart-bar {
  display: grid;
  min-height: 30px;
  align-items: end;
  background: var(--md-water);
}

.admin-chart-bar span {
  padding: 6px 0;
  color: var(--md-muted);
  font-size: 10px;
  transform: translateY(26px);
}

.states-page {
  padding: clamp(55px, 9vw, 125px) 0;
}

.states-page h1 {
  max-width: 700px;
  margin: 0 0 55px;
  font-family: var(--md-serif);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.95;
}

.state-group {
  padding: 34px 0;
  border-top: 1px solid var(--md-line);
}

.state-group h2 {
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.state-sample {
  min-height: 250px;
  padding: 25px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.state-sample.dark {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.state-sample.dark .empty-state p {
  color: rgba(245, 241, 232, 0.72);
}

.state-label {
  display: block;
  margin-bottom: 36px;
  color: var(--md-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.state-sample.dark .state-label {
  color: rgba(245, 241, 232, 0.62);
}

.empty-state {
  display: grid;
  min-height: 170px;
  place-items: center;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 11px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-weight: 400;
}

.empty-state p {
  max-width: 290px;
  margin: 0 0 18px;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-error {
  padding: 12px 0;
  border-bottom: 1px solid var(--md-ember);
  color: var(--md-ember);
  font-size: 12px;
  line-height: 1.55;
}

.field input.is-error,
.field textarea.is-error {
  border-bottom-color: var(--md-ember);
}

.loading-state {
  display: grid;
  min-height: 170px;
  place-items: center;
}

.loading-lines {
  display: grid;
  width: min(100%, 260px);
  gap: 10px;
}

.loading-lines span {
  display: block;
  height: 10px;
  background: var(--md-beige);
  animation: md-pulse 1.4s ease-in-out infinite;
}

.loading-lines span:nth-child(2) { width: 77%; animation-delay: 0.12s; }
.loading-lines span:nth-child(3) { width: 56%; animation-delay: 0.24s; }

@keyframes md-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 680px) {
  .state-grid {
    grid-template-columns: 1fr;
  }
}
