@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Child theme customizations for Rikon Note.
Theme URI: https://wp-cocoon.com/
Author: Rikon Note
Template: cocoon-master
Version: 1.1.3
*/

/* Rikon Note: calm editorial visual system */
:root {
  --rn-ink: #26323a;
  --rn-muted: #6b7780;
  --rn-navy: #194a5a;
  --rn-navy-dark: #123a48;
  --rn-sand: #f6f4f0;
  --rn-line: #e5e7e5;
  --rn-white: #ffffff;
}

body {
  background: var(--rn-sand);
  color: var(--rn-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.9;
}

a { color: var(--rn-navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--rn-navy-dark); }

/* Header */
#header { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rn-line); }
#header-in { min-height: 116px; }
.site-name-text, .logo-text {
  color: var(--rn-ink); font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; letter-spacing: 0.08em;
}
.tagline { color: var(--rn-muted); font-size: 12px; letter-spacing: 0.08em; }

/* Main columns */
#content { max-width: 1180px; padding-top: 48px; padding-bottom: 64px; }
#main { background: transparent; }
.entry-card, .article, .page .main > article {
  background: var(--rn-white); border: 1px solid var(--rn-line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(21, 48, 58, 0.04);
}

/* Archive cards */
.entry-card { margin-bottom: 20px; padding: 18px; transition: box-shadow .2s ease, transform .2s ease; }
.entry-card:hover { box-shadow: 0 12px 28px rgba(21, 48, 58, .1); transform: translateY(-2px); }
.entry-card-thumb { border-radius: 2px; overflow: hidden; }
.entry-card-title, .entry-card-title a { color: var(--rn-ink); font-size: 20px; font-weight: 600; line-height: 1.55; text-decoration: none; }
.entry-card-snippet, .entry-card .post-date { color: var(--rn-muted); font-size: 14px; }
.cat-label { background: var(--rn-navy); border-radius: 2px; font-size: 11px; font-weight: 500; letter-spacing: .06em; padding: 4px 8px; }

/* Single posts: note-like reading width and typography */
.article { padding: clamp(28px, 5vw, 64px); }
.entry-title {
  color: var(--rn-ink); font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: .045em; line-height: 1.5;
}
.entry-content { font-size: 17px; line-height: 2.05; }
.entry-content p { margin: 0 0 1.75em; }
.entry-content h2 { border-bottom: 1px solid var(--rn-line); color: var(--rn-ink); font-size: 26px; line-height: 1.55; margin: 3.2em 0 1.2em; padding: 0 0 .55em; }
.entry-content h3 { border-left: 3px solid var(--rn-navy); color: var(--rn-ink); font-size: 21px; line-height: 1.6; margin: 2.6em 0 1.1em; padding-left: .75em; }
.entry-content blockquote { background: #f4f8f8; border-left: 3px solid #83a5a7; color: #44565d; margin: 2em 0; padding: 1.2em 1.5em; }
.entry-content table { border-color: var(--rn-line); }
.entry-content th { background: #edf3f2; }

/* Metadata and sidebar */
.date-tags, .post-date, .post-meta, .author-info { color: var(--rn-muted); font-size: 13px; }
#sidebar .widget { background: var(--rn-white); border: 1px solid var(--rn-line); border-radius: 4px; margin-bottom: 20px; padding: 24px; }
#sidebar .widget-title { background: transparent; border-bottom: 1px solid var(--rn-line); color: var(--rn-ink); font-size: 15px; font-weight: 600; letter-spacing: .08em; margin-bottom: 16px; padding: 0 0 10px; }
.search-edit, input[type="search"] { border: 1px solid #cfd7d6; border-radius: 2px; }
.search-submit, input[type="submit"] { background: var(--rn-navy); border-radius: 2px; color: #fff; }
.search-submit:hover, input[type="submit"]:hover { background: var(--rn-navy-dark); }

/* Footer */
#footer { background: #183c48; color: #eef4f3; }
#footer a, #footer .footer-title, #footer .copyright { color: #eef4f3; }

@media screen and (max-width: 834px) {
  #content { padding-top: 24px; }
  #sidebar .widget { padding: 20px; }
  .entry-content { font-size: 16px; line-height: 1.95; }
}

/* Note-inspired feed: simple rows, image on the left and story on the right. */
.home #sidebar,
.archive #sidebar,
.blog #sidebar,
.single #sidebar {
  display: none;
}

.home #main,
.archive #main,
.blog #main,
.single #main {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

.home #main,
.archive #main,
.blog #main {
  max-width: 800px;
}

.home .entry-card,
.archive .entry-card,
.blog .entry-card {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rn-line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 24px 0;
}

.home .entry-card:hover,
.archive .entry-card:hover,
.blog .entry-card:hover {
  box-shadow: none;
  transform: none;
}

.home .entry-card-thumb,
.archive .entry-card-thumb,
.blog .entry-card-thumb {
  flex: 0 0 220px;
  margin: 0;
}

.home .entry-card-thumb img,
.archive .entry-card-thumb img,
.blog .entry-card-thumb img {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.home .entry-card-content,
.archive .entry-card-content,
.blog .entry-card-content {
  min-width: 0;
  padding: 0;
}

.home .entry-card-title,
.archive .entry-card-title,
.blog .entry-card-title,
.home .entry-card-title a,
.archive .entry-card-title a,
.blog .entry-card-title a {
  color: #222;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}

.home .entry-card-snippet,
.archive .entry-card-snippet,
.blog .entry-card-snippet {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--rn-muted);
  display: -webkit-box;
  line-height: 1.7;
  margin-top: 6px;
  overflow: hidden;
}

.home .entry-card-meta,
.archive .entry-card-meta,
.blog .entry-card-meta {
  margin-top: 11px;
}

.home .entry-card-categorys,
.archive .entry-card-categorys,
.blog .entry-card-categorys,
.home .entry-card-thumb .cat-label,
.archive .entry-card-thumb .cat-label,
.blog .entry-card-thumb .cat-label {
  display: none;
}

/* Single posts: one distraction-free column and widgets at the end. */
.single #main {
  max-width: 760px;
}

.single .article {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rn-after-article-widgets {
  border-top: 1px solid var(--rn-line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 64px;
  padding-top: 32px;
}

.rn-after-article-widgets .widget {
  background: #f8f9f8;
  border: 0;
  border-radius: 3px;
  margin: 0;
  padding: 22px;
}

.rn-after-article-widgets .widget-title {
  background: transparent;
  border-bottom: 1px solid var(--rn-line);
  color: var(--rn-ink);
  font-size: 14px;
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding: 0 0 10px;
}

@media screen and (max-width: 834px) {
  .home .entry-card,
  .archive .entry-card,
  .blog .entry-card { gap: 15px; padding: 18px 0; }

  .home .entry-card-thumb,
  .archive .entry-card-thumb,
  .blog .entry-card-thumb { flex-basis: 130px; }

  .home .entry-card-title,
  .archive .entry-card-title,
  .blog .entry-card-title,
  .home .entry-card-title a,
  .archive .entry-card-title a,
  .blog .entry-card-title a { font-size: 16px; }

  .home .entry-card-snippet,
  .archive .entry-card-snippet,
  .blog .entry-card-snippet { display: none; }

  .single .article { padding: 28px 20px; }
  .rn-after-article-widgets { grid-template-columns: 1fr; margin-top: 42px; }
}
