@charset "UTF-8";

:root {
  --paper: #f5f2eb;
  --ink: #272922;
  --muted: #66685e;
  --line: #dcded2;
  --accent: #c7472b;
  --peach: #edac8e;
  --green: #315941;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
}

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

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

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

a {
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

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

.wrap {
  width: min(1220px, calc(100% - 80px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 14px;
  background: white;
  z-index: 20;
}

.skip:focus {
  top: 10px;
}

.topline {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: .035em;
}

.topline span {
  color: #d1d3c6;
  margin-left: 5px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  line-height: .96;
  font-weight: 750;
  letter-spacing: -1px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  font-family: Georgia, serif;
  font-size: 20px;
  padding-bottom: 5px;
}

.brand-mark>span {
  position: absolute;
  right: -7px;
  top: -10px;
  background: var(--paper);
  padding: 0 3px;
  color: var(--accent);
  font-size: 20px;
}

.brand-sub {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.5px;
  margin-top: 5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
}

.header-note {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-block: clamp(30px, 4.5vw, 44px);
  align-items: center;
}

.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 14px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 7px 1px 0;
}

h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 600;
  margin-bottom: 18px;
}

h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-description {
  color: var(--muted);
  max-width: 450px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  transition: background .15s, transform .15s;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.dark {
  background: var(--ink);
  color: white;
}

.dark:hover {
  background: #454938;
}

.outline {
  background: transparent;
  border-color: #bfc2b4;
}

.outline:hover {
  background: #e9e9df;
}

.hero-footnote {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}

.editorial-card {
  background: var(--peach);
  border-radius: 5px 70px 5px 5px;
  padding: 22px 26px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  position: relative;
  z-index: 1;
}

.issue {
  margin: 5px 14px 0 0;
}

.big-plus {
  position: absolute;
  right: -5px;
  top: 38px;
  font-family: Georgia, serif;
  font-size: 245px;
  line-height: 1;
  color: #d58c6d;
  transform: rotate(-14deg);
  opacity: .5;
}

.editorial-card>p {
  position: relative;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.9px;
  margin: 48px 0 20px;
}

.editorial-bottom {
  border-top: 1px solid #c98b70;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.5;
  position: relative;
}

.circle-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.principles {
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 11px;
  color: var(--accent);
}

.principles strong {
  color: var(--muted);
  margin-left: 12px;
  font-size: 12px;
  font-weight: 500;
}

.catalog {
  padding-block: 64px 60px;
}

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

.section-heading .eyebrow {
  margin-bottom: 9px;
}

h2 {
  font-size: 33px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1.2px;
  margin-bottom: 0;
}

#result-count {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 3px;
}

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

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffefa;
  border: 1px solid var(--line);
  padding: 0 15px;
  min-height: 48px;
  flex: 1;
  max-width: 590px;
  border-radius: 6px;
}

.search-field>span {
  font-size: 25px;
  color: var(--muted);
  transform: rotate(-35deg);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.sort-field select {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 9px;
  color: var(--ink);
  font-size: 12px;
  min-height: 46px;
}

.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 21px 0 29px;
}

.category {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 12px;
  min-height: 40px;
}

