/* Diuhofart MVP — cream, gold, and dark brown from the official
   ginkgo emblem. Layout and type referenced from paperwrld.com.
   Not a copy of their store, products, or checkout. */

:root {
  --bg: #f8f3f0;
  --bg-soft: #f0e8db;
  --bg-chrome: #f3ebe4;
  --text: #4a3b2a;
  --heading: #2f2418;
  --muted: #6b5a48;
  --border: #e6d9be;
  --border-chrome: #e6d9be;
  --accent: #ad8520;
  --accent-hover: #8c6918;
  --on-accent: #f8f3f0;
  --font-heading: "Lora", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius-btn: 10px;
  --container: 1180px;
  --header-h: 76px;
  --shadow-none: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, .wordmark {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--heading);
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--border-chrome);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.wordmark {
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
}

.wordmark:hover { color: var(--accent-hover); }

.logo {
  display: flex;
  align-items: center;
  color: inherit;
}
.logo:hover { color: inherit; }
.logo img {
  height: 32px;
  width: auto;
  display: block;
}
.logo--wordmark img { height: 28px; }
.footer-brand .logo img { height: 96px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  padding: 8px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--heading);
  border-radius: 1px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--heading);
  background: transparent;
  color: var(--heading);
}

.btn[aria-disabled="true"] {
  opacity: 1;
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  pointer-events: none;
  cursor: default;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  text-align: center;
}

.hero-emblem {
  width: min(280px, 58vw);
  height: auto;
  margin: 0 auto 36px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 16ch;
  margin-inline: auto;
}

.hero .lede {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

.points {
  display: flex;
  justify-content: center;
  gap: 12px 40px;
  flex-wrap: wrap;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  max-width: 720px;
}

.points li {
  font-size: 15px;
  color: var(--text);
}

.points li + li {
  position: relative;
}

@media (min-width: 721px) {
  .hero .points li + li::before {
    content: "·";
    position: absolute;
    left: -24px;
    color: #b0b0b0;
  }
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.note {
  margin-top: 20px;
  font-size: 13px;
  color: #6b5a48;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--soft { background: var(--bg-soft); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}

.section-header p {
  margin-top: 10px;
  color: var(--muted);
}

/* Category / product grids */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  display: block;
  color: inherit;
}

.card:hover { color: inherit; }

.card-media {
  aspect-ratio: 1 / 1;
  background: #efe6d8;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.card h3 {
  margin-top: 14px;
  font-size: 18px;
}

.card p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  background: var(--bg);
  color: var(--muted);
}

.empty p + p { margin-top: 8px; }
.empty a { color: var(--accent); text-decoration: underline; }
.empty a:hover { color: var(--accent-hover); }

/* About teaser */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.story-media img {
  width: min(72%, 320px);
  height: auto;
}

.about-emblem {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 24px;
}

.story h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.story p { margin-bottom: 16px; }
.story .btn { margin-top: 8px; }

/* Page intro (inner pages) */
.page-intro {
  padding: 72px 0 24px;
  text-align: center;
}

.page-intro h1 { font-size: clamp(36px, 4vw, 48px); }
.page-intro p {
  margin: 16px auto 0;
  max-width: 46rem;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 24px 0 88px;
}

.prose h2 {
  font-size: 26px;
  margin: 36px 0 12px;
}

.prose p + p { margin-top: 16px; }

.prose ul {
  margin: 16px 0 0;
  padding-left: 1.2em;
}

.prose li + li { margin-top: 8px; }

/* Product template */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0 96px;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.product h1 { font-size: clamp(32px, 3vw, 42px); }

.product .points {
  justify-content: flex-start;
  margin: 28px 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.product .points li {
  padding-left: 0;
}

.product .hero-actions,
.product-actions {
  justify-content: flex-start;
  margin-top: 32px;
}

/* Footer */
.site-footer {
  background: var(--bg-chrome);
  border-top: 1px solid var(--border-chrome);
  padding: 48px 0 28px;
  color: var(--text);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .wordmark { font-size: 24px; }
.footer-brand p {
  margin-top: 12px;
  max-width: 28ch;
  font-size: 14px;
  color: var(--muted);
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }

.footer-base {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-chrome);
  font-size: 13px;
  color: #6b5a48;
}

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .story, .product, .footer-inner { grid-template-columns: 1fr; }
  .product { gap: 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-chrome);
    border-bottom: 1px solid var(--border-chrome);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 20px;
  }

  .nav.is-open { display: flex; }

  .nav a { display: block; width: 100%; padding: 12px 0; }

  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .points { gap: 8px 0; flex-direction: column; }
}


/* Product cards and photos */
.card-media {
  padding: 0;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .btn {
  margin-top: 14px;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  font-size: 14px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media {
  padding: 0;
  overflow: hidden;
}
.product .lede {
  margin-top: 14px;
  color: var(--muted);
}
.product-full-title {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.section-more {
  margin-top: 36px;
  text-align: center;
}
.section-more a {
  color: var(--accent);
  text-decoration: underline;
}
.section-more a:hover { color: var(--accent-hover); }
