/* Màu lấy từ ảnh: nắng sớm, thân thuyền, vạch đỏ dưới mạn. */
:root { --dawn: #fde6d8; --hull: #02747b; --keel: #b8352c; --far: #b1c0d6; --ink: #12333a; --pad: clamp(1.25rem, 5vw, 5rem); }
* { box-sizing: border-box; margin: 0; }
body { background: var(--dawn); color: var(--ink); font: 400 1.125rem/1.65 "Be Vietnam Pro", system-ui, sans-serif; }
a { color: var(--hull); text-underline-offset: .2em; }
a:hover { color: var(--keel); }
:focus-visible { outline: 3px solid var(--keel); outline-offset: 3px; }
h1, h2, .boats label { font-family: Phudu, system-ui, sans-serif; }

.hero { display: grid; grid-template-columns: 1fr minmax(0, 50vw); align-items: center; }
.hero img { width: 100%; height: 100svh; object-fit: cover; object-position: 50% 80%; display: block; }
.hello { padding: var(--pad); }
.hi { display: block; font-size: 1.5rem; font-weight: 600; }
.big { font-size: clamp(6.5rem, 14vw, 14rem); font-weight: 800; line-height: 1; color: var(--hull); }

.boats { border: 0; padding: 0; margin: 2rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.boats legend { margin-bottom: .75rem; }
.boats input { position: absolute; opacity: 0; }
.boats label { padding: .55em 1.5em .45em 1em; font-size: 1.25rem; font-weight: 600; cursor: pointer; background: var(--far); border-bottom: 6px solid #8fa3c0; border-radius: 3px 3px 2.2em .9em; transition: transform .25s, background-color .25s; }
.boats input:checked + label { background: var(--hull); color: #fff; border-color: var(--keel); transform: translateY(-5px); }
.boats input:focus-visible + label { outline: 3px solid var(--keel); outline-offset: 3px; }

.about { max-width: 46ch; min-height: 6.6em; }
.hero :is(.trung, .mark, .trump) { display: none; }
.hero:has(#trung:checked) .trung, .hero:has(#mark:checked) .mark, .hero:has(#trump:checked) .trump { display: block; }

.part { padding: calc(var(--pad) * .6) var(--pad); }
h2 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 800; line-height: 1.15; color: var(--hull); margin-bottom: 1.25rem; }

/* Thuyền: cùng dáng với nút chọn tên ở đầu trang. */
.boat { --paint: var(--hull); --stripe: var(--keel); display: flex; flex-direction: column; gap: .75rem; padding: 2rem 3rem 2.5rem 2rem; background: var(--paint); color: #fff; text-decoration: none; border-bottom: 12px solid var(--stripe); border-radius: 6px 6px 7em 2.5em; transition: transform .25s; }
.boat:hover { color: #fff; transform: translateY(-8px); }
.boat strong { font: 800 2rem/1.15 Phudu, system-ui, sans-serif; }
.blue { --paint: #2a659f; --stripe: #f2b632; }
.red { --paint: var(--keel); --stripe: var(--ink); }
.fleet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }

.flagship { flex-direction: row; justify-content: space-between; gap: 2rem; padding: 0 clamp(2rem, 9vw, 9rem) 0 clamp(1.5rem, 4vw, 4rem); overflow: hidden; }
.flagship .deck { align-self: center; display: grid; gap: 1.25rem; justify-items: start; max-width: 34ch; padding: 2.5rem 0; }
.flagship strong { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1; }
.flagship img { width: min(22rem, 40%); height: 26rem; object-fit: cover; object-position: top; margin-top: 2.5rem; border-radius: 1rem 1rem 0 0; }
.go { font-weight: 600; background: #fff; color: var(--hull); padding: .5em 1.25em; border-radius: 3px 3px 1.6em .7em; }

.log { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.log a { font: 600 clamp(1.4rem, 2.6vw, 2.1rem)/1.25 Phudu, system-ui, sans-serif; color: var(--ink); text-decoration-color: var(--keel); text-decoration-thickness: 3px; }
.log span { display: block; }

.note { max-width: 68ch; margin: 0 auto; padding: var(--pad) 1.25rem; }
.note h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.15; margin: 1.5rem 0 .5rem; }
.note h2 { font-size: 1.5rem; color: inherit; margin: 2rem 0 .5rem; }
.note :is(p, ul, ol, pre) { margin: 1rem 0; }
.note pre { overflow-x: auto; padding: 1rem; background: #fff; }

footer { display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding: 2rem var(--pad) 3rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { order: -1; height: auto; max-height: 62svh; }
  .hello { padding-top: 2rem; }
  .flagship { flex-direction: column; gap: 0; padding-right: 1.5rem; }
  .flagship .deck { align-self: start; padding-bottom: 0; }
  .flagship img { width: 78%; height: 20rem; margin: 2rem auto 0; }
}
@media (prefers-reduced-motion: reduce) { .boats label, .boat { transition: none; } .boat:hover { transform: none; } }
