/* Digital Book Mosaic: tokens, buttons, landing page and legal pages.
   Gallery wall: cool greys, black type, square corners and a vermilion accent. */

:root {
  --wall: #efefeb;
  --surface: #ffffff;
  --sunk: #e4e4df;
  --ink: #111111;
  --muted: #5c5c57;
  --line: #d6d6d0;
  --accent: #e0401f;
  --accent-hover: #c43516;
  --on-accent: #ffffff;
  --fb: #1877f2;
  --fb-hover: #0f63d6;
  --focus: #2d5bd8;
  --frame: #111111;
  --shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 18px 40px rgb(0 0 0 / 0.16);
  --display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  --text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #0e0e0f;
    --surface: #18181a;
    --sunk: #222225;
    --ink: #f2f2ee;
    --muted: #a5a59f;
    --line: #2f2f33;
    --accent: #ff6a45;
    --accent-hover: #ff8462;
    --on-accent: #1a0904;
    --focus: #8eaaff;
    --frame: #2c2c2f;
    --shadow: 0 2px 4px rgb(0 0 0 / 0.4), 0 18px 40px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--wall);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 2px;
  font: 600 0.98rem var(--text);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-fb {
  background: var(--fb);
  color: #fff;
}

.btn-fb:hover {
  background: var(--fb-hover);
}

.btn-ink {
  background: var(--ink);
  color: var(--wall);
}

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

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

.btn-accent:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-line {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--wall);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--wall) 92%, transparent);
  backdrop-filter: blur(10px);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  text-decoration: none;
}

.logo {
  display: block;
  width: auto;
  height: 32px;
}

.brand-name {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: '';
}

.menu-lines::before {
  transform: translateY(-7px);
}

.menu-lines::after {
  transform: translateY(5px);
}

@media (max-width: 820px) {
  .menu-btn {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--wall);
  }

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

  .site-nav a {
    padding: 12px 0;
  }

  .head-in {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }
}

/* ---------- landing ---------- */

.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.display span {
  color: var(--accent);
}

.lede {
  max-width: 34em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 32px;
}

.fine {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* A poster hung on the wall: thin black frame, white mat. */
.frame {
  padding: clamp(10px, 2.2%, 18px);
  border: clamp(5px, 1.2vw, 10px) solid var(--frame);
  background: #fbfbf8;
  box-shadow: var(--shadow);
}

.frame--small {
  padding: 6px;
  border-width: 5px;
}

.hero-wall {
  margin: 0;
  justify-self: center;
  width: min(100%, 470px);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.shapes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shapes h3,
.steps h3 {
  margin: 20px 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.shapes p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 18px;
  border-top: 4px solid var(--ink);
}

.step-num {
  display: block;
  color: var(--accent);
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
}

.sizes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 40px;
}

.sizes-grid .section-head {
  margin-bottom: 0;
}

/* The three sheets drawn to scale: A1 is 2× A3 on each side. */
.sizes {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.size {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--muted);
}

.size strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.size-sheet {
  display: block;
  aspect-ratio: 1 / 1.414;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), var(--line) calc(25% - 2px) 25%),
    repeating-linear-gradient(0deg, transparent 0 calc(25% / 1.414 - 2px), var(--line) calc(25% / 1.414 - 2px) calc(25% / 1.414)),
    var(--surface);
}

.size--a3 .size-sheet {
  width: clamp(56px, 8vw, 92px);
}

.size--a2 .size-sheet {
  width: clamp(79px, 11.3vw, 130px);
}

.size--a1 .size-sheet {
  width: clamp(112px, 16vw, 184px);
  border-color: var(--accent);
}

.closing {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--ink);
  color: var(--wall);
}

.closing-title {
  max-width: 15em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.closing .text-link:hover {
  color: var(--accent);
}

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

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

  .hero-wall {
    width: min(100%, 380px);
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- legal and company pages ---------- */

.doc {
  padding: 56px 0 80px;
}

.doc-wrap {
  max-width: 820px;
}

.doc-body {
  padding: 40px clamp(20px, 5vw, 52px);
  border-top: 6px solid var(--ink);
  background: var(--surface);
}

.doc-body h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: left !important;
}

.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin: 32px 0 10px;
  line-height: 1.3;
}

.doc-body h3 {
  font-size: 1.25rem;
}

.doc-body h4 {
  font-size: 1.05rem;
}

.doc-body p,
.doc-body li {
  color: var(--muted);
}

.doc-body strong {
  color: var(--ink);
}

.doc-body a {
  color: var(--accent);
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.3em;
}

.doc-body .get-in-touch {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 2rem;
  text-align: left !important;
}

.doc-body form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.doc-body label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

.doc-body input,
.doc-body textarea,
.doc-body select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--wall);
  color: var(--ink);
  font: inherit;
}

.doc-body input:focus,
.doc-body textarea:focus {
  border-color: var(--ink);
}

.doc-body button[type='submit'],
.doc-body .btn-primary {
  justify-self: start;
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--wall);
  font: 600 1rem var(--text);
  cursor: pointer;
}

.doc-body button[type='submit']:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.form-response.is-success {
  color: #2f7a46;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .form-response.is-success {
    color: #7fd39b;
  }
}

/* ---------- footer ---------- */

.site-foot {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.foot-brand p:not(.foot-name) {
  max-width: 28em;
  margin: 0;
  color: var(--muted);
}

.site-foot h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot li + li {
  margin-top: 6px;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-logo {
  display: block;
  width: auto;
  height: 28px;
  margin-right: auto;
}

.foot-bottom p,
.foot-bottom address {
  margin: 0;
  font-style: normal;
}

@media (max-width: 760px) {
  .foot-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}
