/* The looks gallery on the web (/gallery, /ko/gallery) and the page of one look (/look/<id>, made by worker/gallery.js).
   The tokens are the home page's (index.html) and the browser's (extension/src/styles/tokens.css in custom-browser), which are the same values.
   The card face is the browser gallery's (extension/src/gallery/gallery.css, .gp-face): only its colors (--sw-*) come from the look. */
:root { color-scheme:light; --bg:#FDFDFC; --ink:#131116; --ink-2:#3D3A44; --body:#5F5C66; --mute:#8B8892; --hair:#ECEAEE; --hair-2:#D9D6DE;
  --panel:#F7F6F8; --panel-2:#F0EEF2; --link:#B8427C; --soft:#FCE4EE; --use:#5B5FC7;
  --d:"Inter Tight","Helvetica Neue",Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; --t:"Inter","Helvetica Neue",Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --mono:ui-monospace,"Cascadia Code","SF Mono",Consolas,monospace; --serif:Georgia,"Noto Serif KR","Nanum Myeongjo","Times New Roman",serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body.g-page { margin:0; background:var(--bg); color:var(--ink); font:400 15px/1.55 var(--t); -webkit-font-smoothing:antialiased; word-break:keep-all; overflow-wrap:anywhere; }
a { color:inherit; }
h1, h2, h3, p { margin:0; }
button, input, select { font:inherit; color:inherit; }
:focus-visible { outline:2px solid var(--use); outline-offset:2px; }
.g-in { max-width:1240px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width:720px) { .g-in { padding-left:max(32px, env(safe-area-inset-left, 0px)); padding-right:max(32px, env(safe-area-inset-right, 0px)); } }
.g-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* top bar */
.g-nav { position:sticky; top:0; z-index:5; background:rgba(253,253,252,.9); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--hair); }
.g-nav .g-in { display:flex; align-items:center; gap:20px; height:60px; }
.g-logo { display:inline-flex; align-items:center; gap:8px; font:600 21px/1 var(--d); letter-spacing:-.03em; text-decoration:none; }
.g-logo img { display:block; }
.g-links { display:flex; gap:18px; font-size:14px; color:var(--body); }
.g-links a { text-decoration:none; } .g-links a:hover, .g-links a[aria-current] { color:var(--ink); }
.g-nav .g-btn { margin-left:auto; }
.g-logo, .g-links a { white-space:nowrap; }
@media (max-width:480px) { .g-nav .g-in { gap:14px; } .g-links { gap:14px; } .g-links .g-wide { display:none; } .g-nav .g-btn { padding:8px 14px; } }

/* buttons: the home page's pill; ghost is the quiet one */
.g-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:9px 18px; border:0; border-radius:99px; background:var(--ink); color:#fff;
  font:500 14px/1.2 var(--t); text-decoration:none; cursor:pointer; white-space:nowrap; }
.g-btn:hover { background:#2A2730; }
.g-btn.g-ghost { background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--hair-2); }
.g-btn.g-ghost:hover { background:var(--panel); }
.g-btn[disabled] { opacity:.55; cursor:default; }

