/*
Theme Name: Looknote Pilot
Description: Soft blush Korean fashion editorial block theme. Working title: 오늘의 룩노트. No demo articles or bundled photography.
Version: 0.4.4
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: looknote
Tags: blog, block-patterns, full-site-editing, one-column
*/
:root { color-scheme: light; }
html { scroll-padding-top: 1rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #9a466b; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.looknote-header { border-bottom: 1px solid #e9cfd8; padding-block: 1.25rem; }
.looknote-header .wp-block-site-title { letter-spacing: -.055em; }
.looknote-header .wp-block-navigation-item__content { padding-block: .65rem; }
.looknote-main { padding-block: clamp(2rem, 6vw, 4rem); }
.looknote-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; }
.looknote-posts { display: grid; gap: 2.5rem !important; grid-template-columns: 1fr; list-style: none; padding: 0; }
.looknote-posts > li { min-width: 0; padding-bottom: 1.75rem; border-bottom: 1px solid #e9cfd8; }
.looknote-posts .wp-block-post-featured-image { margin-top: 0; }
.looknote-posts .wp-block-post-title { margin-top: .8rem; line-height: 1.35; }
.looknote-posts .wp-block-post-title a { text-decoration: none; }
.looknote-posts .wp-block-post-title a:hover { text-decoration: underline; }
.looknote-posts .wp-block-post-excerpt { margin-block: .8rem; }
.looknote-posts .wp-block-post-date { font-size: .8rem; color: #73616b; }
.looknote-article .wp-block-post-featured-image img { object-fit: contain; max-height: 780px; }
.looknote-article .wp-block-post-content { margin-top: 1.25rem; }
.looknote-article .wp-block-post-content > :first-child { margin-top: 0; }
.looknote-facts { border: 1px solid #e9cfd8; border-left: 4px solid #493541; padding: 1.25rem; background: #fffdfb; }
.looknote-facts p { margin-block: .6rem; }
.looknote-draft { border: 2px dashed #9a466b; padding: 1rem; color: #813956; }
.looknote-related { border-top: 1px solid #e9cfd8; padding-top: 2rem; margin-top: 3rem; }
.looknote-footer { border-top: 1px solid #e9cfd8; padding-block: 2rem; }
.wp-block-search__input { min-width: 0; border: 1px solid #777; border-radius: 14px; background: #fffdfb; }
.wp-block-search__button { min-height: 44px; }
.wp-block-post-content { overflow-wrap: anywhere; }
.wp-block-post-content h2 { margin-top: 2.5rem; }
.wp-block-post-content li { margin-bottom: .5rem; }
.wp-block-query-pagination { gap: 1rem; margin-top: 2rem; }
.wp-block-query-pagination a { display: inline-block; padding: .6rem; }
@media (min-width: 700px) {
 .looknote-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .looknote-home .looknote-posts > li:first-child { grid-column: 1 / -1; }
 .looknote-home .looknote-posts > li:first-child .wp-block-post-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 850px; }
 .looknote-home .looknote-posts > li:first-child .wp-block-post-featured-image img { max-height: 650px; object-fit: contain; background: #f8e7ed; }
}
@media (max-width: 699px) {
 .looknote-header .wp-block-group { gap: .75rem; }
 .looknote-header .wp-block-site-title { font-size: 1.4rem !important; }
 .looknote-footer .wp-block-navigation { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 0.2.0: soft blush editorial details. Typography stays high contrast. */
.looknote-header { background: linear-gradient(180deg, #fff8f3 25%, #fff2f4 100%); }
.looknote-kicker { display: inline-block; color: #813956; background: #f8e7ed; border-radius: 999px; padding: .4rem .9rem; letter-spacing: .06em; }
.looknote-posts > li { background: #fffdfb; border: 1px solid #e9cfd8; border-radius: 22px; padding: 1rem 1rem 1.5rem; box-shadow: 0 5px 18px rgba(73,53,65,.035); }
.looknote-posts .wp-block-post-featured-image img { border-radius: 15px; }
.looknote-posts .wp-block-post-terms a { display: inline-block; background: #f8e7ed; color: #813956; padding: .15rem .7rem; border-radius: 999px; text-decoration: none; }
.looknote-posts .wp-block-post-terms a:hover { text-decoration: underline; }
.looknote-article .wp-block-post-featured-image img { border-radius: 20px; }
.looknote-facts { border-left: 4px solid #9a466b; border-radius: 18px; background: #fff2f4; }
.looknote-draft { border-radius: 14px; }
.looknote-related { background: #f8e7ed; border: 1px solid #e9cfd8; border-radius: 20px; padding: 1.5rem; }
.looknote-footer { background: #fff2f4; }
.wp-block-search__button { border-radius: 999px; }
.wp-block-query-pagination a { border: 1px solid #e9cfd8; border-radius: 999px; padding: .6rem 1rem; }
@media (max-width: 699px) { .looknote-posts { gap: 1.5rem !important; } }

/* 0.3.0: content-first navigation and compact editorial hierarchy. */
.looknote-header { padding-block: 1rem; }
.looknote-header .wp-block-navigation { font-size: .875rem; }
.looknote-header .wp-block-navigation__container { column-gap: 1.25rem; }
.looknote-home { padding-top: clamp(1.75rem, 4vw, 3rem); }
.looknote-intro { margin-bottom: 1.75rem; }
.looknote-intro .looknote-kicker { margin-bottom: .2rem; background: transparent; padding: 0; font-size: .75rem; }
.looknote-intro h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.35; letter-spacing: -.035em; margin-block: .65rem; }
.looknote-intro > p:last-child { color: #73616b; max-width: 42rem; margin-top: .6rem; }
.looknote-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-block: 1.5rem 2.5rem; }
.looknote-category-card { position: relative; min-width: 0; margin: 0 !important; padding: 1.15rem 1rem; border: 1px solid #e9cfd8; border-radius: 16px; background: #fffdfb; }
.looknote-category-card h2 { margin: 0; font-weight: 700; line-height: 1.4; }
.looknote-category-card h2 a { text-decoration: none; }
.looknote-category-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.looknote-category-card h2 a:focus-visible::after { outline: 3px solid #9a466b; outline-offset: 3px; }
.looknote-category-card h2 a:hover { text-decoration: underline; }
.looknote-category-card p { margin: .5rem 0 0; color: #73616b; line-height: 1.5; }
.looknote-category-1 { background: #fff2f4; }
.looknote-category-2 { background: #f8f0f6; }
.looknote-category-3 { background: #fff7ef; }
.looknote-category-4 { background: #f6f3ef; }
.looknote-section-title { padding-bottom: .75rem; border-bottom: 1px solid #e9cfd8; margin-top: 2rem; }
.looknote-empty-note { border: 1px dashed #d7b8c4; border-radius: 16px; padding: 1.15rem 1.3rem; background: #fffdfb; }
.looknote-empty-note p { margin: 0; color: #73616b; }
.looknote-home .looknote-posts > li:first-child .wp-block-post-title { font-size: clamp(1.4rem, 2.7vw, 2rem); }
.looknote-home .looknote-posts > li:first-child .wp-block-post-featured-image img { max-height: 480px; }
.looknote-footer { font-size: .875rem; }
.looknote-footer .wp-block-site-title { font-size: 1rem !important; }
@media (min-width: 900px) { .looknote-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 380px) { .looknote-category-card { padding: 1rem .75rem; } .looknote-category-card p { font-size: .78rem; } }

/* 0.3.2: preserve the entire featured photo and its intrinsic resolution. */
.wp-block-post-featured-image { text-align: center; }
.wp-block-post-featured-image img {
 object-fit: contain !important;
 width: auto !important;
 max-width: 100%;
 height: auto !important;
 margin-inline: auto;
}
/* Keep Korean title words together, with a fallback for overlong tokens. */
.looknote-article .wp-block-post-title {
 word-break: keep-all;
 overflow-wrap: break-word;
 max-width: 100%;
}

/* 0.4.0: original vector brandmark + accessible live-text wordmark. */
.looknote-header .wp-block-site-title a {
 display: inline-flex;
 align-items: center;
 gap: .65rem;
 line-height: 1.25;
 text-decoration: none;
}
.looknote-header .wp-block-site-title a::before {
 content: "";
 display: block;
 flex: 0 0 42px;
 width: 42px;
 height: 42px;
 background: url("assets/looknote-mark.svg") center / contain no-repeat;
}
/* Display-only editorial label. Original photographs and credits stay unchanged. */
.looknote-article .wp-block-post-featured-image,
.looknote-home .wp-block-post-featured-image {
 position: relative;
 width: fit-content !important;
 max-width: 100%;
 margin-inline: auto !important;
 line-height: 0;
}
.looknote-article .wp-block-post-featured-image > a,
.looknote-home .wp-block-post-featured-image > a { display: block; }
.looknote-article .wp-block-post-featured-image img,
.looknote-home .wp-block-post-featured-image img { display: block; }
.looknote-article .wp-block-post-content .looknote-photo-mark {
 position: relative;
 display: inline-block;
 width: auto;
 max-width: 100%;
 margin: 0 auto;
 line-height: 0;
 vertical-align: top;
}
.looknote-article .wp-block-post-content figure:has(> .looknote-photo-mark) { text-align: center; }
.looknote-article .wp-block-post-content .looknote-photo-mark > img {
 display: block;
 max-width: 100%;
 height: auto;
 margin: 0;
}
.looknote-article .wp-block-post-featured-image::after,
.looknote-home .wp-block-post-featured-image::after,
.looknote-archive .wp-block-post-featured-image::after,
.looknote-article .wp-block-post-content .looknote-photo-mark::after {
 content: "오늘의 룩노트";
 position: absolute;
 inset-inline-end: 5px;
 bottom: 5px;
 max-width: calc(100% - 10px);
 padding: 0;
 border: 0;
 border-radius: 0;
 background: transparent;
 color: #fff;
 opacity: .28;
 text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
 font-size: 10px;
 font-weight: 500;
 line-height: 1.1;
 letter-spacing: 0;
 white-space: nowrap;
 pointer-events: none;
}
@media (max-width: 699px) {
 .looknote-header .wp-block-site-title a { gap: .5rem; }
 .looknote-header .wp-block-site-title a::before { width: 34px; height: 34px; flex-basis: 34px; }
}

/* 0.4.1: category/tag archives are compact albums, including single-item grids. */
.looknote-archive .looknote-posts {
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 12px !important;
}
.looknote-archive .looknote-posts > li {
 padding: 8px 8px 12px;
 border-radius: 14px;
 grid-column: auto;
}
.looknote-archive .wp-block-post-featured-image {
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100% !important;
 height: 180px !important;
 max-height: 180px;
 margin: 0;
 border-radius: 9px;
 background: #f8f0f3;
}
.looknote-archive .wp-block-post-featured-image > a {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 height: 100%;
}
.looknote-archive .wp-block-post-featured-image img {
 object-fit: contain !important;
 width: auto !important;
 height: auto !important;
 max-width: 100%;
 max-height: 100%;
 border-radius: 6px;
}
.looknote-archive .looknote-posts .wp-block-post-title {
 display: -webkit-box;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 3;
 overflow: hidden;
 margin-block: .7rem .35rem;
 font-size: .95rem !important;
 line-height: 1.45;
 word-break: keep-all;
 overflow-wrap: break-word;
}
.looknote-archive .looknote-posts .wp-block-post-date { margin-top: .35rem; font-size: .72rem; }
@media (min-width: 700px) {
 .looknote-archive .looknote-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px !important; }
 .looknote-archive .looknote-posts > li { padding: 10px 10px 14px; }
 .looknote-archive .wp-block-post-featured-image { height: 240px !important; max-height: 240px; }
 .looknote-archive .looknote-posts .wp-block-post-title { font-size: 1rem !important; }
}

/* 0.4.3: full illustrated wordmark. Text remains the link's accessible name. */
.looknote-header .wp-block-site-title {
 flex: 0 1 340px;
 width: 340px;
 max-width: 100%;
 margin-block: 0;
}
.looknote-header .wp-block-site-title a {
 display: block;
 width: 100%;
 max-width: 100%;
 height: auto;
 aspect-ratio: 1895 / 830;
 background: url("assets/looknote-illustrated-logo.png") center / contain no-repeat;
 font-size: 0 !important;
 line-height: 0;
 letter-spacing: 0;
 gap: 0;
}
.looknote-header .wp-block-site-title a::before { display: none; }
@media (max-width: 699px) {
 .looknote-header .wp-block-site-title {
  flex: 0 1 240px;
  width: 240px;
  max-width: calc(100% - 44px);
 }
}
@media (forced-colors: active) {
 .looknote-header .wp-block-site-title a {
  background: none;
  aspect-ratio: auto;
  font-size: 1.4rem !important;
  line-height: 1.4;
 }
}
