/* Eternal Elementia — site styles. Plain CSS, no build step. */

@font-face { font-family: "Pagella"; src: url("../fonts/pagella-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter EE"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ivory: #FBF7EF;
  --ivory-deep: #F3ECDF;
  --ink: #2E2118;
  --ink-soft: #5E4D40;
  --gold: #A97A37;
  --gold-deep: #8A6229;
  --rule: #E2D6C2;
  --serif: "Pagella", "Inter EE", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --label: "Inter EE", "Helvetica Neue", Arial, sans-serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: #EADBC0; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ivory); padding: 0.5rem 0.75rem; z-index: 10; }

/* ---------- labels & headings ---------- */
.label {
  font-family: var(--label);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-variant-numeric: lining-nums;
  margin: 0 0 1.1rem;
}
h1, h2, h3 { font-weight: 400; font-style: italic; line-height: 1.2; margin: 0 0 1rem; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2em; line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; line-height: 1.6; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 0 auto; color: var(--gold); width: min(14rem, 60%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.55; }
.ornament span { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section + .section { padding-top: 0; }
.center { text-align: center; }
.center .measure { margin-left: auto; margin-right: auto; }
.measure { max-width: var(--measure); }

/* ---------- header ---------- */
.site-header { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img.mark { width: 32px; height: auto; }
.brand img.word { width: 200px; height: auto; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); flex-wrap: wrap; }
.nav a {
  font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding: 0.35rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- home ---------- */
.hero { padding: clamp(4rem, 11vw, 9rem) 0 clamp(3.5rem, 8vw, 6.5rem); text-align: center; }
.hero img.logo { width: min(300px, 70vw); margin: 0 auto 2.75rem; }
.hero .lede { max-width: 30rem; margin: 2.25rem auto 0; font-style: italic; color: var(--ink-soft); }

.elements { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.elements li {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.elements .el { font-style: italic; font-size: 1.25rem; }
.elements .skt { color: var(--ink-soft); }
.elements .dir { font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); text-align: right; }
.elements li.current .el { color: var(--gold-deep); }

.feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.plate { background: var(--ivory-deep); padding: clamp(0.75rem, 2vw, 1.5rem); }
.plate img { width: 100%; box-shadow: 0 1px 0 rgba(46,33,24,0.06), 0 18px 40px -28px rgba(46,33,24,0.45); }
.caption { font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; padding: 1.05rem 2rem; border: 1px solid var(--ink); color: var(--ivory); background: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.textlink { font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 0.25rem; }

/* ---------- artwork page ---------- */
.art-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.art-head h1 { margin-bottom: 0.6rem; }
.subtitle { font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }
.art-plate { max-width: 64rem; margin: 0 auto; }

.art-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.story p:first-of-type { font-size: 1.15em; line-height: 1.55; }
.facts { border-top: 1px solid var(--ink); }
.facts dl { margin: 0; }
.facts .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.25rem; }
.facts dd { margin: 0; text-align: right; }
.buy { margin-top: 2rem; }
.buy .btn { width: 100%; text-align: center; }
.buy .note { margin-top: 0.9rem; text-align: center; }

.panel { background: var(--ivory-deep); padding: clamp(2rem, 5vw, 3.5rem); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.compass { display: grid; grid-template-columns: repeat(3, 1fr); width: 9rem; aspect-ratio: 1; border: 1px solid var(--rule); margin: 0 0 1.75rem; }
.compass span { display: flex; align-items: center; justify-content: center; font-family: var(--label); font-size: 0.625rem; letter-spacing: 0.12em; color: var(--ink-soft); border: 1px solid var(--rule); }
.compass span.on { background: var(--gold); color: var(--ivory); border-color: var(--gold); }
.placement dt { font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-top: 1.4rem; }
.placement dd { margin: 0.35rem 0 0; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 0.95rem 0 0.95rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.list li::before { content: ""; position: absolute; left: 0.15rem; top: 1.55rem; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }
.list li:first-child { border-top: 1px solid var(--rule); }

table.sizes { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums; }
.sizes th { font-family: var(--label); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); text-align: left; padding: 0 1rem 0.8rem 0; border-bottom: 1px solid var(--ink); }
.sizes td { padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sizes td:last-child, .sizes th:last-child { padding-right: 0; }
.sizes .frame { white-space: nowrap; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold-deep); }

/* ---------- forms (verify) ---------- */
.field { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.field input {
  flex: 1 1 14rem; min-width: 0; font: inherit; font-variant-numeric: lining-nums; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.9rem 1rem; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 0;
}
.field input:focus { outline: none; border-color: var(--gold); }
.field .btn { cursor: pointer; }
.result { min-height: 3rem; }

/* ---------- contact ---------- */
.contact-lines { list-style: none; padding: 0; margin: 2.5rem 0; border-top: 1px solid var(--rule); }
.contact-lines li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-lines .label { margin: 0; padding-top: 0.35rem; }
.contact-lines a { font-size: 1.2rem; font-style: italic; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 3.5rem 0 3rem; margin-top: clamp(3rem, 7vw, 6rem); text-align: center; }
.site-footer img.mark { width: 36px; margin: 0 auto 1rem; }
.site-footer .tag { font-style: italic; color: var(--ink-soft); margin-bottom: 1.5rem; }
.site-footer .links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.site-footer .links a { font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .fine { font-size: 0.8125rem; color: var(--ink-soft); margin: 0; }

/* ---------- phones ---------- */
@media (max-width: 52rem) {
  .feature, .art-body, .two { grid-template-columns: 1fr; }
  .facts { max-width: none; }
}
@media (max-width: 40rem) {
  .site-header { padding: 1.1rem 0 0.9rem; }
  .site-header .wrap { flex-direction: column; gap: 0.9rem; }
  .brand img.word { width: 180px; }
  .nav { justify-content: center; gap: 0.85rem; flex-wrap: nowrap; }
  .nav a { font-size: 0.625rem; letter-spacing: 0.14em; white-space: nowrap; }
  .elements li { grid-template-columns: 1fr auto; row-gap: 0.1rem; }
  .elements .skt { grid-column: 1; grid-row: 2; font-size: 0.9rem; }
  .elements .dir { grid-row: 1 / span 2; align-self: center; }
  .sizes th:nth-child(2), .sizes td:nth-child(2) { white-space: nowrap; }
  .sizes { font-size: 0.95rem; }
  .contact-lines li { flex-direction: column; gap: 0.25rem; }
}
@media (max-width: 22.5rem) { .nav { flex-wrap: wrap; row-gap: 0.4rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header .nav, .buy, .site-footer .links { display: none; } body { background: #fff; } }

/* ---------- home: artwork first ---------- */
.hero-art { padding: clamp(2rem, 6vw, 5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-art .display { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); }
.hero-art .actions { margin-top: 2rem; }
@media (max-width: 52rem) { .hero-art .feature { gap: 1.75rem; } }


/* ---------- artwork page: in the home ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); margin-top: 2rem; }
.rooms figure { margin: 0; }
.rooms figcaption { font-family: var(--label); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.7rem; }
.detail-wide { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.detail-wide img { width: 100%; }
.plate.boxed { border: 1px solid var(--rule); outline: 1px solid var(--gold); outline-offset: -0.5rem; padding: clamp(1.25rem, 3vw, 2rem); }
.plate.room { padding: 0; background: none; }
.plate.room img { box-shadow: none; }
@media (max-width: 40rem) { .rooms { grid-template-columns: 1fr; } }

/* Price */
.price { margin: 0 0 .25rem; }
.price .amount { font-family: var(--serif); font-size: 1.75rem; font-style: italic; color: var(--ink); letter-spacing: .01em; }
.price-note { margin: 0 0 1.25rem; }
.buy .price, .buy .price-note { text-align: center; }
