/*
Theme Name: Originalfonts
Theme URI: https://originalfonts.com
Author: Originalfonts.com
Description: A free font download theme. Adds a Fonts section to your dashboard where each font gets its own download page with a live type tester, license summary and character map. Includes font categories, a download counter, a Logo Text Maker and a Font Pairing page.
Version: 1.3.0
Requires at least: 6.5
Tested up to: 7.1
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: originalfonts
*/

/* ---------- Theme fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "OF DM Sans"; src: url("assets/fonts/dm-sans.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OF DM Sans"; src: url("assets/fonts/dm-sans-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "OF Fraunces"; src: url("assets/fonts/fraunces-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OF Fraunces"; src: url("assets/fonts/fraunces-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
	--of-blue: #1d4e9e;
	--of-blue-dark: #163d7d;
	--of-link: #1e47c7;
	--of-link-hover: #12308f;
	--of-green: #1d7a3a;
	--of-green-bg: #e4f3e9;
	--of-green-ink: #1d6a34;
	--of-red-bg: #fbe7e4;
	--of-red-ink: #a3301f;
	--of-ink: #16213a;
	--of-body: #39435a;
	--of-muted: #5b6475;
	--of-ground: #eaf0fa;
	--of-line: #d5deee;
	--of-line-2: #c9d5ea;
	--of-hair: #e3e9f4;
	--of-tile: #f7f9fe;
	--of-soft: #fbfcff;
	--of-chip: #e3ebfa;
	--of-pill: #eef2f9;
	--of-on-blue: #c9d7f2;
	--of-on-blue-2: #dbe6ff;
	--of-field: #9fb3d6;
	--of-sans: "OF DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--of-serif: "OF Fraunces", Georgia, "Times New Roman", serif;
	--of-radius: 16px;
	--of-size: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--of-sans); font-size: 17px; line-height: 1.5; color: var(--of-ink); background: var(--of-ground); }
img { max-width: 100%; height: auto; }
a { color: var(--of-link); text-underline-offset: 3px; }
a:hover { color: var(--of-link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--of-link); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.of-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.of-skip:focus { left: 8px; }
.of-icon { flex-shrink: 0; }

.of-wrap { max-width: 1344px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.of-topbar { height: 6px; background: var(--of-blue); }
.of-header { background: #fff; }
.of-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; padding-bottom: 22px; }
.of-logo { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.of-logo__name { font-family: var(--of-serif); font-weight: 700; font-size: 50px; line-height: 1.05; color: var(--of-blue); letter-spacing: -0.5px; overflow-wrap: anywhere; }
.of-logo__tagline { font-family: var(--of-serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--of-blue); padding-left: 30px; }
.of-logo:hover .of-logo__name { color: var(--of-blue-dark); }
.of-fotd { display: flex; align-items: center; gap: 16px; }
.of-fotd__text { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.of-fotd__label { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--of-muted); }
.of-fotd__name { font-size: 28px; line-height: 1.2; color: var(--of-ink); text-decoration: none; text-align: right; }
.of-fotd__tile { width: 64px; height: 64px; border-radius: 14px; background: var(--of-chip); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--of-blue); text-decoration: none; }

.of-searchbox { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #fff; border: 2px solid var(--of-field); border-radius: 12px; }
.of-searchbox:focus-within { border-color: var(--of-blue); box-shadow: 0 0 0 3px rgba(29, 78, 158, 0.2); }
.of-searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 17px; color: var(--of-ink); }
.of-searchbox input::placeholder { color: #6b7385; }
.of-searchbox svg { color: var(--of-muted); }
.of-header__search { width: 380px; max-width: 100%; }

/* ---------- Main nav ---------- */
.of-nav { background: var(--of-blue); }
.of-nav__list { list-style: none; margin: 0; padding: 0 88px; height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.of-nav__list a { color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 3px solid transparent; }
.of-nav__list a:hover, .of-nav__list .current-menu-item > a, .of-nav__list .current-menu-ancestor > a { color: #fff; border-bottom-color: var(--of-on-blue); }

/* ---------- Page ground & layout ---------- */
.of-band { background: var(--of-ground); padding: 40px 0 56px; }
.of-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.of-home { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "side cats" "side search" "trend trend"; column-gap: 32px; align-items: start; }
.of-home > .of-sidebar { grid-area: side; }
.of-home > .of-home-cats { grid-area: cats; }
.of-home > .of-home-search { grid-area: search; margin-top: 28px; }
.of-home > .of-trending { grid-area: trend; margin-top: 40px; }

.of-panel { background: #fff; border: 2px solid var(--of-blue); border-radius: var(--of-radius); padding: 30px 36px 36px; }
.of-card { background: #fff; border: 1px solid var(--of-line-2); border-radius: var(--of-radius); padding: 28px 32px 32px; }
.of-h2 { margin: 0 0 20px; font-size: 32px; font-weight: 700; color: var(--of-green); letter-spacing: -0.3px; }
.of-h2--sm { font-size: 26px; margin-bottom: 18px; }
.of-h3 { margin: 40px 0 18px; font-size: 20px; font-weight: 700; color: var(--of-muted); }
.of-muted { color: var(--of-muted); }

/* ---------- Sidebar ---------- */
.of-sidebar { display: flex; flex-direction: column; gap: 24px; }
.of-links { background: #fff; border: 2px solid var(--of-blue); border-radius: 14px; overflow: hidden; }
.of-links__title { background: var(--of-blue); color: #fff; font-weight: 700; font-size: 20px; text-align: center; padding: 13px 16px; margin: 0; }
.of-links ul { list-style: none; margin: 0; padding: 0; }
.of-links li + li { border-top: 1px solid var(--of-line); }
.of-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 14px 20px; color: var(--of-ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.of-links a::after { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-right: 2.5px solid var(--of-blue); border-top: 2.5px solid var(--of-blue); transform: rotate(45deg); margin-right: 4px; }
.of-links a:hover, .of-links .current-menu-item > a { background: var(--of-tile); color: var(--of-blue); }
.of-cta { background: var(--of-blue); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: #fff; }
.of-cta__title { font-family: var(--of-serif); font-size: 24px; font-weight: 700; margin: 0; }
.of-cta p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--of-on-blue-2); }
.of-cta a:not(.of-btn) { color: #fff; font-weight: 700; font-size: 15px; }
.of-help { background: #fff; border: 1px solid var(--of-line-2); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.of-help__title { font-weight: 700; font-size: 17px; margin: 0; }
.of-help p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--of-body); }
.of-help strong { color: var(--of-ink); }
.of-help a { font-weight: 700; font-size: 15px; }

/* ---------- Buttons ---------- */
.of-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--of-blue); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.of-btn:hover { background: var(--of-blue-dark); color: #fff; }
.of-btn--white { background: #fff; color: var(--of-blue); align-self: flex-start; }
.of-btn--white:hover { background: var(--of-chip); color: var(--of-blue); }
.of-btn--green { background: var(--of-green); box-shadow: 0 4px 14px rgba(29, 122, 58, 0.25); }
.of-btn--green:hover { background: #16632f; }
.of-btn--outline { background: transparent; color: var(--of-blue); border: 2px solid var(--of-blue); }
.of-btn--outline:hover { background: var(--of-chip); color: var(--of-blue); }
.of-btn--big { min-height: 60px; font-size: 20px; border-radius: 12px; }
.of-btn--block { width: 100%; }

/* ---------- Home: categories ---------- */
.of-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.of-tile { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--of-line); border-radius: 14px; background: var(--of-tile); text-decoration: none; min-width: 0; }
.of-tile:hover { border-color: var(--of-blue); background: #fff; }
.of-tile__aa { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; background: var(--of-chip); display: flex; align-items: center; justify-content: center; font-size: 36px; line-height: 1; color: var(--of-blue); overflow: hidden; }
.of-tile__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.of-tile__name { font-size: 21px; font-weight: 700; color: var(--of-link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.of-tile__desc { font-size: 14px; color: var(--of-muted); }

.of-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; row-gap: 30px; }
.of-group summary { list-style: none; font-size: 18px; color: var(--of-muted); margin-bottom: 8px; pointer-events: none; display: flex; justify-content: space-between; align-items: center; }
.of-group summary::-webkit-details-marker { display: none; }
.of-group summary .of-icon { display: none; }
.of-group ul { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.of-group a { font-size: 18px; }

.of-home-search .of-search-row { display: flex; align-items: center; gap: 14px; }
.of-home-search label { font-weight: 700; font-size: 20px; }
.of-home-search .of-searchbox { flex: 1; height: 56px; }
.of-home-search .of-btn { min-height: 56px; padding: 0 30px; font-size: 18px; border-radius: 12px; }
.of-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-left: 90px; }
.of-chips__label { font-size: 14px; color: var(--of-muted); margin-right: 4px; }
.of-chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--of-line-2); text-decoration: none; }
.of-chip:hover { border-color: var(--of-blue); }
.of-chip.is-on { background: var(--of-blue); border-color: var(--of-blue); color: #fff; }

/* ---------- Preview controls + font cards ---------- */
.of-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.of-section-head .of-h2 { margin: 0; font-size: 30px; }
.of-section-head p { margin: 4px 0 0; font-size: 15px; color: var(--of-muted); }
.of-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.of-controls label { font-size: 14px; font-weight: 700; color: var(--of-body); }
.of-controls .of-searchbox { width: 330px; height: 46px; border-radius: 10px; padding: 0 14px; }
.of-controls .of-searchbox input { font-size: 16px; }
.of-sizes { display: flex; gap: 4px; padding: 4px; background: var(--of-pill); border-radius: 10px; }
.of-sizes button { width: 44px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--of-muted); font-size: 15px; font-weight: 700; cursor: pointer; }
.of-sizes button[aria-pressed="true"] { background: #fff; color: var(--of-blue); box-shadow: 0 1px 3px rgba(22, 33, 58, 0.18); }

.of-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.of-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.of-font { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; border: 1px solid var(--of-line); border-radius: 14px; background: var(--of-soft); min-width: 0; }
.of-font:hover { border-color: var(--of-field); box-shadow: 0 6px 18px rgba(22, 33, 58, 0.08); }
.of-font__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.of-font__name { font-weight: 700; font-size: 16px; color: var(--of-ink); text-decoration: none; overflow-wrap: anywhere; }
.of-font__name:hover { color: var(--of-link); text-decoration: underline; }
.of-font__cat { font-size: 13px; color: var(--of-muted); white-space: nowrap; }
.of-font__sample { display: flex; align-items: center; height: 120px; overflow: hidden; font-size: calc(var(--of-size) * var(--of-scale, 1)); line-height: 1.2; color: var(--of-ink); text-decoration: none; overflow-wrap: anywhere; }
.of-font__sample:hover { color: var(--of-ink); }
.of-font__sample > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-height: 100%; }
.of-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--of-green); }
.of-tag--muted { color: var(--of-muted); }
.of-empty { padding: 32px; border: 2px dashed var(--of-line-2); border-radius: 14px; text-align: center; color: var(--of-muted); background: var(--of-soft); }

/* ---------- Listing pages ---------- */
.of-list-head { margin-bottom: 24px; }
.of-list-head h1 { margin: 0; font-size: 36px; color: var(--of-green); letter-spacing: -0.3px; }
.of-list-head .of-desc { margin: 6px 0 0; color: var(--of-muted); }
.of-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.of-filters__label { font-size: 14px; font-weight: 700; color: var(--of-body); margin-right: 4px; }
.of-filters__sep { width: 1px; height: 24px; background: var(--of-line-2); margin: 0 8px; }
.of-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.of-listing .of-section-head { margin: 26px 0 20px; padding-top: 22px; border-top: 1px solid var(--of-hair); align-items: center; }
.of-listing .of-section-head .of-count { font-size: 15px; color: var(--of-muted); }
.of-pagination { margin-top: 28px; }
.of-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.of-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--of-line-2); text-decoration: none; font-weight: 700; }
.of-pagination .page-numbers.current { background: var(--of-blue); border-color: var(--of-blue); color: #fff; }

/* ---------- Single font ---------- */
.of-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--of-muted); margin-bottom: 28px; }
.of-crumbs [aria-current] { color: var(--of-ink); font-weight: 700; }
.of-hero { background: #fff; border: 2px solid var(--of-blue); border-radius: 18px; padding: 36px 40px; display: flex; flex-direction: column; gap: 28px; }
.of-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.of-hero__title { margin: 0; font-size: 68px; line-height: 1.05; color: var(--of-ink); overflow-wrap: anywhere; }
.of-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 17px; color: var(--of-body); }
.of-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.of-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--of-pill); color: var(--of-body); font-size: 14px; font-weight: 700; }
.of-badge--green { background: var(--of-green-bg); color: var(--of-green-ink); }
.of-badge--blue { background: var(--of-chip); color: var(--of-blue); }
.of-badge--red { background: var(--of-red-bg); color: var(--of-red-ink); }
.of-hero__get { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.of-hero__fileinfo { font-size: 14px; color: var(--of-muted); text-align: center; }
.of-hero__specimen { border-top: 1px solid var(--of-hair); padding-top: 24px; font-size: 56px; line-height: 1.2; color: var(--of-blue); overflow-wrap: anywhere; }
.of-hero__desc { margin: 0; color: var(--of-body); }
.of-hero__desc > *:first-child { margin-top: 0; }
.of-hero__desc > *:last-child { margin-bottom: 0; }
.of-two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 28px; }
.of-tester__controls { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.of-field { display: flex; flex-direction: column; gap: 6px; }
.of-field--grow { flex: 1; min-width: 0; }
.of-field > label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--of-body); }
.of-field .of-searchbox { height: 50px; border-radius: 10px; padding: 0 14px; }
.of-range { width: 250px; }
.of-range input { width: 100%; height: 50px; margin: 0; accent-color: var(--of-blue); cursor: pointer; }
.of-styles { display: flex; flex-direction: column; }
.of-style { display: flex; align-items: center; gap: 24px; min-height: 96px; padding: 6px 0; border-top: 1px solid var(--of-hair); }
.of-style__label { width: 120px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.of-style__label b { font-size: 15px; }
.of-style__label span { font-size: 13px; color: var(--of-muted); }
.of-style__sample { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--of-size); line-height: 1.3; }
.of-facts { background: #fff; border: 1px solid var(--of-line-2); border-radius: var(--of-radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.of-facts h2 { margin: 0 0 2px; font-size: 20px; }
.of-facts dl { margin: 0; }
.of-facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--of-hair); font-size: 15px; }
.of-facts dt { color: var(--of-muted); }
.of-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.of-rights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.of-rights li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.of-rights .of-dot { width: 26px; height: 26px; flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.of-dot--yes { background: var(--of-green-bg); color: var(--of-green-ink); }
.of-dot--no { background: var(--of-red-bg); color: var(--of-red-ink); }
.of-dot--note { background: var(--of-chip); color: var(--of-blue); }
.of-fineprint { font-size: 13px; color: var(--of-muted); margin: 0; }
.of-aside { display: flex; flex-direction: column; gap: 20px; }
.of-aside .of-cta h2 { margin: 0; font-size: 20px; font-family: var(--of-sans); }
.of-glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.of-glyphs span { height: 58px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--of-hair); border-radius: 8px; background: var(--of-soft); font-size: 28px; color: var(--of-ink); }
.of-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.of-pair { border: 1px solid var(--of-hair); border-radius: 12px; padding: 24px; background: var(--of-soft); display: flex; flex-direction: column; gap: 10px; }
.of-pair__head { font-size: 34px; line-height: 1.15; color: var(--of-ink); overflow-wrap: anywhere; }
.of-pair__body { margin: 0; font-size: 17px; line-height: 1.6; color: var(--of-body); }
.of-pair__credit { font-size: 14px; color: var(--of-muted); margin: 14px 0 0; }
.of-similar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.of-similar a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border: 1px solid var(--of-line); border-radius: 12px; background: var(--of-tile); text-decoration: none; min-width: 0; }
.of-similar a:hover { border-color: var(--of-blue); background: #fff; }
.of-similar .of-aa { font-size: 44px; line-height: 1.1; color: var(--of-blue); }
.of-similar b { font-size: 16px; color: var(--of-link); text-decoration: underline; overflow-wrap: anywhere; }
.of-similar span:last-child { font-size: 13px; color: var(--of-muted); }
.of-mt { margin-top: 28px; }

/* ---------- Pages ---------- */
.of-content { font-size: 17px; line-height: 1.65; color: var(--of-body); }
.of-content h1 { margin: 0 0 16px; font-size: 36px; color: var(--of-green); }
.of-content h2 { font-size: 24px; color: var(--of-ink); margin: 32px 0 10px; }
.of-content h3 { font-size: 19px; color: var(--of-ink); margin: 24px 0 8px; }
.of-content > *:last-child { margin-bottom: 0; }
.of-content li + li { margin-top: 6px; }
.of-pairs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- Logo maker ---------- */
.of-maker-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 18px 0 24px; }
.of-maker-controls input[type="color"] { width: 56px; height: 50px; padding: 4px; border: 2px solid var(--of-field); border-radius: 10px; background: #fff; cursor: pointer; }
.of-maker .of-font__sample { height: 140px; }

/* ---------- Forms (Contact, Report a Font) ---------- */
.of-form { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 20px; max-width: 640px; }
.of-form__row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.of-form__row label { font-size: 15px; font-weight: 700; color: var(--of-ink); }
.of-form input[type="text"], .of-form input[type="email"], .of-form input[type="url"], .of-form select, .of-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--of-field); border-radius: 10px; background: #fff; font-size: 16px; color: var(--of-ink); }
.of-form textarea { min-height: 0; resize: vertical; line-height: 1.5; }
.of-form input:focus, .of-form select:focus, .of-form textarea:focus { outline: none; border-color: var(--of-blue); box-shadow: 0 0 0 3px rgba(29, 78, 158, 0.2); }
.of-form input[type="file"] { padding: 10px; border: 2px dashed var(--of-field); border-radius: 10px; background: var(--of-soft); font-size: 15px; width: 100%; }
.of-form__check { margin: 0 0 12px; }
.of-form__check label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.of-form__check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--of-blue); }
.of-form .of-btn { min-height: 48px; padding: 0 26px; font-size: 16px; }
.of-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.of-notice { padding: 14px 18px; border-radius: 10px; font-weight: 700; margin: 8px 0 16px; }
.of-notice--ok { background: var(--of-green-bg); color: var(--of-green-ink); }
.of-notice--error { background: var(--of-red-bg); color: var(--of-red-ink); }

