/* ===== Portfolio Nguyễn Thu Hoài ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #FDF8F5;
  --cream-2: #FBF0EC;
  --blush: #F9E4E6;
  --blush-2: #F3D2D7;
  --rose: #D4788A;
  --rose-deep: #B85A70;
  --plum: #5B3049;
  --plum-soft: #7A4762;
  --lav: #E9DEEF;
  --lav-2: #D6C2DF;
  --lav-deep: #9B7BA8;
  --gold: #C9A961;
  --ink: #3D2B36;
  --muted: #8A7480;
  --line: #EDDDE2;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(91, 48, 73, .06);
  --shadow: 0 8px 30px rgba(91, 48, 73, .10);
  --shadow-lg: 0 18px 50px rgba(91, 48, 73, .16);
  --radius: 20px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--plum); line-height: 1.25; font-weight: 600; }

a { color: var(--rose-deep); text-decoration: none; transition: .25s; }
a:hover { color: var(--plum); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 245, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blush-2), var(--lav-2));
  display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 16px; color: var(--plum);
  box-shadow: var(--shadow-sm);
}
.brand-txt strong { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--plum); font-weight: 600; display: block; line-height: 1.2; }
.brand-txt span { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  display: block; padding: 8px 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--plum-soft);
}
.nav-links a:hover { background: var(--blush); color: var(--plum); }
.nav-links a.on { background: var(--plum); color: #fff; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding: 84px 0 76px; background: linear-gradient(160deg, var(--blush) 0%, var(--cream-2) 45%, var(--lav) 100%); }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 380px; height: 380px; top: -140px; right: -90px; background: radial-gradient(circle, rgba(212,120,138,.20), transparent 70%); }
.hero::after { width: 320px; height: 320px; bottom: -130px; left: -80px; background: radial-gradient(circle, rgba(155,123,168,.20), transparent 70%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-solo { max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(212,120,138,.28);
  padding: 6px 16px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); font-weight: 600;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); margin: 20px 0 6px; font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--rose-deep); }
.hero-role { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.3rem; color: var(--plum-soft); margin-bottom: 16px; }
.hero-lead { font-size: 1.05rem; color: var(--ink); max-width: 56ch; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; color: var(--plum-soft); font-weight: 500;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; font-family: 'Be Vietnam Pro', sans-serif;
  border: 1.5px solid transparent; cursor: pointer; transition: .28s;
}
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 6px 20px rgba(91,48,73,.24); }
.btn-primary:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,90,112,.32); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--blush-2); color: var(--plum); }
.btn-ghost:hover { background: #fff; border-color: var(--rose); color: var(--rose-deep); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
section { padding: 72px 0; }
.sec-alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head.left { text-align: left; }
.sec-head .kicker { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 8px 0 12px; }
.sec-head p { color: var(--muted); max-width: 62ch; margin: 0 auto; }
.sec-head.left p { margin: 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 0; color: var(--rose); }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 54px; background: linear-gradient(90deg, transparent, var(--blush-2)); }
.ornament::after { background: linear-gradient(90deg, var(--blush-2), transparent); }

/* ===== CARDS ===== */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .3s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blush-2); }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.8px; }

