/* =========================================================
   EVAN & NATALY SIMON — ENGRAVING PORTFOLIO
   Cool-register atelier palette · single-family serif system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* cool engraving palette */
  --paper:        #E8E8E0;
  --paper-2:      #DDDED6;
  --paper-warm:   #E3E4DC;
  --ink-faded:    #8A96A0;   /* accent · antique blue-gray */
  --ink-mid:      #6B7682;   /* secondary text, rules */
  --ink-deep:     #3A4552;
  --ink-black:    #2E3842;   /* primary ink */
  --ink-rule:     #A8B0B8;
  --seal-blue:    #3D5266;

  /* type — single transitional-serif family, no bold */
  --display:    'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --display-sc: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --body:       'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --italic:     'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --chancery:   'EB Garamond', 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink-black);
  font-family: var(--body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Subtle fiber grain (reduced ~50% from warm version) ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse at center, transparent 55%, rgba(46,56,66,0.10) 100%);
  mix-blend-mode: multiply;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.20 0 0 0 0 0.24 0 0 0 0 0.30 0 0 0 0.30 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.14'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 3; }

/* ---------- TYPE — no bold, size/case/tracking only ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink-black);
  letter-spacing: 0.01em;
}
strong, b { font-weight: 400; }

.smallcaps, .sc {
  font-family: var(--display-sc);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: var(--ink-mid);
}

em, .ital { font-family: var(--italic); font-style: italic; font-weight: 400; }

a { color: var(--ink-deep); text-decoration: none; }

.dropcap::first-letter {
  font-family: var(--display);
  font-size: 5.4em;
  float: left;
  line-height: 0.86;
  padding: 0.08em 0.12em 0 0;
  color: var(--ink-black);
}

/* ---------- TOP LANGUAGE BAR (far top-right, above nav) ---------- */
.top-lang-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 56px 4px;
}
.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lang-flags a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 2px 2px 1px;
  opacity: 0.4;
  transition: opacity 500ms ease;
  cursor: pointer;
}
.lang-flags a:not(.active):hover { opacity: 0.7; }
.lang-flags a.active { opacity: 1; cursor: default; }
.lang-flags .flag-ic { display: block; color: var(--ink-black); }
.lang-flags .lang-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-mid);
  opacity: 0.65;
}

/* ---------- TOP NAVIGATION ---------- */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 56px 16px;
  border-bottom: 1px solid var(--ink-rule);
}
.nav::after {
  content: '';
  position: absolute; left: 56px; right: 56px; bottom: -5px;
  border-bottom: 1px solid var(--ink-rule);
  opacity: 0.55;
}

.monogram {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-black);
  white-space: nowrap;
}
.monogram .mg-amp {
  font-family: var(--chancery);
  font-style: italic;
  font-weight: 400;
  font-size: 1.22em;
  color: var(--ink-mid);
  padding: 0 0.04em;
  vertical-align: -0.04em;
  letter-spacing: 0;
}
.monogram .mg-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-black);
}

.nav-links {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--display-sc);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-mid);
  transition: color 500ms ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink-black); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: -1px;
  height: 1px;
  background: var(--ink-black);
}
.nav-sep {
  color: var(--ink-faded);
  font-size: 8px;
  transform: translateY(-1px);
  display: inline-flex;
  align-items: center;
}

/* ---------- DIVIDER ---------- */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 48px auto; max-width: 720px;
  color: var(--ink-faded);
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ink-rule);
}
.divider .orn { font-family: var(--display); font-size: 16px; color: var(--ink-mid); }

/* ---------- NEW PLATE FRAME — double-rule, inner mat, no flourishes ---------- */
.plate-frame {
  position: relative;
  padding: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink-rule);
}
.plate-frame .mat {
  padding: 10px;
  box-shadow: inset 0 0 0 1px var(--ink-rule);
  background: var(--paper);
}
.plate-frame .plate-image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.6) contrast(1.02);
}
.plate-frame .plate-caption {
  text-align: center;
  padding: 14px 8px 6px;
}
.plate-frame .plate-num {
  font-family: var(--display-sc);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--ink-mid);
  margin-bottom: 4px;
}
.plate-frame .plate-title {
  font-family: var(--italic);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-black);
  line-height: 1.3;
}

/* Legacy .frame — keep for pages that use it, but restyle to cool tones */
.frame {
  position: relative;
  padding: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink-rule);
}
.frame .frame-inner {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ink-rule);
  padding: 8px;
  background: var(--paper);
}
.frame .corner { display: none; }

/* ---------- PLAQUE / CTA ---------- */
.plaque {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 26px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink-deep);
  font-family: var(--display-sc);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--ink-black);
  cursor: pointer;
  transition: background 400ms ease, color 400ms ease;
}
.plaque:hover { background: var(--ink-black); color: var(--paper); }
.plaque .plaque-orn { font-size: 10px; color: var(--ink-mid); }
.plaque:hover .plaque-orn { color: var(--paper); }

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 96px;
  padding: 48px 56px 40px;
  border-top: 1px solid var(--ink-rule);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 4px; left: 56px; right: 56px;
  border-top: 1px solid var(--ink-rule);
  opacity: 0.55;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
}
.footer .colophon {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-mid);
  font-size: 15px;
  max-width: 440px;
}

/* ---------- UTILITY ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.center { text-align: center; }
.muted { color: var(--ink-mid); }
.caption {
  font-family: var(--italic); font-style: italic; font-weight: 400;
  color: var(--ink-mid); font-size: 15px;
}
.label {
  font-family: var(--display-sc); font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--ink-mid);
}

/* Section heading rule for "Selected Plates" etc */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-rule);
  position: relative;
}
.section-head::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -4px;
  border-bottom: 1px solid var(--ink-rule);
  opacity: 0.5;
}
.section-head h2, .section-head .h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  margin: 0; letter-spacing: 0.02em;
}
.section-head .caption {
  padding-bottom: 6px;
  white-space: nowrap;
}

/* Page fade-in */
@keyframes inkBleed {
  from { opacity: 0; filter: blur(2px); }
  to   { opacity: 1; filter: blur(0); }
}
.page { animation: inkBleed 900ms ease-out both; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav { padding: 12px 40px 16px; }
  .nav::after { left: 40px; right: 40px; }
  .top-lang-bar { padding: 10px 40px 4px; }
  .nav-links { gap: 16px; letter-spacing: 0.22em; }
  .monogram { font-size: 20px; }
}
@media (max-width: 960px) {
  body { font-size: 17px; }
  .nav { padding: 14px 22px 14px; }
  .nav::after { left: 22px; right: 22px; }
  .container { padding: 0 22px; }
  .footer { padding: 36px 22px 28px; }
  .footer::before { left: 22px; right: 22px; }
  .nav-links-desktop { display: none; }
  .nav-toggle { display: inline-flex !important; }
  .top-lang-bar { padding: 8px 22px 4px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .monogram { font-size: 18px; gap: 8px; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--ink-rule);
  color: var(--ink-deep);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; right: 22px;
  margin-top: 12px;
  background: var(--paper);
  padding: 22px 30px;
  box-shadow: inset 0 0 0 1px var(--ink-rule), 0 12px 24px rgba(46,56,66,0.12);
  z-index: 20;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-family: var(--display-sc);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--ink-mid);
  border-bottom: 1px dashed var(--ink-rule);
}
.mobile-menu a:last-child { border-bottom: none; }