/* ---------- Footer ---------- */
.of-footer { background: var(--of-blue); padding: 30px 0; color: var(--of-on-blue); }
.of-footer .of-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.of-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.of-footer__main li { display: flex; align-items: center; font-size: 17px; }
.of-footer__main li + li::before { content: "|"; color: var(--of-field); margin: 0 12px; }
.of-footer__main a { color: #fff; text-decoration: none; }
.of-footer__main a:hover { color: #fff; text-decoration: underline; }
.of-footer__small { gap: 8px 22px; font-size: 14px; }
.of-footer__small a { color: var(--of-on-blue); }
.of-footer__small a:hover { color: #fff; }
.of-footer p { margin: 0; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.of-nav__list { padding: 0; }
	.of-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.of-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.of-home, .of-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "cats" "trend" "side"; }
	.of-home > .of-home-search { margin: 0 0 24px; }
	.of-home > .of-sidebar { margin-top: 32px; }
	.of-layout > .of-sidebar { order: 2; }
	.of-two { grid-template-columns: minmax(0, 1fr); }
	.of-hero__top { flex-direction: column; gap: 24px; }
	.of-hero__get { width: 100%; max-width: 420px; }
	.of-nav__list { overflow-x: auto; justify-content: flex-start; gap: 28px; scrollbar-width: none; }
	.of-nav__list::-webkit-scrollbar { display: none; }
	.of-header__search { display: none; }
	.of-grid, .of-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.of-chips { padding-left: 0; }
}
@media (max-width: 700px) {
	body { font-size: 16px; }
	.of-wrap { padding: 0 16px; }
	.of-topbar { height: 5px; }
	.of-header__inner { padding-top: 16px; padding-bottom: 14px; }
	.of-logo__name { font-size: 29px; }
	.of-logo__tagline { font-size: 14px; padding-left: 14px; }
	.of-fotd { display: none; }
	.of-nav__list { height: 52px; gap: 24px; }
	.of-nav__list a { font-size: 16px; }
	.of-band { padding: 20px 0 28px; }
	.of-panel, .of-card { padding: 20px 16px; }
	.of-h2 { font-size: 25px; margin-bottom: 14px; }
	.of-home-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.of-home-search .of-search-row { gap: 8px; }
	.of-home-search .of-searchbox { height: 52px; }
	.of-home-search .of-btn { min-height: 52px; padding: 0 18px; font-size: 16px; }
	.of-tiles { gap: 10px; }
	.of-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.of-tile__aa { width: 56px; height: 56px; font-size: 28px; }
	.of-tile__name { font-size: 17px; }
	.of-tile__desc { display: none; }
	.of-h3 { margin: 28px 0 6px; }
	.of-groups { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
	.of-group { border-top: 1px solid var(--of-hair); }
	.of-group summary { pointer-events: auto; cursor: pointer; height: 52px; margin: 0; font-size: 17px; font-weight: 700; color: var(--of-ink); }
	.of-group summary .of-icon { display: block; color: var(--of-blue); transition: transform 0.15s; }
	.of-group[open] summary .of-icon { transform: rotate(90deg); }
	.of-group ul { padding: 0 0 10px 14px; gap: 0; }
	.of-group a { font-size: 17px; line-height: 38px; }
	.of-section-head .of-h2 { font-size: 25px; }
	.of-controls { width: 100%; }
	.of-controls .of-searchbox { flex: 1; width: auto; }
	.of-grid, .of-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.of-font__sample { height: 84px; font-size: calc(var(--of-size) * 0.85 * var(--of-scale, 1)); }
	.of-font__sample > span { display: block; white-space: nowrap; text-overflow: ellipsis; }
	.of-hero { padding: 24px 18px; }
	.of-hero__title { font-size: 42px; }
	.of-hero__specimen { font-size: 34px; }
	.of-tester__controls { flex-direction: column; align-items: stretch; }
	.of-range { width: 100%; }
	.of-style { gap: 12px; min-height: 76px; }
	.of-style__label { width: 84px; }
	.of-style__sample { font-size: calc(var(--of-size) * 0.75); }
	.of-duo, .of-pairs-list { grid-template-columns: minmax(0, 1fr); }
	.of-similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.of-footer { padding: 26px 0 28px; }
	.of-footer .of-wrap { align-items: flex-start; text-align: left; }
	.of-footer__main { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; width: 100%; }
	.of-footer__main li + li::before { display: none; }
	.of-footer__small { justify-content: flex-start !important; padding-top: 16px; border-top: 1px solid #3c68b3; width: 100%; }
	.of-list-head h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
