/*
Theme Name: Elegant Observer
Theme URI: https://elegantobserver.com
Author: Jihyun
Description: Homepage theme for The Elegant Observer — fashion-tech journal (U still + V hover shelf).
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elegant-observer
Tags: custom-homepage, fashion, blog
*/

:root {
  --wine: #8F295F;
  --ice: #C9DCF0;
  --silk: #2E5E9E;
  --gray: #D9DADF;
  --bg: #EDEEF0;
  --ink: #1F1A1C;
  --muted: #6A6568;
  --title: "DM Serif Display", Georgia, serif;
  --ui: "Inter", system-ui, sans-serif;
  --wrap: 1080px;
  --tilt-dur: .45s;
  --tilt-ease: cubic-bezier(.2, .75, .25, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  font-family: var(--ui);
  color: var(--ink);
  line-height: 1.5;
}

.page { width: 100%; max-width: 1440px; margin: 0 auto; background: var(--bg); }
.wrap { width: var(--wrap); max-width: 100%; margin: 0 auto; padding: 0 24px; }

a:focus-visible {
  outline: 2px solid var(--silk);
  outline-offset: 3px;
  border-radius: 4px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 20px;
  border-bottom: 1px solid var(--gray);
}
.brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}
.wm {
  font-family: var(--title);
  font-size: 24px;
  color: var(--wine);
  margin-bottom: 6px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
}
.lang-toggle a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.lang-toggle a:hover,
.lang-toggle a:focus-visible { color: var(--wine); }
.lang-toggle a.is-active {
  color: var(--wine);
  font-weight: 600;
}
.lang-toggle .lang-sep {
  color: var(--muted);
  opacity: .55;
  user-select: none;
}
.top-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}
.top-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.top-nav a:hover,
.top-nav a:focus-visible { color: var(--wine); }

.hero { padding: 48px 24px 28px; text-align: center; }

/* Desktop: one-line headline */
.hero-title {
  font-family: var(--title);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 auto 14px;
  color: var(--ink);
  max-width: 1100px;
  white-space: nowrap;
  text-align: center;
}
.hero-title .br { display: none; }

.sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.shelf {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 0 4px;
  min-height: 280px;
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.obj {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  flex: 0 0 200px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.obj .fig-slot {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform var(--tilt-dur) var(--tilt-ease);
  will-change: transform;
}
.obj .fig {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 18px rgba(31, 26, 28, .14));
  position: relative;
  transform-style: preserve-3d;
}
.obj picture,
.obj img,
.obj video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.obj.o1 .fig { transform: rotate(-8deg) scale(1.02) translateY(-1.4px); transform-origin: center; }
.obj.o2 .fig { width: 175px; height: 175px; transform: rotate(6deg) translateY(0.6px); transform-origin: center; }
.obj.o3 .fig { width: 175px; height: 175px; transform: rotate(-4deg) translateY(-0.4px); transform-origin: center; }
.obj.o4 .fig { transform: rotate(10deg) scale(0.96) translateY(-0.8px); transform-origin: center; }

/* About media stack */
.obj.o4 .fig.media .still,
.obj.o4 .fig.media .hover-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .28s ease;
}
.obj.o4 .fig.media .still { opacity: 1; z-index: 1; }
.obj.o4 .fig.media .hover-vid {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.obj.o4.is-hover .fig.media .still { opacity: 0; }
.obj.o4.is-hover .fig.media .hover-vid { opacity: 1; }

/* Liquid layer: counter-rotates vs glass tilt so surface stays closer to gravity */
.obj.o4 .liquid-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 62%;
  transform: rotateY(0deg) rotateZ(0deg);
  transition:
    transform .7s cubic-bezier(.22, .7, .2, 1),
    opacity .35s ease;
  opacity: 0;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 42% 28% at 48% 68%, rgba(143, 41, 95, .42), transparent 70%),
    radial-gradient(ellipse 38% 24% at 56% 62%, rgba(46, 94, 158, .38), transparent 72%);
  clip-path: polygon(50% 8%, 78% 88%, 22% 88%);
  filter: blur(1.2px);
}
.obj.o4.is-hover .liquid-layer {
  opacity: .85;
  transform: rotateY(-18deg) rotateZ(-4deg) translateY(4px);
}
.obj.o4.is-settling .liquid-layer {
  opacity: .45;
  transform: rotateY(6deg) rotateZ(2deg) translateY(-1px);
  transition-duration: .55s, .4s;
}

