/* Lookup Media LLC - lookupmedia.co */

:root {
  --ink:        #16181d;
  --ink-soft:   #4a5160;
  --ink-faint:  #767d8c;
  --bg:         #ffffff;
  --bg-alt:     #f6f7f9;
  --line:       #e3e6eb;
  --accent:     #1f5fd6;
  --accent-ink: #ffffff;
  --accent-dark:#164aa8;
  --radius:     10px;
  --wrap:       1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding-block: 26px;
}

.brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.brand a { color: inherit; text-decoration: none; }

.tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- sections ---------- */

section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section-intro {
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 60ch;
}

/* ---------- product grid ---------- */

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 620px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (min-width: 940px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

.product {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

/* Phones get a compact horizontal card so a long catalogue stays scannable;
   from 620px up the card becomes a normal vertical grid tile. */
/* The art is supplied as transparent cut-outs at roughly 3:4, so the frame matches
   that ratio and contains rather than crops - cropping a book cover cuts the title
   off. The parchment ground is deliberately fixed rather than themed: it sits
   directly behind the artwork, so it must stay light in dark mode for these dark
   covers to read. */
.product-cover {
  width: 104px;
  flex: none;
  align-self: flex-start;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f4f1ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0 14px 14px;
}

@media (min-width: 620px) {
  .product { flex-direction: column; }
  .product-cover {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
}

.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 8px;
}

@media (min-width: 620px) {
  .product-body { padding: 18px 18px 20px; }
}

.product-title {
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.35;
}

.product-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  flex: 1;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 4px 0 0;
}

.buy {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 8px;
  margin-top: 6px;
}
.buy:hover { background: var(--accent-dark); color: var(--accent-ink); }
.buy:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }

.delivery-note {
  margin: 28px 0 0;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* ---------- about / contact ---------- */

.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

#contact .wrap > p { max-width: 60ch; }

.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 34px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: baseline;
}

.footer-legal { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }

/* ---------- policy pages ---------- */

.page-head { padding-block: 48px 0; }
.page-head h1 { font-size: 2rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.page-head .updated { color: var(--ink-faint); margin: 0; font-size: 0.93rem; }

.page-body { padding-block: 28px 60px; }

/* Head and body share one measure so the title lines up with the prose. */
.page-head .wrap,
.page-body .wrap { max-width: 780px; }

.back-link { display: inline-block; margin-top: 34px; font-size: 0.95rem; }

/* ---------- dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e9ecf2;
    --ink-soft:  #a8b0be;
    --ink-faint: #838b99;
    --bg:        #14161a;
    --bg-alt:    #1b1e24;
    --line:      #2b3039;
    --accent:    #6ea3ff;
    --accent-ink:#0f1115;
    --accent-dark:#8fbaff;
  }
}