/* the gallery page's head */
.g-main { padding-top:clamp(28px, 5vw, 56px); padding-bottom:40px; }
.g-kicker { font-size:13px; font-weight:600; letter-spacing:.06em; color:var(--link); text-transform:uppercase; }
.g-h1 { font:500 clamp(30px, 4.6vw, 48px)/1.1 var(--d); letter-spacing:-.03em; margin-top:8px; text-wrap:balance; }
.g-lead { color:var(--body); font-size:16.5px; max-width:42em; margin-top:12px; }
.g-live { display:inline-flex; align-items:center; gap:8px; margin-top:14px; font-size:13px; color:var(--mute); }
.g-live::before { content:""; width:7px; height:7px; border-radius:50%; background:#2FA35A; box-shadow:0 0 0 3px rgba(47,163,90,.15); }
.g-live[data-state="stale"]::before, .g-live[data-state="down"]::before { background:var(--mute); box-shadow:none; }
.g-tools { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; align-items:center; }
.g-search { flex:1 1 280px; min-width:0; display:flex; align-items:center; gap:8px; height:44px; padding:0 16px; border-radius:99px; background:var(--panel); box-shadow:inset 0 0 0 1px var(--hair); }
.g-search:focus-within { box-shadow:inset 0 0 0 2px var(--use); }
.g-search svg { flex:none; width:16px; height:16px; stroke:var(--mute); fill:none; stroke-width:2; }
.g-search input { flex:1; min-width:0; border:0; background:transparent; outline:none; font-size:15px; }
.g-site { flex:0 1 220px; min-width:0; height:44px; padding:0 14px; border:0; border-radius:99px; background:var(--panel); box-shadow:inset 0 0 0 1px var(--hair); font-size:14px; }
@media (max-width:520px) { .g-site { flex:1 1 100%; } }

/* sites strip */
.g-sites { display:flex; gap:8px; margin-top:16px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.g-chip { flex:none; display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px 0 8px; border:0; border-radius:99px; background:#fff; box-shadow:inset 0 0 0 1px var(--hair); font-size:13.5px; cursor:pointer; white-space:nowrap; }
.g-chip:hover { background:var(--panel); }
.g-chip[aria-pressed="true"] { background:var(--ink); color:#fff; box-shadow:none; }
.g-chip[aria-pressed="true"] .g-mark { background:rgba(255,255,255,.16); color:#fff; box-shadow:none; }
.g-chip .g-n { color:var(--mute); font-size:12.5px; } .g-chip[aria-pressed="true"] .g-n { color:rgba(255,255,255,.7); }
.g-chip.g-all-chip { padding-left:14px; }

/* sections */
.g-section { margin-top:40px; }
.g-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.g-h2 { font:500 21px/1.25 var(--d); letter-spacing:-.02em; margin-bottom:14px; }
.g-head .g-h2 { margin-bottom:0; }
.g-head p { color:var(--mute); font-size:13.5px; }

/* the card wall: rows of 4px, each card spans its own height (set by gallery.js); before that, a plain grid */
.g-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.g-grid[data-laid] { grid-auto-rows:4px; row-gap:0; }
.g-grid-small { grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width:560px) { .g-grid, .g-grid-small { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; } }
.g-item { min-width:0; }
.g-grid[data-laid] .g-item { padding-bottom:16px; }
@media (max-width:560px) { .g-grid[data-laid] .g-item { padding-bottom:12px; } }
.g-card { display:block; width:100%; text-decoration:none; color:inherit; border-radius:14px; overflow:hidden; background:#fff; box-shadow:0 0 0 1px var(--hair); transition:box-shadow .2s, transform .2s; }
.g-card:hover { box-shadow:0 0 0 1px var(--hair-2), 0 10px 28px rgba(19,17,22,.08); transform:translateY(-1px); }
.g-item.g-new .g-card { box-shadow:0 0 0 2px var(--link); }
.g-card-text { display:flex; flex-direction:column; gap:4px; padding:12px 14px 14px; }
.g-card-site { display:flex; align-items:center; gap:8px; min-width:0; color:var(--body); font-size:12.5px; }
.g-card-host { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g-card-name { font:500 16px/1.35 var(--d); letter-spacing:-.01em; color:var(--ink); }
.g-card-desc { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--body); font-size:13.5px; }
.g-card-meta { display:flex; flex-wrap:wrap; gap:0 8px; color:var(--mute); font-size:12.5px; min-width:0; }
.g-card-meta > * { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.g-card-note { color:var(--body); font-size:12.5px; }
@media (max-width:560px) { .g-card-text { padding:10px 11px 12px; } .g-card-name { font-size:14.5px; } .g-card-desc { font-size:12.5px; } }
.g-badge { flex:none; margin-left:auto; padding:1px 8px; border-radius:99px; background:var(--soft); color:#8E2F5F; font-size:11.5px; font-weight:600; letter-spacing:.01em; }
.g-mark { position:relative; flex:none; display:inline-grid; place-items:center; width:20px; height:20px; border-radius:6px; background:var(--panel-2); box-shadow:inset 0 0 0 1px var(--hair); color:var(--ink-2); font:600 11px/1 var(--d); }

/* the card face: a small page painted with the look's colors, font kind, roundness and spacing */
.g-face { position:relative; display:block; width:100%; aspect-ratio:4 / 3; background:var(--sw-bg, var(--panel-2)); color:var(--sw-fg, var(--ink)); overflow:hidden; font-family:var(--t); }
.g-face.g-font-serif { font-family:var(--serif); } .g-face.g-font-mono { font-family:var(--mono); }
.g-face-plain { display:grid; place-items:center; background:var(--panel-2); }
.g-face-initial { font:500 40px/1 var(--d); color:var(--mute); }
.g-face-sheet { position:absolute; inset:14% 12% 26% 12%; display:flex; flex-direction:column; gap:calc(var(--sw-space) * .5); padding:var(--sw-space); border-radius:var(--sw-radius);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--sw-fg) 16%, transparent); }
.g-face-aa { font-size:clamp(22px, 2.6vw, 36px); font-weight:500; line-height:1; letter-spacing:-.01em; }
.g-face-lines { display:flex; flex-direction:column; gap:5px; }
.g-face-lines i { display:block; height:5px; border-radius:3px; background:var(--sw-fg); opacity:.35; }
.g-face-lines i:nth-child(1) { width:92%; } .g-face-lines i:nth-child(2) { width:74%; } .g-face-lines i:nth-child(3) { width:52%; }
.g-face-knob { margin-top:auto; width:46%; height:14px; border-radius:var(--sw-radius); background:var(--sw-accent); }
.g-face-strip { position:absolute; left:12%; right:12%; bottom:9%; display:flex; gap:6px; }
.g-face-strip i { flex:1; height:10px; border-radius:99px; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--sw-fg) 22%, transparent); }
.g-face > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
.g-face-big { aspect-ratio:16 / 10; border-radius:16px; box-shadow:0 0 0 1px var(--hair); }
.g-face-big .g-face-aa { font-size:clamp(34px, 6vw, 64px); }
.g-face-big .g-face-lines i { height:8px; } .g-face-big .g-face-lines { gap:9px; } .g-face-big .g-face-knob { height:24px; } .g-face-big .g-face-strip i { height:16px; }
@media (max-width:560px) { .g-grid .g-face-aa { font-size:20px; } .g-grid .g-face-lines i { height:4px; } .g-grid .g-face-knob { height:10px; } .g-grid .g-face-strip i { height:7px; } }

/* featured (official) row: a quiet band */
.g-featured { margin-top:32px; padding:20px; border-radius:20px; background:var(--panel); }
.g-featured .g-card { background:#fff; }

/* states */
.g-state { margin-top:36px; padding:clamp(28px, 6vw, 56px) 24px; border-radius:20px; background:var(--panel); text-align:center; display:grid; gap:10px; justify-items:center; }
.g-state h2 { font:500 22px/1.25 var(--d); letter-spacing:-.02em; }
.g-state p { color:var(--body); max-width:34em; }
.g-state .g-btn { margin-top:8px; }
.g-skeleton .g-card { background:var(--panel); box-shadow:none; }
.g-skeleton .g-face { background:var(--panel-2); }
.g-skeleton .g-card-text i { display:block; height:10px; border-radius:5px; background:var(--panel-2); margin:4px 0; }
.g-more { display:flex; justify-content:center; margin-top:20px; }
.g-get { margin-top:56px; padding:28px; border-radius:20px; background:linear-gradient(180deg, #F7C6DA 0%, #FADBE6 40%, #FCECEF 100%); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.g-get h2 { font:500 22px/1.25 var(--d); letter-spacing:-.02em; }
.g-get p { color:#4E4A55; margin-top:4px; max-width:38em; }

/* the page of one look */
.g-crumb { font-size:13.5px; color:var(--mute); margin-bottom:18px; }
.g-crumb a { color:var(--body); text-decoration:none; } .g-crumb a:hover { color:var(--ink); text-decoration:underline; }
.g-look { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr); gap:clamp(20px, 4vw, 48px); align-items:start; }
@media (max-width:820px) { .g-look { grid-template-columns:minmax(0, 1fr); } }
.g-look-side { display:grid; gap:12px; align-content:start; }
.g-look-side .g-card-site { font-size:13.5px; }
.g-look-side .g-badge { margin-left:4px; }
.g-look-name { font:500 clamp(28px, 4vw, 40px)/1.12 var(--d); letter-spacing:-.03em; }
.g-look-meta { display:flex; flex-wrap:wrap; gap:4px 14px; color:var(--mute); font-size:13.5px; }
.g-look-desc { font-size:16.5px; color:var(--ink-2); }
.g-note { color:var(--body); font-size:14px; }
.g-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.g-how { color:var(--body); font-size:14px; padding:12px 14px; border-radius:12px; background:var(--panel); }
.g-report { color:var(--mute); font-size:12.5px; }
.g-report a { color:var(--link); }
.g-all { margin-top:28px; } .g-all a { color:var(--link); text-decoration:none; font-weight:500; } .g-all a:hover { text-decoration:underline; }
.g-notice { max-width:560px; margin:clamp(24px, 8vw, 80px) auto; text-align:center; display:grid; gap:12px; }
.g-notice h1 { font:500 clamp(26px, 4vw, 34px)/1.15 var(--d); letter-spacing:-.03em; }
.g-notice p { color:var(--body); }
.g-notice .g-actions { justify-content:center; }
.g-toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); padding:10px 16px; border-radius:99px; background:var(--ink); color:#fff; font-size:14px; z-index:9; }

.g-foot { margin-top:64px; padding-top:24px; padding-bottom:32px; border-top:1px solid var(--hair); color:var(--mute); font-size:13px; display:grid; gap:6px; }
.g-foot a { color:var(--body); }

@media (prefers-reduced-motion: reduce) { .g-card { transition:none; } .g-card:hover { transform:none; } }
