/* My Font Factory — the font stock and the font maker (studio.mjs). Theme: ink #1c1917 with vermilion #ea580c. */
.ff-stock, .ff-my { --ink: #1c1917; --ver: #ea580c; --soft: #fff7ed; --line2: #e7e5e4; }
.ff-tools { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 16px; }
@media (min-width: 768px) { .ff-tools { grid-template-columns: auto 1fr 1fr; align-items: center; } }
.ff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-chip { cursor: pointer; border: 1.5px solid var(--line2, #e7e5e4); background: #fff; color: #1c1917; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; min-height: 36px; }
.ff-chip.on { background: #1c1917; color: #fff; border-color: #1c1917; }
.ff-in { font: inherit; font-size: 15px; height: 40px; padding: 0 12px; border: 1.5px solid #d6d3d1; border-radius: 10px; background: #fff; color: #1c1917; max-width: 100%; box-sizing: border-box; }
.ff-sample-in { width: 100%; }
.ff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ff-font { border: 1.5px solid #e7e5e4; border-radius: 16px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #1c1917; }
.ff-font-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ff-font-top h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.ff-tag { font-size: 12px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.ff-spec { font-size: 26px; line-height: 1.35; margin: 0; min-height: 2.7em; overflow-wrap: anywhere; opacity: .55; transition: opacity .3s; }
.ff-spec.ready { opacity: 1; }
.ff-meta { margin: 0; }
.ff-dl { align-self: flex-start; cursor: pointer; }
.ff-stock .btn-line, .ff-my .btn-line, .home-page .ff-stock .btn-line { color: #1c1917; background: #fff; border: 1.5px solid #1c1917; }
.ff-empty { padding: 18px; border: 1.5px dashed #d6d3d1; border-radius: 14px; text-align: center; }

.ff-mylist { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.ff-mylist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid #e7e5e4; border-radius: 12px; padding: 10px 12px; }
.ff-mylist li p { margin: 2px 0 0; }
.ff-maker-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ff-maker-top h2 { margin: 0; overflow-wrap: anywhere; }
.ff-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ff-head { margin: 12px 0 6px; }
.ff-head .ff-in:first-child { flex: 1 1 220px; }
.ff-group h4 { margin: 14px 0 6px; font-size: 14px; color: #57534e; }
.ff-tiles { margin-top: 10px; }
.ff-tile { cursor: pointer; width: 46px; height: 46px; font-size: 22px; border: 1.5px solid #d6d3d1; border-radius: 10px; background: #fff; color: #1c1917; display: inline-grid; place-items: center; padding: 0; }
.ff-tile.done { background: #ecfdf5; border-color: #10b981; }
.ff-tile.on { outline: 3px solid #ea580c; outline-offset: 1px; }
.ff-draw { margin: 16px 0; padding: 12px; border: 1.5px solid #fed7aa; background: #fff7ed; border-radius: 16px; }
.ff-draw-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ff-cur { font-size: 20px; font-family: ui-monospace, monospace; white-space: nowrap; }
.ff-canvas { display: block; width: min(100%, 420px); aspect-ratio: 1; margin: 8px auto; border: 2px solid #1c1917; border-radius: 12px; touch-action: none; cursor: crosshair; background: #fffdf8; }
.ff-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.ff-btns .btn, .ff-my .btn, .ff-stock .btn { cursor: pointer; }
.ff-tryblock { margin-top: 18px; padding-top: 12px; border-top: 1.5px solid #e7e5e4; }
.ff-try { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 8px 12px; border: 1.5px solid #d6d3d1; border-radius: 10px; resize: vertical; }
.ff-try-out { font-size: 34px; line-height: 1.4; margin: 10px 0; padding: 12px; border-radius: 12px; background: #fffdf8; border: 1.5px solid #e7e5e4; overflow-wrap: anywhere; min-height: 1.5em; color: #1c1917; }
.ff-share { margin-top: 16px; border: 1.5px solid #e7e5e4; border-radius: 12px; padding: 10px 12px; }
.ff-share summary { cursor: pointer; font-weight: 600; }
.ff-agree { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.ff-share .ff-in { width: 100%; }
.ff-del { color: #b91c1c; }
@media (prefers-color-scheme: dark) {
  body:not(.home) .ff-font, body:not(.home) .ff-mylist li { background: #1a211d; color: #e7ece9; border-color: #2e3833; }
}
/* the member page: both font cards take the full width; buttons in the club look (the web page "/" has its own) */
.member > .ff-my, .member > .ff-stock-card { grid-column: 1 / -1; }
body:not(.home) .ff-my .btn, body:not(.home) .ff-stock .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
body:not(.home) .ff-my .btn-gold, body:not(.home) .ff-stock .btn-gold { background: #ea580c; color: #fff; border: 1.5px solid #ea580c; }
body:not(.home) .ff-my .btn-gold:hover, body:not(.home) .ff-stock .btn-gold:hover { filter: brightness(1.08); }
.ff-my button:disabled { cursor: not-allowed; opacity: .6; }
.ff-stock > .ff-chips { margin: -4px 0 14px; }
.ff-cat { background: #f5f5f4; color: #44403c; border-color: #e7e5e4; }
.ff-font-top { flex-wrap: wrap; }
/* India: 25 language groups (tiles), the group title, a font's preview window (owner 3 Dec 2026) */
.ff-india { margin: 6px 0 4px; font-size: 20px; }
.ff-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.ff-lang { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; min-height: 78px; border: 1.5px solid #e7e5e4; border-radius: 14px; background: #fff; color: #1c1917; font: inherit; min-width: 0; }
.ff-lang:hover { border-color: #ea580c; }
.ff-lang.on { background: #1c1917; color: #fff; border-color: #1c1917; box-shadow: 0 0 0 3px #fed7aa; }
.ff-lang-native { font-size: 21px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.ff-lang-name { font-size: 13px; opacity: .8; }
.ff-lang-n { font-size: 12px; color: #c2410c; }
.ff-lang.on .ff-lang-n { color: #fdba74; }
.ff-group-title { margin: 6px 0 12px; font-size: 18px; }
.ff-font .ff-row { margin-top: auto; }
.ff-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 18px; padding: 18px 20px 22px; color: #1c1917; background: #fff; box-sizing: border-box; }
.ff-dialog::backdrop { background: rgba(28, 25, 23, .55); }
.ff-dlg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ff-dlg-top h2 { margin: 0; overflow-wrap: anywhere; }
.ff-x { min-width: 40px; }
.ff-size { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 14px; }
.ff-size input { flex: 1; max-width: 320px; }
.ff-big { font-size: 48px; line-height: 1.35; margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: #fffdf8; border: 1.5px solid #fed7aa; overflow-wrap: anywhere; outline: none; }
.ff-sizes p { margin: 4px 0; overflow-wrap: anywhere; }
.ff-h { margin: 14px 0 4px; font-size: 15px; color: #57534e; }
.ff-letters { font-size: 26px; line-height: 1.6; word-spacing: 6px; margin: 0; overflow-wrap: anywhere; }
.ff-credit { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 14px 0 6px; font-size: 14px; }
.ff-credit dt { color: #57534e; font-weight: 600; }
.ff-credit dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .ff-credit { grid-template-columns: 1fr; } .ff-big { font-size: 34px; } .ff-langs { grid-template-columns: repeat(3, 1fr); gap: 6px; } .ff-lang { min-height: 62px; padding: 7px 8px; border-radius: 12px; } .ff-lang-native { font-size: 17px; } .ff-lang-name, .ff-lang-n { font-size: 11px; } }
.ff-free { margin-top: -4px; }
