/*
Theme Name: Kıyı Atölyesi
Author: Aliağa Bisiklet
Description: Aliağa Bisiklet için sade atölye ve bisiklet rehberi teması.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kiyi-atolyesi
*/
:root {
  --page: #fcfbf8;
  --ink: #17343c;
  --muted: #526465;
  --accent: #945233;
  --line: #dedfd8;
  --width: 920px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.13; letter-spacing: -.045em; }
h2 { font-size: 22px; line-height: 1.24; letter-spacing: -.035em; }
h3 { font-size: 16px; line-height: 1.35; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid #a45734; outline-offset: 4px; }
.shell { width: min(calc(100% - 40px), var(--width)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 10; background: white; padding: 8px; }
.skip:focus { top: 5px; }
.mast { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; min-height: 56px; gap: 26px; }
.brand { text-decoration: none; white-space: nowrap; font-size: 21px; letter-spacing: -.055em; font-weight: 700; }
.brand span { color: var(--accent); }
.mast nav { margin-left: auto; display: flex; gap: 22px; }
.mast nav a, .route, .textlink, .foot-links a { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; text-decoration: none; font-size: 14px; }
.mast nav a:hover, .route:hover, .textlink:hover, .foot-links a:hover { color: var(--accent); text-decoration: underline; }
.route { color: var(--accent); font-weight: 600; }
.symbol { display: inline-block; width: 9px; height: 9px; font-size: 0; position: relative; }
.symbol:before { content: ''; position: absolute; top: 0; right: 0; width: 6px; height: 6px; border-top: 1.5px solid; border-right: 1.5px solid; }
.symbol:after { content: ''; position: absolute; top: 4px; right: -1px; width: 10px; border-top: 1.5px solid; transform: rotate(-45deg); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(200px,285px); align-items: center; gap: 30px; padding-block: 22px; }
.place { color: var(--accent); font-size: 13px; margin-bottom: 5px; }
.lead, .index-intro p { color: var(--muted); margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 6px 15px; min-height: 36px; margin-top: 14px; background: var(--ink); color: white; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 600; }
.button:hover { background: #285056; }
.hero-photo img { width: 100%; height: auto; border-radius: 6px; }
.workshop-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; padding-block: 23px; border-block: 1px solid var(--line); }
.service-list, .atelier-note { margin-top: 10px; }
details + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; font-weight: 500; font-size: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 18px; color: var(--accent); }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); font-size: 15px; padding: 0 16px 12px 0; }
.atelier-note { display: grid; grid-template-columns: 127px 1fr; align-items: start; gap: 15px; }
.atelier-note img { width: 100%; border-radius: 4px; }
.atelier-note p { color: var(--muted); font-size: 15px; }
.journal { padding-block: 18px 24px; }
.journal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 11px; }
.textlink { color: var(--accent); text-decoration: underline; }
.home-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.card { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 12px; text-decoration: none; }
.card img { width: 100%; height: 56px; object-fit: cover; border-radius: 4px; }
.card h3, .card h2 { font-size: 16px; line-height: 1.32; letter-spacing: -.015em; }
.card:hover :is(h2,h3) { text-decoration: underline; text-underline-offset: 3px; }
.card p { font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.journal-page { max-width: 760px; padding-block: 23px; }
.index-intro { padding-bottom: 16px; }
.index-list .card { grid-template-columns: 89px minmax(0,1fr); gap: 16px; padding-block: 11px; border-top: 1px solid var(--line); }
.index-list .card img { height: 61px; }
.index-list .card h2 { font-size: 17px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); }
.foot-grid, .foot-grid > div { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.foot-grid { justify-content: space-between; padding-block: 11px; font-size: 14px; }
.foot b { color: var(--ink); } .foot .location { font-size: 13px; }
.article { width: min(calc(100% - 40px), 720px); margin-inline: auto; padding-block: 22px; overflow-wrap: anywhere; }
.article > h1 { font-size: clamp(26px, 3vw, 34px); margin: 7px 0 16px; }
.entry { font-size: 16px; line-height: 1.6; }
.entry h2, .entry h2[style], .entry h1[style] { font-size: 22px !important; line-height: 1.28 !important; }
.entry h3, .entry h3[style] { font-size: 18px !important; line-height: 1.35 !important; }
.entry :is(p,li)[style] { font-size: 16px !important; line-height: 1.58 !important; }
.entry :is(ul,ol,p,figure,h2,h3) { margin-block: .75em; }
.entry img { max-width: 100%; }
.entry img[style], .entry .wp-block-image img { max-height: 235px; object-fit: contain !important; }
.entry table { display: block; max-width: 100%; overflow-x: auto; }
.entry iframe, .entry figure { max-width: 100%; }
.entry a { text-decoration: underline; }
.preview-panel[hidden] { display: none; }

@media (max-width: 750px) {
  .bar { gap: 18px; } .mast nav { gap: 15px; }
  .workshop-row { gap: 24px; }
  .atelier-note { grid-template-columns: 90px minmax(0,1fr); gap: 10px; }
  .home-cards { gap: 14px; } .home-cards .card { grid-template-columns: 54px minmax(0,1fr); gap: 8px; }
  .home-cards img { height: 48px; }
}
@media (max-width: 610px) {
  .shell, .article { width: calc(100% - 32px); }
  .bar { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; padding-top: 5px; }
  .mast nav { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 21px; }
  .mast .route { grid-row: 1; grid-column: 2; }
  .mast nav a, .mast .route { min-height: 37px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(108px,33%); gap: 14px; padding-block: 17px; align-items: center; }
  .hero-grid h1 { font-size: 28px; } .lead { font-size: 15px; line-height: 1.45; }
  .wide-break { display: none; } .button { margin-top: 10px; min-height: 40px; }
  .workshop-row { grid-template-columns: 1fr; padding-block: 17px; gap: 17px; }
  .atelier-note { grid-template-columns: 90px minmax(0,1fr); align-items: center; gap: 12px; }
  h2 { font-size: 20px; } summary { min-height: 42px; }
  .home-cards { grid-template-columns: 1fr; gap: 7px; }
  .home-cards .card { grid-template-columns: 60px minmax(0,1fr); gap: 12px; }
  .home-cards .card img { height: 43px; }
  .home-cards .card h3 { text-wrap: auto; }
  .journal { padding-block: 12px 18px; } .journal-head { margin-bottom: 7px; }
  .journal-page { padding-block: 18px; } .index-list .card { grid-template-columns: 67px minmax(0,1fr); gap: 12px; }
  .index-list .card img { height: 50px; } .index-list .card p { font-size: 14px; }
  .foot-grid { gap: 3px 12px; } .foot-grid > div { gap: 12px; }
  .entry img[style], .entry .wp-block-image img { max-height: 190px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Scale earlier hand-built WordPress content within the same reading column. */
.entry article[style] { margin: 0 !important; padding: 0 !important; }
.entry article img { width: auto !important; max-width: 100%; height: auto !important; margin-inline: auto; }
.entry article figcaption { color: var(--muted); font-size: 13px !important; }
.workshop-page > div { background: transparent !important; }
.workshop-page > div > div[style] { padding-inline: 0 !important; }
.workshop-page > div > div > header, .workshop-page > div > div > footer { display: none; }
.workshop-page section[style] { margin-block: 14px !important; padding: 13px !important; gap: 14px !important; }
.workshop-page section:first-of-type h1 { font-size: 28px !important; }
.workshop-page div[style*="flex:1 1"], .workshop-page div[style*="flex:1.24"] { min-width: 0 !important; max-width: 100%; }
.workshop-page img { max-height: 175px; object-fit: contain !important; }

.section-link { text-decoration: none; }
.section-link:hover, .mast nav [aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