.category[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.category:hover:not([aria-pressed="true"]) {
  background: #e6e7dc;
}

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

.product-card {
  min-width: 0;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-visual {
  position: relative;
  padding: 18px;
  background: white;
  aspect-ratio: 1;
  border-bottom: 1px solid #eeeee8;
}

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

.discount-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  background: var(--green);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-title {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.product-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.product-pricing {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-top: auto;
  padding-top: 8px;
}

.old-price {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.from-label {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}

.price {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1px;
}

.price-date {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 17px;
}

.product-link {
  width: 100%;
  color: var(--accent);
  background: #f9ede5;
  font-size: 12px;
  padding-inline: 8px;
}

.product-link:hover {
  background: #f5dfd0;
}

.load-more {
  display: flex;
  margin: 32px auto 0;
}

.empty-state {
  text-align: center;
  padding: 58px 20px;
  border: 1px dashed #c5c8b7;
  border-radius: 8px;
  background: #efefe5;
}

.empty-symbol {
  font-family: Georgia, serif;
  font-size: 62px;
  color: var(--accent);
  line-height: 1;
}

.empty-state h3 {
  margin: 15px 0 12px;
  font-size: 23px;
  font-weight: 500;
}

.empty-state p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.catalog-disclaimer {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  max-width: 750px;
  margin: 35px auto 0;
}

.how-section {
  background: #e9ebdf;
  border-block: 1px solid var(--line);
  padding: 60px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.how-grid h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.25;
}

.how-grid h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.how-grid p:not(.eyebrow) {
  color: #575d50;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 23px;
}

.how-grid p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 34px;
}

.footer-brand {
  font-size: 20px;
}

.site-footer p,
.site-footer>a:last-child {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.studio-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
}

.text-link {
  font-size: 13px;
}

.studio {
  padding-block: 45px 70px;
}

.studio-heading h1 {
  font-size: 36px;
  letter-spacing: -1.2px;
  margin: 0;
}

.notice {
  background: #ebece2;
  border-left: 3px solid var(--green);
  padding: 17px 20px;
  color: #4b5346;
  font-size: 13px;
  line-height: 1.8;
  border-radius: 0 5px 5px 0;
}

.notice code {
  font-size: 12px;
}

.studio-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  margin: 30px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.studio-summary>div {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.studio-summary>div+div {
  border-left: 1px solid var(--line);
}

.studio-summary strong {
  font-size: 35px;
  font-weight: 550;
  letter-spacing: -1px;
}

.studio-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.export-box .button {
  align-self: start;
}

.studio-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 900px;
}

.feedback:not(:empty) {
  padding: 14px 18px;
  background: #e1eddf;
  color: #284d30;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.7;
}

.feedback.is-error {
  background: #fbe5df;
  color: #9b2819;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

#admin-count {
  margin: 20px 0 10px;
}

.admin-products {
  border-top: 1px solid var(--line);
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row>img {
  height: 76px;
  width: 76px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  flex-shrink: 0;
}

.admin-row-info {
  min-width: 0;
  flex: 1;
}

.admin-row h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.admin-row p {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  font-size: 10px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 4px;
}

.draft {
  background: #e8e4da;
  color: #635b4e;
}

.published {
  background: #dce9d8;
  color: #305634;
}

dialog {
  width: min(740px, calc(100% - 32px));
  max-height: 90dvh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}

dialog::backdrop {
  background: #252a22aa;
  backdrop-filter: blur(3px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.dialog-heading .eyebrow {
  margin-bottom: 8px;
}

.dialog-heading h2 {
  font-size: 28px;
}

.close-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
}

.compact {
  font-size: 12px;
  padding: 12px 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}

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

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  background: #fffefa;
  border: 1px solid #cbd0c1;
  padding: 12px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--ink);
  min-height: 46px;
}

.form-grid textarea {
  resize: vertical;
}

.form-grid input:disabled {
  background: #e7e7df;
}

.optional {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

.form-grid label:has(.optional) {
  position: relative;
}

.form-grid .optional {
  position: absolute;
  right: 0;
  top: 2px;
}

.form-grid small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

.review-check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 25px;
  padding: 14px;
  background: #e9ebdf;
  border-radius: 5px;
}

.review-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.form-error {
  color: #a32f20;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.dialog-note {
  text-align: right;
  margin: 15px 0 0;
  font-size: 11px;
}

@media (min-width: 1500px) {
  .hero {
    padding-block: 55px;
  }
}

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .header-note {
    display: none;
  }

  .hero {
    gap: 35px;
    grid-template-columns: 1.2fr 1fr;
  }

  h1 {
    font-size: 38px;
  }

  .editorial-card {
    padding: 20px;
  }

  .editorial-card>p {
    font-size: 22px;
  }

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

  .how-grid {
    gap: 50px;
  }

  .studio-heading h1 {
    font-size: 30px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .topline {
    font-size: 10px;
    padding: 9px 12px;
  }

  .topline span {
    display: none;
  }

  .site-header {
    min-height: 86px;
    gap: 15px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 12px;
  }

  .brand-mark>span {
    font-size: 14px;
    right: -6px;
    top: -8px;
  }

  .brand-sub {
    font-size: 14px;
  }

  nav {
    gap: 15px;
    font-size: 11px;
  }

  nav a:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 22px;
    gap: 20px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 14px;
    max-width: 100%;
  }

  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }

  .editorial-card {
    min-height: auto;
    border-radius: 5px 32px 5px 5px;
    padding: 12px 14px;
  }

  .card-top {
    font-size: 8px;
    gap: 16px;
  }

  .editorial-card>p {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.1;
  }

  .editorial-bottom {
    padding-top: 6px;
    font-size: 9px;
  }

  .big-plus {
    right: 4px;
    top: 0;
    font-size: 80px;
  }

  .editorial-bottom {
    padding-top: 12px;
  }

  .principles {
    gap: 10px;
    padding: 17px 0;
  }

  .principles>span {
    flex: 1;
  }

  .principles strong {
    display: block;
    font-size: 10px;
    margin: 6px 0 0;
  }

  .catalog {
    padding-block: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
  }

  .section-heading .eyebrow {
    font-size: 10px;
  }

  .filters {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .sort-field {
    justify-content: space-between;
  }

  .sort-field select {
    flex: 1;
    max-width: 220px;
  }

  .category-list {
    margin-block: 18px 23px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 2px 9px;
  }

  .category {
    white-space: nowrap;
    padding-inline: 14px;
  }

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

  .product-visual {
    padding: 10px;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    font-size: 12px;
    line-height: 1.55;
  }

  .price {
    font-size: 22px;
  }

  .price-date {
    font-size: 9px;
    line-height: 1.6;
  }

  .product-link {
    font-size: 10px;
  }

  .how-section {
    padding: 22px 0;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .how-grid h2 {
    font-size: 21px;
    line-height: 1.2;
  }

  .how-grid h3 {
    font-size: 12px;
    margin: 0 0 6px;
  }

  .how-grid p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .how-grid .eyebrow {
    margin-bottom: 10px;
  }

  .site-footer {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding-block: 18px;
  }

  .footer-brand {
    font-size: 16px;
  }

  .site-footer p,
  .site-footer>a:last-child {
    font-size: 10px;
  }

  .studio-label {
    display: none;
  }

  .studio {
    padding-top: 30px;
  }

  .studio-heading h1 {
    font-size: 31px;
    line-height: 1.15;
  }

  .studio-summary {
    grid-template-columns: 1fr 1fr;
  }

  .studio-summary>div {
    padding: 18px;
  }

  .studio-summary>.export-box {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .notice {
    padding: 13px;
    font-size: 12px;
  }

  .admin-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  .admin-row>img {
    width: 56px;
    height: 56px;
  }

  .admin-row h2 {
    font-size: 12px;
  }

  .admin-row>.button {
    padding: 10px 13px;
    font-size: 11px;
  }

  dialog {
    padding: 20px 16px;
    max-height: calc(100dvh - 24px);
  }

  .dialog-heading h2 {
    font-size: 25px;
  }

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

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    font-size: 16px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }

  .dialog-actions .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