/* Hover / focus tilt: scale ~1.08 + rotateY ~30deg for all four */
.obj:hover .fig-slot,
.obj:focus-visible .fig-slot,
.obj.is-hover .fig-slot,
.obj.is-tap .fig-slot {
  transform: translateY(-6px) scale(1.08) rotateY(30deg);
}

.obj:hover .lab,
.obj:focus-visible .lab,
.obj.is-hover .lab,
.obj.is-tap .lab {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.obj .lab {
  margin-top: 16px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
  transition: color .25s ease, border-color .25s ease;
}
.obj.is-active .lab {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.shelf-line {
  height: 1px;
  background: var(--gray);
  width: 100%;
  max-width: 960px;
  margin: 22px auto 0;
  position: relative;
}
.shelf-line::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(31, 26, 28, .06), transparent 70%);
}

.latest { padding: 8px 24px 48px; }
.latest .wrap { padding: 0; }
.latest h2 {
  font-family: var(--title);
  font-size: 22px;
  font-weight: 400;
  margin: 20px 0 16px;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}
.card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.card a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card .th { height: 72px; background: linear-gradient(135deg, #F7F3EC, #E8EEF5); }
.card .bd { padding: 14px 16px; }
.card .cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 6px;
}
.card h3 {
  font-family: var(--title);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .obj .fig-slot,
  .obj .lab,
  .obj.o4 .fig.media .still,
  .obj.o4 .fig.media .hover-vid,
  .obj.o4 .liquid-layer {
    transition: none !important;
  }
  .obj:hover .fig-slot,
  .obj:focus-visible .fig-slot,
  .obj.is-hover .fig-slot,
  .obj.is-tap .fig-slot {
    transform: none !important;
  }
  .obj.o4 .fig.media .hover-vid,
  .obj.o4 .liquid-layer { display: none !important; }
  .obj.o4.is-hover .fig.media .still,
  .obj.o4:focus-visible .fig.media .still { opacity: 1 !important; }
}

/* Mobile: 3-line headline + 2x2 shelf */
@media (max-width: 720px) {
  header { padding: 22px 20px 16px; }
  .wm { font-size: 22px; margin-bottom: 5px; }
  .brand-row { margin-bottom: 12px; }
  .lang-toggle { font-size: 10px; }
  .top-nav { gap: 10px 14px; }
  .top-nav a { font-size: 10px; letter-spacing: .1em; }
  .hero { padding: 28px 20px 16px; }
  .hero-title {
    font-size: 30px;
    white-space: normal;
    max-width: none;
  }
  .hero-title .br { display: inline; }
  .sub { font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
  .shelf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 10px;
    min-height: 0;
    padding: 4px 0;
    perspective: 700px;
  }
  .obj { width: 100%; flex: none; }
  .obj .fig-slot { width: 150px; height: 150px; }
  .obj .fig { width: 148px; height: 148px; }
  .obj.o2 .fig, .obj.o3 .fig { width: 136px; height: 136px; }
  .obj .lab { margin-top: 12px; font-size: 10px; letter-spacing: .1em; }
  .shelf-line { margin: 20px 0 0; }
  .latest { padding: 16px 20px 24px; }
  .latest h2 { font-size: 20px; margin: 0 0 12px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card .th { height: 56px; }
  .card h3 { font-size: 15px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero-title { font-size: 32px; white-space: normal; }
  .hero-title .br { display: none; }
  .shelf { gap: 28px; flex-wrap: wrap; }
  .obj { flex: 0 0 180px; width: 180px; }
}

/* Shared editorial templates: fluid column rather than a fixed inline width. */
.site-header .wm { text-decoration:none; }
.content-column { width:100%; max-width:760px; margin-inline:auto; padding:48px 24px; min-width:0; }
.entry { min-width:0; max-width:100%; }
.entry-title { font-family:var(--title); font-weight:400; font-size:clamp(30px,5vw,42px); line-height:1.2; color:var(--wine); margin:0 0 28px; text-align:center; overflow-wrap:anywhere; }
.entry-title a { color:inherit; text-decoration:none; }
.entry-content { font-size:16px; line-height:1.85; overflow-wrap:anywhere; }
.entry-content > * { max-width:100%; }
.entry-content p,.entry-content ul,.entry-content ol,.entry-content h2,.entry-content h3 { margin-bottom:1.25em; }
.entry-content ul,.entry-content ol { padding-left:1.4em; }
.entry-content img,.entry-content video,.entry-content iframe { max-width:100%; height:auto; }
.entry-content pre { max-width:100%; overflow:auto; }
.entry-content table { display:block; max-width:100%; overflow:auto; }
.entry-content .alignwide,.entry-content .alignfull { width:100%; margin-inline:0; }
/* Archive / search / blog-index list. Vogue-style rows; scoped so single, page, and homepage stay untouched. */
.archive-header {
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 8px;
}
.archive-page-kicker {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.archive-page-title {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  color: var(--wine);
  margin: 0 0 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.archive-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin: 0;
  padding: 36px 0;
}
.archive-entry + .archive-entry {
  border-top: 1px solid var(--gray);
}
.archive-entry-body { flex: 1; min-width: 0; padding: 0; }
.archive-entry-kicker {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.archive-entry .entry-title {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 10px;
  text-align: left;
  overflow-wrap: anywhere;
}
.archive-entry .entry-title a { color: inherit; text-decoration: none; }
.archive-entry .entry-title a:hover,
.archive-entry .entry-title a:focus-visible { color: var(--wine); }
.archive-entry-byline {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.archive-entry-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 105px;
  background: #F7F3EC;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}
.archive-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
html:lang(ko) .archive-page-title {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: -.015em;
  overflow-wrap: normal;
}
html:lang(ko) .archive-entry .entry-title {
  font-family: "Pretendard", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: keep-all;
}
html:lang(ko) .archive-page-kicker,
html:lang(ko) .archive-entry-kicker,
html:lang(ko) .archive-entry-byline {
  font-family: var(--ui);
}
@media (max-width: 720px) {
  .archive-entry { gap: 18px; padding: 28px 0; }
  .archive-entry-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 96px;
  }
  .archive-entry .entry-title { font-size: 18px; }
}

/* EN single posts only: magazine drop cap on the first body paragraph. */
.single-post .entry-content.has-dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--title);
  font-weight: 400;
  font-size: 6.9em;
  line-height: .72;
  color: var(--ink);
  padding: .1em .12em 0 0;
  margin: 0;
}

/* Opaque video frames must never reveal their rectangular canvas. Still alpha
   includes the A silhouette and its central opening; all layers share coordinates. */
.obj.o4 .hover-vid,.obj.o4 .liquid-layer {
 -webkit-mask-image:url('assets/about-mask.png'); mask-image:url('assets/about-mask.png');
 -webkit-mask-size:100% 100%; mask-size:100% 100%;
 -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}
@media(max-width:720px) {
 .content-column { padding:32px 22px 44px; }
 .entry-title { margin-bottom:24px; }
 .entry-content { font-size:16px; line-height:1.85; }
}

/* Korean editorial typography, without changing the English composition. */
html:lang(ko) body { font-family:"Pretendard",system-ui,sans-serif; font-weight:400; word-break:keep-all; overflow-wrap:break-word; }
html:lang(ko) :is(h1,h2,h3,h4,h5,h6) { font-family:"Pretendard",system-ui,sans-serif; font-weight:600; letter-spacing:-.02em; word-break:keep-all; }
html:lang(ko) .card .cat,
html:lang(ko) .eo-category-label { font-family:var(--ui); font-size:10px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--wine); }
html:lang(ko) .entry-title { overflow-wrap:normal; }
html:lang(ko) .entry-content { word-break:keep-all; }
/* Shared English brand elements retain the EN typography and responsive metrics. */
html:lang(ko) .hero-title { font-family:var(--title); font-weight:400; letter-spacing:-.015em; }
html:lang(ko) .latest h2 { font-family:var(--title); font-weight:400; letter-spacing:normal; }
html:lang(ko) .top-nav a,
html:lang(ko) .obj .lab { font-family:var(--ui); }

/* About intro lede: same face as the page title, scoped to the intro only. */
.entry-content .eo-about-intro {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--ink);
}
.entry-content .eo-about-intro p {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
/* KO About title renders in Pretendard (html:lang(ko) h1 rule); DM Serif has no Hangul. */
html:lang(ko) .entry-content .eo-about-intro,
html:lang(ko) .entry-content .eo-about-intro p {
  font-family: "Pretendard", system-ui, sans-serif;
  word-break: keep-all;
}
