:root {
  --bg: #f6f3ee;
  --paper: #fffdf9;
  --ink: #1f2328;
  --muted: #5d636b;
  --accent: #7a4b2a;
  --rule: #ddd5c8;
  --sky: #24364a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --paper: #1b1f24;
    --ink: #e8e4dd;
    --muted: #a5a29c;
    --accent: #d39a6a;
    --rule: #2e333a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

body.dark { background: #0b0e12; color: #e9e6e0; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8,12,18,.4) 0%, rgba(8,12,18,.35) 55%, rgba(11,14,18,1) 100%),
    var(--hero-image, radial-gradient(ellipse at 50% 0%, #5d7a99 0%, #2a3e55 45%, #0b0e12 100%));
  background-size: cover;
  background-position: center 30%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; }
.hero-text { position: relative; }
.hero h1 {
  font-size: clamp(5rem, 24vw, 15rem);
  font-weight: normal;
  letter-spacing: .04em;
  margin: 0;
  line-height: .9;
  text-shadow: 0 4px 40px rgba(0,0,0,.45);
}
.sub { margin: 18px 0 0; font-size: clamp(1rem, 2.6vw, 1.25rem); opacity: .85; }
.eyebrow {
  font: 600 .78rem/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
  margin: 0 0 18px;
}
.scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; opacity: .7; text-decoration: none; font-size: 1.6rem;
}

.photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
}
.photos figure { position: relative; margin: 0; overflow: hidden; background: #151a20; }
.photos figure.wide { grid-column: 1 / -1; }
.photos img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.photos figure.wide img { aspect-ratio: 16 / 9; }
.photos figure:hover img { transform: scale(1.03); }
.photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: #fff; font-size: .95rem; line-height: 1.4;
}
@media (max-width: 640px) {
  .photos { grid-template-columns: 1fr; }
}

.credits { max-width: 860px; margin: 0 auto; padding: 48px 16px 64px; color: #9a9790; font-size: .8rem; }
.credits h2 { font: 600 .75rem/1.2 system-ui, -apple-system, sans-serif; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 12px; }
.credits a { color: #c9b9a6; }

/* dogmog link at the bottom of every page */
.promo {
  max-width: 860px; margin: 0 auto; padding: 24px 16px 40px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  text-align: center; font-size: .9rem; color: var(--muted);
}
.promo p { margin: 0; }
.promo img { display: block; border-radius: 6px; }
body.dark .promo { color: #9a9790; }
body.dark .promo a { color: #c9b9a6; }
/* On the for-sale page it sits under the card, lined up with the card's text */
.promo-card { margin: 0; padding: 20px calc(clamp(24px, 6vw, 48px) + 1px) 0; justify-content: flex-start; text-align: left; }

/* For-sale page */
.sale-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.sale { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.card { background: var(--paper); border: 1px solid var(--rule); padding: clamp(24px, 6vw, 48px); }
.domain { font-size: clamp(2rem, 7vw, 3.4rem); margin: 0 0 6px; word-break: break-word; line-height: 1.1; }
.price { font: 600 1.4rem/1.3 system-ui, -apple-system, sans-serif; color: var(--accent); margin: 10px 0 18px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  text-decoration: none;
  font: 600 1rem/1 system-ui, -apple-system, sans-serif;
  border-radius: 4px;
  margin-top: 8px;
}
.small { color: var(--muted); font-size: .9rem; margin-top: 28px; }
.contact { font-size: 1.1rem; margin: 18px 0 0; }
.contact a { font-weight: bold; word-break: break-all; }
