/* ============================================
   GUILD ATELIER — Design Tokens
   ============================================ */
:root {
  /* Color */
  --color-bg-deep:     #15170F;   /* near-black charcoal-green */
  --color-bg-section:  #1D1E17;   /* olive-charcoal, from banner */
  --color-bg-raised:   #23251C;   /* slightly lifted panel */
  --color-champagne:   #C5AD90;   /* primary headline/text */
  --color-gold:        #D4AF6A;   /* accent, rules, CTA */
  --color-gold-dim:    #9C8454;   /* gold at lower emphasis */
  --color-bronze:      #7E4122;   /* secondary accent / hover */
  --color-sage:        #8C9586;   /* muted body text, borders */
  --color-sage-dim:    #5A6D69;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius: 2px;
}

/* ============================================
   Reset & Base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--color-bg-deep);
  color: var(--color-sage);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-champagne);
  font-weight: 500;
  line-height: 1.15;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* subtle film-grain texture over the dark fields, very low opacity */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   Shared bits
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-3) auto;
  width: 200px;
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-dim));
}
.divider span:last-child {
  background: linear-gradient(90deg, var(--color-gold-dim), transparent);
}
.divider i {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.btn-primary {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0.85em 2.2em;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-bg-deep);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-5);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: var(--space-1) 0;
}
.section-lede {
  color: var(--color-sage);
  font-size: 1rem;
  margin-top: var(--space-2);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(21, 23, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 106, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mark-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  color: var(--color-champagne);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
}
.site-nav a {
  color: var(--color-sage);
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--color-gold); }

.nav-cta {
  border: 1px solid var(--color-gold-dim);
  padding: 0.5em 1.2em;
  border-radius: var(--radius);
  color: var(--color-gold) !important;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.nav-cta:hover {
  background: var(--color-gold);
  color: var(--color-bg-deep) !important;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: 1px solid rgba(140, 149, 134, 0.35);
  border-radius: var(--radius);
  padding: 0.45em 0.8em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--color-sage);
  transition: border-color 0.25s ease;
}
.lang-toggle:hover {
  border-color: var(--color-gold-dim);
}
.lang-divider {
  color: var(--color-sage-dim);
}
.lang-option {
  transition: color 0.25s ease;
  color: var(--color-sage-dim);
}
/* highlight whichever language is active */
html[data-current-lang="en"] .lang-en-label { color: var(--color-gold); }
html[data-current-lang="vi"] .lang-vi-label { color: var(--color-gold); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7) var(--space-3) var(--space-6);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,106,0.07), transparent 60%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-section) 100%);
}

.hero-inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: var(--space-2);
  box-shadow: 0 0 40px rgba(212, 175, 106, 0.18);
  animation: rise 0.9s ease both;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: 0.04em;
  margin-top: 0;
  animation: rise 0.9s ease 0.1s both;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.4rem;
  animation: rise 0.9s ease 0.2s both;
}

.hero-philosophy {
  font-size: 1.15rem;
  color: var(--color-champagne);
  max-width: 560px;
  line-height: 1.65;
  margin-top: var(--space-1);
  animation: rise 0.9s ease 0.25s both;
}

.hero-lede {
  font-size: 0.92rem;
  color: var(--color-sage);
  max-width: 480px;
  margin-top: var(--space-3);
  animation: rise 0.9s ease 0.35s both;
}

.hero .btn-primary { animation: rise 0.9s ease 0.45s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Crafts (the four plaques)
   ============================================ */
.crafts {
  position: relative;
  z-index: 2;
  background: var(--color-bg-section);
  padding: var(--space-6) var(--space-3);
  border-top: 1px solid rgba(212, 175, 106, 0.12);
  box-shadow: 0 -40px 60px -40px rgba(0,0,0,0.5) inset;
}

.plaque-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.plaque {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid rgba(212, 175, 106, 0.18);
  padding: var(--space-4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.plaque:hover {
  border-color: var(--color-gold-dim);
  transform: translateY(-3px);
}

/* plaques that link to a live product get a subtle interactive affordance */
a.plaque-linked {
  display: block;
  cursor: pointer;
}
a.plaque-linked:hover {
  border-color: var(--color-gold);
  box-shadow: 0 12px 30px -16px rgba(212, 175, 106, 0.35);
}
a.plaque-linked:hover .product-tag {
  background: var(--color-gold-bright, var(--color-gold));
}

.plaque-emblem {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.plaque-emblem svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.3;
}
.plaque-emblem::before,
.plaque-emblem::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--color-gold-dim);
}
.plaque-emblem::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.plaque-emblem::after  { bottom: 0; right: 0; border-left: none; border-top: none; }

.plaque h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-1);
}

.plaque p {
  font-size: 0.92rem;
  color: var(--color-sage);
}

.plaque-product {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed rgba(140, 149, 134, 0.25);
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg-deep);
  background: var(--color-gold);
  padding: 0.3em 0.8em;
  border-radius: var(--radius);
  font-weight: 600;
}

/* ============================================
   Workshop (future products)
   ============================================ */
.workshop {
  position: relative;
  z-index: 2;
  background: var(--color-bg-deep);
  padding: var(--space-6) var(--space-3);
}

.workshop-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.workshop-item {
  padding: var(--space-3);
  border-left: 1px solid rgba(212, 175, 106, 0.25);
}

.workshop-status {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage-dim);
  border: 1px solid var(--color-sage-dim);
  padding: 0.2em 0.6em;
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}

.workshop-item h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-1);
}

.workshop-item p {
  font-size: 0.88rem;
  color: var(--color-sage);
}

/* ============================================
   Notes from the Bench
   ============================================ */
.notes {
  position: relative;
  z-index: 2;
  background: var(--color-bg-section);
  padding: var(--space-6) var(--space-3);
  border-top: 1px solid rgba(212, 175, 106, 0.12);
}

.notes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.note-card {
  display: block;
  background: var(--color-bg-raised);
  border: 1px solid rgba(212, 175, 106, 0.15);
  padding: var(--space-3);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.note-card:hover {
  border-color: var(--color-gold-dim);
  transform: translateY(-2px);
}

.note-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}

.note-card h4 {
  font-size: 1.15rem;
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.note-read-more {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-sage);
  letter-spacing: 0.03em;
  margin-top: 0.3rem;
  transition: color 0.25s ease;
}
.note-card:hover .note-read-more {
  color: var(--color-gold);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--color-bg-section);
  padding: var(--space-6) var(--space-3) var(--space-7);
}
.contact h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.contact p {
  max-width: 460px;
  margin: var(--space-2) auto 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--color-bg-deep);
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid rgba(212, 175, 106, 0.1);
}
.footer-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto var(--space-1);
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--color-sage-dim);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .plaque-grid { grid-template-columns: 1fr; }
  .workshop-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .workshop-item { border-left: none; border-top: 1px solid rgba(212, 175, 106, 0.25); padding-top: var(--space-2); }
  .notes-grid { grid-template-columns: 1fr; }
  .site-nav { gap: var(--space-2); }
  .site-nav a:not(.nav-cta) { display: none; }
  .header-inner { padding: var(--space-2) var(--space-3); }
  .brand-name { font-size: 1rem; }
  .nav-cta { padding: 0.5em 0.9em; font-size: 0.72rem; }
  .lang-toggle { padding: 0.45em 0.6em; font-size: 0.72rem; }
}

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

@media (max-width: 480px) {
  .hero { min-height: 100vh; padding: var(--space-5) var(--space-2); }
  .crafts, .workshop, .contact { padding-left: var(--space-2); padding-right: var(--space-2); }
}