/* project card */
.pcard { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.pcard-top { padding: 24px 26px 18px; background: linear-gradient(135deg, var(--blush) 0%, var(--lav) 100%); border-bottom: 1px solid var(--line); }
.pcard-num {
  font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rose-deep);
  background: rgba(255,255,255,.75); padding: 4px 12px; border-radius: 999px; display: inline-block; margin-bottom: 10px;
}
.pcard-top h3 { font-size: 1.2rem; line-height: 1.35; }
.pcard-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.pcard-body p { color: var(--muted); font-size: 14.6px; flex: 1; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag { font-size: 11.5px; background: var(--cream-2); border: 1px solid var(--line); color: var(--plum-soft); padding: 4px 11px; border-radius: 999px; font-weight: 500; }
.pcard-links { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.link-arrow { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow span { transition: .25s; }
.link-arrow:hover span { transform: translateX(4px); }
.link-sub { font-size: 13px; color: var(--muted); margin-left: auto; }
.link-sub:hover { color: var(--rose-deep); }

/* ===== ARTICLE / DETAIL ===== */
.page-head { padding: 56px 0 40px; background: linear-gradient(160deg, var(--blush), var(--lav)); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -100px; top: -110px; background: radial-gradient(circle, rgba(255,255,255,.5), transparent 70%); }
.page-head .wrap { position: relative; z-index: 2; }
.crumb { font-size: 13px; color: var(--plum-soft); margin-bottom: 14px; }
.crumb a { color: var(--plum-soft); }
.crumb a:hover { color: var(--rose-deep); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.page-head .lead { color: var(--plum-soft); max-width: 62ch; font-size: 1.02rem; }

.prose h2 { font-size: 1.6rem; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blush); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 26px 0 8px; color: var(--plum-soft); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--rose); }
.prose strong { color: var(--plum); font-weight: 600; }

blockquote {
  border-left: 3px solid var(--rose); background: linear-gradient(90deg, var(--cream-2), transparent);
  padding: 16px 22px; margin: 22px 0; border-radius: 0 12px 12px 0;
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.08rem; color: var(--plum);
}

/* callout */
.callout { background: linear-gradient(135deg, #fff, var(--cream-2)); border: 1px solid var(--blush-2); border-radius: 16px; padding: 22px 24px; margin: 24px 0; box-shadow: var(--shadow-sm); }
.callout h4 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* ===== TABLE ===== */
.tbl-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14.2px; min-width: 560px; }
thead th { background: linear-gradient(135deg, var(--blush), var(--lav)); color: var(--plum); font-weight: 600; text-align: left; padding: 13px 16px; font-size: 13.5px; }
tbody td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
tbody tr:nth-child(even) { background: rgba(251,240,236,.5); }
tbody tr:hover { background: var(--cream-2); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.b-best { background: #E8F3EC; color: #2E6B45; }
.b-good { background: var(--lav); color: var(--lav-deep); }
.b-mid { background: #FDF0E0; color: #A9702A; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: .3s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat .n { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== PDF ===== */
.pdf-box { margin: 26px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.pdf-bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: linear-gradient(135deg, var(--blush), var(--lav)); border-bottom: 1px solid var(--line); }
.pdf-bar .nm { font-weight: 600; font-size: 14px; color: var(--plum); }
.pdf-bar .dl { margin-left: auto; font-size: 13px; font-weight: 600; }
.pdf-box iframe { width: 100%; height: 720px; border: 0; display: block; background: #F4F0F2; }

/* ===== TIMELINE ===== */
.tline { position: relative; padding-left: 34px; }
.tline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--rose), var(--lav-2)); }
.tline-item { position: relative; margin-bottom: 26px; }
.tline-item::before {
  content: ''; position: absolute; left: -30px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--rose); box-shadow: 0 0 0 4px var(--cream);
}
.tline-item h4 { font-size: 1.06rem; margin-bottom: 5px; }
.tline-item p { color: var(--muted); font-size: 14.6px; margin: 0; }

/* ===== HOBBY ===== */
.hobby { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hobby-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: .3s; }
.hobby-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hobby-card::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -55px; bottom: -55px; background: radial-gradient(circle, var(--blush), transparent 70%); }
.hobby-card:nth-child(2)::after { background: radial-gradient(circle, var(--lav), transparent 70%); }
.hobby-ico { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--blush), var(--lav)); display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; }
.hobby-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.hobby-card p { color: var(--muted); font-size: 14.8px; position: relative; z-index: 2; }

/* ===== FOOTER ===== */
.footer { background: var(--plum); color: rgba(255,255,255,.75); padding: 48px 0 30px; margin-top: 20px; }
.footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.footer a { color: var(--blush); }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 32px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 6px; font-size: 14.5px; }
.foot-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blush-2); margin-bottom: 12px; font-weight: 600; }
.foot-bot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; text-align: center; font-size: 13.5px; }

/* ===== PAGER ===== */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { font-weight: 600; font-size: 14.5px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 940px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .nav-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links { width: 100%; }
  .nav-links a { padding: 7px 12px; font-size: 13.5px; }
  .g2, .g3, .hobby { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .pdf-box iframe { height: 480px; }
  .hero { padding: 56px 0 50px; }
}
