/*
Theme Name: I Change Tires
Theme URI: https://ichangetire.com/
Author: Maziar Masoudi
Description: A simple, elegant journal theme for daily notes and monthly stories. No page builder or paid plugins required.
Version: 3.0.2
Requires at least: 6.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ichangetires
*/

@font-face { font-family: "Newsreader"; font-weight: 200 800; font-display: swap; src: url("assets/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("assets/fonts/figtree-latin.woff2") format("woff2"); }

:root {
	--ict-ink: #1c2b33;
	--ict-soft: #40525a;
	--ict-muted: #56676e;
	--ict-line: #e4eaea;
	--ict-accent: #e9a23b;
	--ict-accent-soft: #f6d9a8;
	--ict-accent-text: #8a5300;
	--ict-serif: "Newsreader", Georgia, serif;
	--ict-sans: "Figtree", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: #fff;
	color: var(--ict-ink);
	font-family: var(--ict-sans);
	font-size: 17px;
	line-height: 1.6;
}

a { color: var(--ict-ink); }
a:hover { color: var(--ict-accent-text); }
:focus-visible { outline: 3px solid var(--ict-accent-text); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--ict-serif); font-weight: 500; line-height: 1.2; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link { position: absolute; left: -9999px; z-index: 10; padding: 10px 16px; background: var(--ict-accent); }
.skip-link:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Header */
.site-header { border-bottom: 1px solid var(--ict-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.site-title { display: flex; align-items: center; gap: 10px; font-family: var(--ict-serif); font-size: 23px; font-weight: 500; text-decoration: none; }
.site-title svg { display: block; flex: none; }
.site-name { display: flex; flex-direction: column; line-height: 1.15; }
.site-tagline { margin-top: 3px; font-family: var(--ict-sans); font-size: 13px; font-weight: 500; color: var(--ict-muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 16px; font-weight: 500; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item a { text-decoration: underline; text-decoration-color: var(--ict-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Home */
.intro { border-bottom: 1px solid var(--ict-line); }
.intro .wrap { padding-top: 48px; padding-bottom: 44px; }
.intro-text { max-width: 760px; }
.intro h1 { margin: 0; padding-left: 18px; border-left: 4px solid var(--ict-accent); font-size: clamp(30px, 3.6vw, 40px); }
.intro-body { margin-left: 22px; color: var(--ict-soft); }
.intro-body p { margin: 14px 0 0; }
.begin-link { display: inline-block; margin: 18px 0 0 22px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ict-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.button { display: inline-block; padding: 11px 22px; border: 0; border-radius: 8px; background: var(--ict-accent); color: var(--ict-ink); font-family: var(--ict-sans); font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--ict-ink); color: #fff; }

.home-stories { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.more-stories { margin: 28px 0 0; font-weight: 600; }
.section-label { margin: 0 0 20px; font-family: var(--ict-sans); font-size: 16px; font-weight: 600; color: var(--ict-accent-text); }
.featured { padding-bottom: 28px; border-bottom: 1px solid var(--ict-line); }
.featured img { display: block; width: 100%; max-height: 320px; margin-bottom: 18px; border-radius: 10px; object-fit: cover; }
.featured h3 { margin: 4px 0 8px; font-size: 32px; }
.featured p:not(.entry-meta) { margin: 0; color: var(--ict-soft); }
.secondary { display: flex; flex-wrap: wrap; gap: 16px 24px; padding-top: 26px; }
.secondary-image { flex: 1 1 150px; }
.secondary-image img { display: block; width: 100%; height: 120px; border-radius: 10px; object-fit: cover; }
.secondary-text { flex: 999 1 300px; min-width: 0; }
.secondary h3 { margin: 4px 0 6px; font-size: 25px; }
.secondary p:not(.entry-meta) { margin: 0; color: var(--ict-soft); }
.featured h3 a, .secondary h3 a, .story-row h3 a { text-decoration: none; }
.notes-box { padding: 18px 0 0; border-top: 3px solid var(--ict-accent); }
.notes-box .section-label { margin-bottom: 14px; color: var(--ict-accent-text); }
.notes-box .section-label a { color: inherit; text-decoration: none; }
.latest-note { margin-bottom: 16px; }
.latest-note p { margin: 0; }
.all-notes { font-size: 16px; font-weight: 600; }

.entry-meta { margin: 0; color: var(--ict-muted); font-size: 15px; }
.entry-meta a { color: inherit; }

/* Journal */
.journal { padding-top: 44px; padding-bottom: 64px; }
.page-title { margin: 0; font-size: clamp(32px, 4vw, 42px); }
.page-intro { max-width: 620px; margin: 10px 0 0; color: var(--ict-soft); }
.journal-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin: 28px 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--ict-line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filters a { display: block; padding: 6px 14px; border: 1px solid #7e8d92; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; }
.filters a:hover { border-color: var(--ict-accent); }
.filters a[aria-current] { border-color: var(--ict-accent); background: var(--ict-accent); color: var(--ict-ink); }
.search-form { display: flex; flex: 1 1 260px; gap: 8px; max-width: 360px; }
.search-form .search-input-wrap { flex: 1 1 200px; }
.search-form .search-field { width: 100%; min-height: 42px; padding: 7px 12px; border: 1px solid #7e8d92; border-radius: 8px; font: inherit; }
.search-form .search-submit { min-height: 42px; padding: 7px 16px; border: 0; border-radius: 8px; background: var(--ict-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.timeline { max-width: 760px; }
.timeline-month { margin: 40px 0 10px; font-family: var(--ict-sans); font-size: 16px; font-weight: 600; color: var(--ict-accent-text); }
.timeline-month:first-child { margin-top: 0; }
.story-row { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 22px 0 24px; border-bottom: 1px solid var(--ict-line); }
.timeline-month + .story-row, .section-label + .story-row { padding-top: 4px; }
.story-row-text { flex: 999 1 300px; min-width: 0; }
.story-row-image { flex: 1 1 150px; }
.story-row-image img { display: block; width: 100%; height: 120px; border-radius: 10px; object-fit: cover; }
.story-row h3 { margin: 4px 0 8px; font-size: clamp(25px, 3vw, 30px); }
.story-row .summary { margin: 0 0 10px; color: var(--ict-soft); }
.story-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.read-link { font-size: 16px; font-weight: 600; text-decoration-color: var(--ict-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note-card { margin: 14px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ict-accent); }
.note-card h3 { margin: 0; font-size: 22px; }
.note-card .entry-content > :first-child { margin-top: 0; }
.note-card .entry-content > :last-child { margin-bottom: 0; }
.pagination { max-width: 760px; margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Single entries */
.single-entry { padding-top: 48px; padding-bottom: 64px; font-size: 19px; line-height: 1.7; }
.single-entry article, .post-nav, .comments { max-width: 680px; margin-left: auto; margin-right: auto; }
.single-entry h1 { margin: 8px 0 28px; font-size: clamp(34px, 5vw, 46px); }
.single-entry .wp-post-image { display: block; margin-bottom: 28px; border-radius: 10px; }
.single-entry .entry-content { font-family: var(--ict-serif); font-size: 21px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 25px; }
.entry-content blockquote { margin: 28px 0; padding-left: 22px; border-left: 3px solid var(--ict-accent); color: var(--ict-soft); }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { color: var(--ict-muted); font-family: var(--ict-sans); font-size: 15px; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ict-line); font-size: 16px; }

/* Comments */
.comments { margin-top: 40px; font-size: 17px; line-height: 1.6; }
.comments h2, .comment-reply-title { margin: 0 0 14px; font-size: 26px; }
.comment-received { margin: 0 0 24px; padding: 12px 16px; border-left: 3px solid var(--ict-accent); background: transparent; font-weight: 500; }
.comment-awaiting-moderation { display: block; margin-top: 4px; color: var(--ict-accent-text); font-size: 15px; font-style: normal; }
.comment-list { margin: 0 0 32px; padding: 0; list-style: none; }
.comment-list .children { padding-left: 24px; list-style: none; }
.comment-body { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ict-line); }
.comment-author img { float: left; margin-right: 10px; border-radius: 50%; }
.comment-meta, .comment-notes, .logged-in-as { color: var(--ict-muted); font-size: 15px; }
.comment-form label { display: block; font-weight: 600; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid #7e8d92; border-radius: 8px; font: inherit; }
.comment-form input[type="submit"] { padding: 11px 22px; border: 0; border-radius: 8px; background: var(--ict-accent); color: var(--ict-ink); font: inherit; font-weight: 600; cursor: pointer; }

.search-label { display: block; flex-basis: 100%; margin-bottom: 2px; font-size: 15px; font-weight: 600; }
.journal-tools .search-form { flex-wrap: wrap; }
.empty-note { max-width: 620px; margin: 8px 0 0; }
.story-stats { margin-top: 32px; }

@media (max-width: 600px) {
	.intro .wrap { padding-top: 30px; padding-bottom: 28px; }
	.intro-body p { margin-top: 10px; }
	.home-stories { padding-top: 28px; }
}

.site-footer { border-top: 1px solid var(--ict-line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: inherit; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 22px; color: var(--ict-muted); font-size: 15px; }
